From 6ab127c85d1171876950265b747d71b28230ce70 Mon Sep 17 00:00:00 2001 From: Milenko Gavric Date: Fri, 16 Jan 2026 13:11:46 +0100 Subject: [PATCH] fixed indentation in search_basics_core --- examples/guides/search_basics_core.py | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/examples/guides/search_basics_core.py b/examples/guides/search_basics_core.py index 661f2ab73..af1f914e8 100644 --- a/examples/guides/search_basics_core.py +++ b/examples/guides/search_basics_core.py @@ -1,24 +1,24 @@ - import asyncio - import cognee +import asyncio +import cognee - async def main(): - # Start clean (optional in your app) - await cognee.prune.prune_data() - await cognee.prune.prune_system(metadata=True) - # Prepare knowledge base - await cognee.add([ - "Alice moved to Paris in 2010. She works as a software engineer.", - "Bob lives in New York. He is a data scientist.", - "Alice and Bob met at a conference in 2015." - ]) +async def main(): + # Start clean (optional in your app) + await cognee.prune.prune_data() + await cognee.prune.prune_system(metadata=True) + # Prepare knowledge base + await cognee.add([ + "Alice moved to Paris in 2010. She works as a software engineer.", + "Bob lives in New York. He is a data scientist.", + "Alice and Bob met at a conference in 2015." + ]) - await cognee.cognify() + await cognee.cognify() - # Make sure you've already run cognee.cognify(...) so the graph has content - answers = await cognee.search( - query_text="What are the main themes in my data?" - ) - for answer in answers: - print(answer) + # Make sure you've already run cognee.cognify(...) so the graph has content + answers = await cognee.search( + query_text="What are the main themes in my data?" + ) + for answer in answers: + print(answer) - asyncio.run(main()) +asyncio.run(main())