Skip to content

Commit

Permalink
example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ouonline committed Nov 12, 2024
1 parent b67d5d8 commit 6a5f594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/rag_map_store_with_milvus_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def run(query):
' In this task, you need to provide your answer based on the given context and question.'

with lazyllm.pipeline() as ppl:
ppl.prl.retriever = lazyllm.Retriever(doc=documents, group_name="sentences", topk=3)
ppl.retriever = lazyllm.Retriever(doc=documents, group_name="sentences", topk=3,
index='smart_embedding_index')

ppl.reranker = lazyllm.Reranker(name='ModuleReranker',
model="bge-reranker-large",
Expand Down

0 comments on commit 6a5f594

Please sign in to comment.