Move Document and other interface into base/schema (#69)
This commit is contained in:
committed by
GitHub
parent
4704e2c11a
commit
8532138842
@@ -5,16 +5,8 @@ from typing import Callable
|
||||
|
||||
from theflow import Param
|
||||
|
||||
from kotaemon.base import BaseComponent
|
||||
from kotaemon.documents.base import Document
|
||||
|
||||
|
||||
class ExtractorOutput(Document):
|
||||
"""
|
||||
Represents the output of an extractor.
|
||||
"""
|
||||
|
||||
matches: list[str]
|
||||
from kotaemon.base import BaseComponent, Document
|
||||
from kotaemon.base.schema import ExtractorOutput
|
||||
|
||||
|
||||
class RegexExtractor(BaseComponent):
|
||||
|
Reference in New Issue
Block a user