Skip to content

Commit

Permalink
add more cohere nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-sol committed Jul 24, 2024
1 parent 23da9d9 commit e34ffae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/custom_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def filter_nodes_by_unique_doc_id(nodes):
else:
nodes_context.append(node)

reranker = CohereRerank(top_n=5, model="rerank-english-v3.0")
reranker = CohereRerank(top_n=8, model="rerank-english-v3.0")
nodes_context = reranker.postprocess_nodes(nodes_context, query_bundle)
logfire.info(f"Cohere raranking to {len(nodes_context)} nodes")

Expand Down

0 comments on commit e34ffae

Please sign in to comment.