Enforce all IO objects to be subclassed from Document (#88)

* enforce Document as IO

* Separate rerankers, splitters and extractors (#85)

* partially refractor importing

* add text to embedding outputs

---------

Co-authored-by: Nguyen Trung Duc (john) <trungduc1992@gmail.com>
This commit is contained in:
ian_Cin
2023-11-27 16:35:09 +07:00
committed by GitHub
parent 2186c5558f
commit 8e0779a22d
13 changed files with 108 additions and 59 deletions

View File

@@ -3,11 +3,8 @@ from typing import List, Optional
from theflow import SessionFunction
from kotaemon.base.schema import AIMessage, SystemMessage
from ..base import BaseComponent
from ..base.schema import LLMInterface
from ..llms.chats.base import BaseMessage, HumanMessage
from kotaemon.base import BaseComponent, LLMInterface
from kotaemon.base.schema import AIMessage, BaseMessage, HumanMessage, SystemMessage
class BaseChatBot(BaseComponent):