Skip to content

feat: migrate agentic-rag-authorization from Weaviate to Milvus#46

Merged
sohanmaheshwar merged 14 commits into
mainfrom
milvus
May 29, 2026
Merged

feat: migrate agentic-rag-authorization from Weaviate to Milvus#46
sohanmaheshwar merged 14 commits into
mainfrom
milvus

Conversation

@sohanmaheshwar
Copy link
Copy Markdown
Contributor

Summary

  • Replaces Weaviate (BM25 keyword search) with Milvus (semantic vector search using OpenAI text-embedding-3-small)
  • Docker Compose now runs Milvus standalone (etcd + minio + milvus-standalone) instead of Weaviate
  • pymilvus replaces weaviate-client; retrieval node embeds queries with OpenAI and runs ANN search against a Milvus collection
  • setup_environment.py embeds all 50 documents and inserts them into Milvus on first run
  • SpiceDB authorization via langchain-spicedb is unchanged — post-filter approach, CheckBulkPermissions batch check after retrieval
  • New MilvusClient singleton module, updated config vars (MILVUS_URI, MILVUS_TOKEN), new tests
  • README reauthored for Milvus; cross-link added to the weaviate branch (which preserves the original Weaviate example)

Test plan

  • docker-compose up -d brings up etcd, minio, milvus-standalone, and spicedb
  • python examples/setup_environment.py embeds docs and loads Milvus without errors
  • python examples/basic_example.py runs all 8 demo scenarios correctly
  • python run_ui.py passes pre-flight checks and serves the UI at http://localhost:8000
  • Same query as different users returns different authorized document sets
  • pytest tests/ passes

Copy link
Copy Markdown
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread agentic-rag-authorization/requirements.txt
@sohanmaheshwar sohanmaheshwar merged commit 9dfa134 into main May 29, 2026
7 checks passed
@sohanmaheshwar sohanmaheshwar deleted the milvus branch May 29, 2026 15:18
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants