Update README.md

This commit is contained in:
Vasilije 2024-07-02 08:37:51 +02:00 committed by GitHub
parent 5aa7ba4668
commit 9a57659266
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,11 +97,11 @@ import cognee
text = """Natural language processing (NLP) is an interdisciplinary
subfield of computer science and information retrieval"""
cognee.add([text], "example_dataset") # Add a new piece of information
await cognee.add([text], "example_dataset") # Add a new piece of information
cognee.cognify() # Use LLMs and cognee to create knowledge
await cognee.cognify() # Use LLMs and cognee to create knowledge
search_results = cognee.search("SIMILARITY", {'query': 'Tell me about NLP'}) # Query cognee for the knowledge
await search_results = cognee.search("SIMILARITY", {'query': 'Tell me about NLP'}) # Query cognee for the knowledge
print(search_results)