From 2f9c3f030bd3dc9e5f627597984b0a2b1f2b1129 Mon Sep 17 00:00:00 2001 From: Igor Ilic <30923996+dexters1@users.noreply.github.com> Date: Fri, 10 Oct 2025 15:16:10 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20user=20different=20top=5Fk=20number?= =?UTF-8?q?=20to=20reflect=20upgrades=20made=20to=20rel=E2=80=A6=20(#1527)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … db migration ## Description ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Other (please specify): ## Screenshots/Videos (if applicable) ## Pre-submission Checklist - [ ] **I have tested my changes thoroughly before submitting this PR** - [ ] **This PR contains minimal changes necessary to address the issue/feature** - [ ] My code follows the project's coding standards and style guidelines - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added necessary documentation (if applicable) - [ ] All new and existing tests pass - [ ] I have searched existing PRs to ensure this change hasn't been submitted already - [ ] I have linked any relevant issues in the description - [ ] My commits have clear and descriptive messages ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --- examples/python/relational_database_migration_example.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/python/relational_database_migration_example.py b/examples/python/relational_database_migration_example.py index 6a5c3b78b..7e87347bc 100644 --- a/examples/python/relational_database_migration_example.py +++ b/examples/python/relational_database_migration_example.py @@ -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}")