rag pipeline

This commit is contained in:
seehi 2024-01-30 20:19:50 +08:00
parent 4fcf724797
commit 916b139e2b
18 changed files with 372 additions and 15 deletions

View file

@ -11,7 +11,6 @@ from typing import Optional
from pydantic import Field
from metagpt.actions import SearchAndSummarize, UserRequirement
from metagpt.document_store.base_store import BaseStore
from metagpt.roles import Role
from metagpt.tools import SearchEngineType
@ -27,7 +26,7 @@ class Sales(Role):
"delivered with the professionalism and courtesy expected of a seasoned sales guide."
)
store: Optional[BaseStore] = Field(default=None, exclude=True)
store: Optional[object] = Field(default=None, exclude=True) # must inplement tools.SearchInterface
def __init__(self, **kwargs):
super().__init__(**kwargs)