mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
update
This commit is contained in:
parent
e58cef6f18
commit
b3d13ac992
2 changed files with 9 additions and 4 deletions
|
|
@ -67,7 +67,9 @@ class RAGExample:
|
|||
self._print_query_result(answer)
|
||||
|
||||
async def rag_add_docs(self):
|
||||
"""This example show how to add docs, before add docs llm anwser I don't know, after add docs llm give the correct answer, will print something like:
|
||||
"""This example show how to add docs.
|
||||
before add docs llm anwser I don't know
|
||||
after add docs llm give the correct answer, will print something like:
|
||||
|
||||
[Before add docs]
|
||||
Retrieve Result:
|
||||
|
|
@ -95,7 +97,10 @@ class RAGExample:
|
|||
await self.rag_pipeline(question=travel_question, print_title=False)
|
||||
|
||||
async def rag_add_objs(self, print_title=True):
|
||||
"""This example show how to add objs, before add docs engine retrieve nothing, after add objs engine give the correct answer, will print something like:
|
||||
"""This example show how to add objs.
|
||||
before add docs engine retrieve nothing.
|
||||
after add objs engine give the correct answer, will print something like:
|
||||
|
||||
[Before add objs]
|
||||
Retrieve Result:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue