Python
Install the Python SDK and start building AI applications with semantic memory.
Installation
pip install graphlit-clientQuick Start
import asyncio
import os
from graphlit import Graphlit
from graphlit_api import *
async def main():
# Reads from environment variables automatically
graphlit = Graphlit()
# Ingest content
response = await graphlit.client.ingest_text(
name="Product Requirements",
text="Our AI agent needs persistent memory across sessions..."
)
print(f"✅ Memory created: {response.ingest_text.id}")
asyncio.run(main())Configuration
Environment Variables (Production)
Alternative: Explicit Configuration
Common Patterns
Ingest Content
Search Memory
Chat with Context
Next Steps
Last updated