Repository navigation
agentic-rag: migrate to Elasticsearch + Mistral - #50
Merged
Merged
Conversation
Replace the Milvus + OpenAI stack with Elasticsearch (dense_vector kNN) and Mistral (mistral-embed embeddings + mistral-small-latest LLM). - Add elasticsearch_client singleton; drop milvus_client - retrieval_node: kNN search over an Elasticsearch dense_vector field - setup_environment: create the documents index and bulk-index the 50 docs, embedding them in a single batched embed_documents call - config / docker-compose / run_ui: Elasticsearch + Mistral env & services - Rewrite README for the Elasticsearch + Mistral stack, consolidate to the web-UI flow, add Mermaid flow diagrams, and add .env.example - Update tests for the Elasticsearch / Mistral code paths
tstirrat15
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Migrates the
agentic-rag-authorizationexample from Milvus + OpenAI to Elasticsearch + Mistral, and promotes it as the canonical version onmain.Changes
Vector store → Elasticsearch
elasticsearch_client.pysingleton;milvus_client.pyremovedretrieval_noderuns kNN search over an Elasticsearchdense_vectorfield (cosine)setup_environment.pycreates thedocumentsindex and bulk-indexes the 50 docsLLM + embeddings → Mistral
mistral-embedembeddings (1024-dim) andmistral-small-latestLLM vialangchain-mistralaiembed_documentscall (far fewer requests, avoids rate-limit failures mid-setup)Docs & config
.env.example(the quick-start copies it; placeholder matchesrun_ui.py's preflight check)ARCHITECTURE.mdasync note corrected (the ES client and Mistral calls are synchronous)config.py,docker-compose.yml,run_ui.pyupdated for Elasticsearch + Mistral env vars and servicesTests
test_elasticsearch_client.pyadded;test_milvus_client.pyremoved; retrieval/config tests updated for the new code pathsNotes
TOUCHwrites, singleton client, fail-closed).