MetaGPT
MetaGPT copied to clipboard
Specify Directory of pdf documents as Knowledge Base
Hi, how can we specify any folder which includes pdf documents as a knowledge base and create a new Role of Document Controller to extract specific information from within the documents in KB?
Any help would be highly appreciated
Thanks much appreciated
@geekan @wangjie5540
I think knowledge-base is a good idea, maybe importing knowledge-base as a tool or a skill for roles to choose is a feasible
Hi @wangjie5540 thank you for your response, i'm specifically referring to this part of the code in search_kb.py inside examples folder.
from metagpt.const import DATA_PATH
from metagpt.document_store import FaissStore
not sure if i fully understand DATA_PATH and metagpt.document_store can you please provide any information for these or how to include new document store
Thanks in Advance
DATA_PATH = PROJECT_ROOT / 'data' @alphomeg
The MetaGPT has provided a knowledge base tool in metagpt/document_store.
The usage method can refer to the unit test code in tests/metagpt/document_store and examples/search_kb.py.