Skip to content

Commit 2621f37

Browse files
committed
feat: bump soul-agent to 0.1.2, add SOUL_BACKEND + OpenAI embeddings env vars
1 parent 531f62d commit 2621f37

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ JUPYTER_TOKEN=
2121

2222
# Open WebUI secret key
2323
WEBUI_SECRET_KEY=change-me-in-production
24+
25+
# RAG backend: bm25 (default, zero-config) | chromadb (local) | qdrant (cloud)
26+
SOUL_BACKEND=bm25

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
soul-agent>=0.1.1
1+
soul-agent>=0.1.2
22
fastapi==0.115.0
33
uvicorn[standard]==0.30.0
44
python-multipart==0.0.9

soul_server/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ def get_agent(agent_id: str = "default"):
3737
soul_path=soul_path,
3838
memory_path=memory_path,
3939
mode=os.environ.get("RETRIEVAL_MODE", "auto"),
40+
# RAG backend: qdrant | chromadb | bm25 (default bm25 — zero config)
41+
rag_backend=os.environ.get("SOUL_BACKEND", "bm25"),
4042
qdrant_url=os.environ.get("QDRANT_URL", ""),
4143
qdrant_api_key=os.environ.get("QDRANT_API_KEY", ""),
4244
azure_embedding_endpoint=os.environ.get("AZURE_EMBEDDING_ENDPOINT", ""),
4345
azure_embedding_key=os.environ.get("AZURE_EMBEDDING_KEY", ""),
46+
# OpenAI direct embeddings (alternative to Azure)
47+
openai_api_key=os.environ.get("OPENAI_API_KEY", ""),
48+
openai_embedding_model=os.environ.get("OPENAI_EMBEDDING_MODEL", "text-embedding-3-small"),
4449
collection_name=f"soul_{agent_id}",
4550
)
4651
return _agents[agent_id]

0 commit comments

Comments
 (0)