Skip to content

Commit

Permalink
Search: decrease top_k to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
YuraLukashik committed Dec 15, 2023
1 parent 28c9678 commit f63e3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/semantic_search/semantic_search/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def smart_query(namespace, query, username: str):
pinecone_search_start_time = time.perf_counter()
query_results = get_pinecone_index().query(
queries=[query_vector],
top_k=50,
top_k=20,
namespace=namespace,
include_values=False,
includeMetadata=True
Expand Down

0 comments on commit f63e3e8

Please sign in to comment.