Merge branch 'dev' into feature/web_scraping_connector_task

This commit is contained in:
Geoffrey Robinson 2025-10-10 22:48:34 +05:30 committed by GitHub
commit f3161281d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,23 +70,23 @@ async def main():
search_results = await cognee.search(
query_type=SearchType.GRAPH_COMPLETION,
query_text="What kind of data do you contain?",
top_k=1000,
top_k=200,
)
print(f"Search results: {search_results}")
# Having a top_k value set to too high might overwhelm the LLM context when specific questions need to be answered.
# For this kind of question we've set the top_k to 30
# For this kind of question we've set the top_k to 50
search_results = await cognee.search(
query_type=SearchType.GRAPH_COMPLETION,
query_text="What invoices are related to Leonie Köhler?",
top_k=30,
top_k=50,
)
print(f"Search results: {search_results}")
search_results = await cognee.search(
query_type=SearchType.GRAPH_COMPLETION,
query_text="What invoices are related to Luís Gonçalves?",
top_k=30,
top_k=50,
)
print(f"Search results: {search_results}")