1 sections·~1 min read·1 expanded
Install everything up front so nothing blocks you later:
pip install openai chromadb langchain langchain-openai mem0ai cognee networkx rank_bm25
You'll need an OpenAI API key (or swap in any provider — Anthropic, local models via Ollama — the concepts are identical, only the SDK call changes).
Test that everything works:
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Say hello in 5 words"}]
)
print(response.choices[0].message.content)
If this prints a response, you're set up correctly. Everything downstream builds on this single call pattern.