feat: Adds OS information to README
This commit is contained in:
parent
22ea4f0675
commit
0b56e4b688
1 changed files with 19 additions and 19 deletions
38
README.md
38
README.md
|
|
@ -85,7 +85,7 @@ import os
|
|||
os.environ["LLM_API_KEY"] = "YOUR OPENAI_API_KEY"
|
||||
|
||||
```
|
||||
or
|
||||
or
|
||||
```
|
||||
import cognee
|
||||
cognee.config.set_llm_api_key("YOUR_OPENAI_API_KEY")
|
||||
|
|
@ -115,7 +115,7 @@ DB_PORT=5432
|
|||
DB_NAME=cognee_db
|
||||
DB_USERNAME=cognee
|
||||
DB_PASSWORD=cognee
|
||||
```
|
||||
```
|
||||
|
||||
### Simple example
|
||||
|
||||
|
|
@ -140,14 +140,14 @@ async def main():
|
|||
Natural language processing (NLP) is an interdisciplinary
|
||||
subfield of computer science and information retrieval.
|
||||
"""
|
||||
|
||||
|
||||
print("Adding text to cognee:")
|
||||
print(text.strip())
|
||||
print(text.strip())
|
||||
# Add the text, and make it available for cognify
|
||||
await cognee.add(text)
|
||||
print("Text added successfully.\n")
|
||||
|
||||
|
||||
|
||||
print("Running cognify to create knowledge graph...\n")
|
||||
print("Cognify process steps:")
|
||||
print("1. Classifying the document: Determining the type and category of the input text.")
|
||||
|
|
@ -156,19 +156,19 @@ async def main():
|
|||
print("4. Adding data points: Storing the extracted chunks for processing.")
|
||||
print("5. Generating knowledge graph: Extracting entities and relationships to form a knowledge graph.")
|
||||
print("6. Summarizing text: Creating concise summaries of the content for quick insights.\n")
|
||||
|
||||
|
||||
# Use LLMs and cognee to create knowledge graph
|
||||
await cognee.cognify()
|
||||
print("Cognify process complete.\n")
|
||||
|
||||
|
||||
|
||||
query_text = 'Tell me about NLP'
|
||||
print(f"Searching cognee for insights with query: '{query_text}'")
|
||||
# Query cognee for insights on the added text
|
||||
search_results = await cognee.search(
|
||||
SearchType.INSIGHTS, query_text=query_text
|
||||
)
|
||||
|
||||
|
||||
print("Search results:")
|
||||
# Display results
|
||||
for result_text in search_results:
|
||||
|
|
@ -212,7 +212,7 @@ Cognee supports a variety of tools and services for different operations:
|
|||
- **Language Models (LLMs)**: You can use either Anyscale or Ollama as your LLM provider.
|
||||
|
||||
- **Graph Stores**: In addition to NetworkX, Neo4j is also supported for graph storage.
|
||||
|
||||
|
||||
- **User management**: Create individual user graphs and manage permissions
|
||||
|
||||
## Demo
|
||||
|
|
@ -258,13 +258,13 @@ pip install cognee
|
|||
|
||||
|
||||
|
||||
| Name | Type | Current state | Known Issues |
|
||||
|----------|--------------------|-------------------|--------------|
|
||||
| Qdrant | Vector | Stable ✅ | |
|
||||
| Weaviate | Vector | Stable ✅ | |
|
||||
| LanceDB | Vector | Stable ✅ | |
|
||||
| Neo4j | Graph | Stable ✅ | |
|
||||
| NetworkX | Graph | Stable ✅ | |
|
||||
| FalkorDB | Vector/Graph | Unstable ❌ | |
|
||||
| PGVector | Vector | Stable ✅ | |
|
||||
| Milvus | Vector | Stable ✅ | |
|
||||
| Name | Type | Current state (Mac/Linux) | Known Issues | Current state (Win) | Known Issues |
|
||||
|----------|--------------------|---------------------------|--------------|---------------------|--------------|
|
||||
| Qdrant | Vector | Stable ✅ | | Untested ⏳ | |
|
||||
| Weaviate | Vector | Stable ✅ | | Untested ⏳ | |
|
||||
| LanceDB | Vector | Stable ✅ | | Stable ✅ | |
|
||||
| Neo4j | Graph | Stable ✅ | | Stable ✅ | |
|
||||
| NetworkX | Graph | Stable ✅ | | Stable ✅ | |
|
||||
| FalkorDB | Vector/Graph | Unstable ❌ | | Unstable ❌ | |
|
||||
| PGVector | Vector | Stable ✅ | | Unstable ❌ | |
|
||||
| Milvus | Vector | Stable ✅ | | Untested ⏳ | |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue