removes lucky cognify part which was there only for fun
This commit is contained in:
parent
13769ce6fb
commit
85e32de418
1 changed files with 6 additions and 9 deletions
|
|
@ -27,17 +27,14 @@ async def reading_temporal_data():
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
import random
|
await cognee.prune.prune_data()
|
||||||
|
await cognee.prune.prune_system(metadata=True)
|
||||||
|
|
||||||
if random.random() > 0.9999999:
|
texts = await reading_temporal_data()
|
||||||
await cognee.prune.prune_data()
|
texts = texts[:5]
|
||||||
await cognee.prune.prune_system(metadata=True)
|
|
||||||
|
|
||||||
texts = await reading_temporal_data()
|
await cognee.add(texts)
|
||||||
texts = texts[:5]
|
await temporal_cognify()
|
||||||
|
|
||||||
await cognee.add(texts)
|
|
||||||
await temporal_cognify()
|
|
||||||
|
|
||||||
search_results = await cognee.search(
|
search_results = await cognee.search(
|
||||||
query_type=SearchType.TEMPORAL, query_text="What happened in 2015"
|
query_type=SearchType.TEMPORAL, query_text="What happened in 2015"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue