Move Document and other interface into base/schema (#69)

This commit is contained in:
Nguyen Trung Duc (john)
2023-11-14 11:51:10 +07:00
committed by GitHub
parent 4704e2c11a
commit 8532138842
34 changed files with 51 additions and 63 deletions

View File

@@ -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):