fix for cognee
This commit is contained in:
parent
aef78c4a8f
commit
0f8ec35d4c
1 changed files with 14 additions and 0 deletions
|
|
@ -57,6 +57,20 @@ async def main():
|
||||||
|
|
||||||
await cognee.cognify([ "cs_explanations"])
|
await cognee.cognify([ "cs_explanations"])
|
||||||
|
|
||||||
|
search_results = cognee.search("SIMILARITY", "computer science")
|
||||||
|
if len(search_results) == 0:
|
||||||
|
print("The similarity search results list is empty.")
|
||||||
|
raise Exception("The search results list is empty.")
|
||||||
|
else:
|
||||||
|
print("The search results list is not empty.")
|
||||||
|
|
||||||
|
# search_results = cognee.search("SIMILARITY", "computer science")
|
||||||
|
# if len(search_results) == 0:
|
||||||
|
# print("The similarity search results list is empty.")
|
||||||
|
# raise Exception("The search results list is empty.")
|
||||||
|
# else:
|
||||||
|
# print("The search results list is not empty.")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue