Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guru4elephant committed Dec 19, 2023
1 parent a7ce265 commit 3e429fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ retriever = vector_index.as_retriever()

input_msg = appbuilder.Message("appbuilder是什么?")
result_list = retriever(query=input_msg, top_k=3)
context_msg = appbuilder.Message([item["text"] for item in result_list])

mrc = appbuilder.MRC()
rag_result = mrc(input_msg, context_out_list=[item["text"] for item in result_list])
rag_result = mrc(input_msg, context_msg)

print(rag_result.content)

```

Expand Down

0 comments on commit 3e429fe

Please sign in to comment.