chat.completions
-style calls. It provides two function tools:
Function | Purpose |
---|---|
cognify | Convert raw content into a knowledge graph |
search | Query the knowledge graph with natural-language questions |
openai
Python SDK—just point base_url
at your Cognee backend and use client.responses.*
methods.
Note: All examples assume a local backend running athttp://localhost:8000
and an API key ofsk-local
.
http://localhost:8000
cognify
)cognify
tool on the backend and returns the pipeline status in tool_calls[0].output
.
search
)search
tool and returns structured results.