feat: Vector Search microservice + parallel RAG engine#637
Merged
Conversation
Add standalone Vector Search microservice (ChromaDB + paraphrase-multilingual-mpnet-base-v2, 768 dims) as a parallel search engine alongside BM25 and embeddings. New files: - services/vector-search/ — FastAPI microservice (Dockerfile, endpoints: upsert, search, compare, count, delete, health), Bearer token auth, persistent ChromaDB storage - app/services/vector_search_client.py — async httpx client with retry + graceful degradation Integration: - WikiRAGService: new async methods (search_async, retrieve_async, retrieve_multi_async) run all engines in parallel via asyncio.gather, merge/deduplicate by (source_file, title) - Chat router: all 4 RAG injection call sites switched to async _inject_rag_context_async - Knowledge startup: init client from VECTOR_SEARCH_URL env, register vector-search-sync task, hook into DatasetSynced events for incremental sync - Admin endpoints: GET /admin/wiki-rag/vector-search/status, POST .../sync - Health check: vector_search section in /health response - Docker: vector-search service (profile: vector-search, port 8003) ## NEWS 🔍 **Vector Search — новый движок семантического поиска** Добавлен микросервис Vector Search на базе ChromaDB и мультиязычной модели paraphrase-multilingual-mpnet-base-v2. Работает параллельно с BM25 и embeddings — все три движка ищут одновременно, результаты объединяются и дедуплицируются. Запускается через Docker: `docker compose --profile vector-search up -d`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
services/vector-search/) — FastAPI + ChromaDB +paraphrase-multilingual-mpnet-base-v2(768 dims), Bearer token auth, persistent storageapp/services/vector_search_client.py) — httpx with retry + graceful degradationsearch_async(),retrieve_async(),retrieve_multi_async()run BM25 + embeddings + vector search viaasyncio.gather, merge/deduplicate results_inject_rag_context_async)vector-search-sync) + incremental sync viaDatasetSyncedeventsGET /admin/wiki-rag/vector-search/status,POST .../sync/healthendpointvector-searchservice (profile:vector-search, port 8003),vector_search_datavolumeVECTOR_SEARCH_URL,VECTOR_SEARCH_TOKENRelates to #489
NEWS
🔍 Vector Search — новый движок семантического поиска
Добавлен микросервис Vector Search на базе ChromaDB и мультиязычной модели paraphrase-multilingual-mpnet-base-v2. Работает параллельно с BM25 и embeddings — все три движка ищут одновременно, результаты объединяются и дедуплицируются. Запускается через Docker:
docker compose --profile vector-search up -d.Test plan
docker compose --profile vector-search up -d— microservice startscurl http://localhost:8003/health— returns ok + model infoVECTOR_SEARCH_URL=http://localhost:8003GET /admin/wiki-rag/vector-search/status— shows connectedPOST /admin/wiki-rag/vector-search/sync— upserts all sectionsPOST /admin/wiki-rag/search— results includeengine: "vector_search"ruff check .+cd admin && npm run lint:checkpass🤖 Generated with Claude Code