agentic-rag-policy-assistant/app
Daniel Plank fdc3c24efe Switch to a multilingual embedding model for non-English queries
The embedding model (all-MiniLM-L6-v2) is English-only, so retrieval
quality degraded for questions asked in other languages even though the
chat model itself answers fine in them. Switched the default
EMBEDDING_MODEL to
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 (50+
languages, same 384-dim output).

The vectorstore's on-disk cache was keyed only on the policy corpus
fingerprint, so changing the embedding model would have silently reused
a stale index built from the old model's (differently-meaning) vectors
instead of rebuilding. Folded EMBEDDING_MODEL into that fingerprint so a
model change now triggers a rebuild automatically.

Refs #16
2026-11-09 22:01:25 +01:00
..
data/policies Add synthetic internal policy corpus for the RAG knowledge base 2026-11-05 18:01:48 +01:00
rag Switch to a multilingual embedding model for non-English queries 2026-11-09 22:01:25 +01:00
tools Deterministic tools: PTO calculator and support ticketing 2026-11-05 22:55:52 +01:00
__init__.py Agent scaffolding: config, state schema, tracing 2026-11-05 22:02:14 +01:00
config.py Switch to a multilingual embedding model for non-English queries 2026-11-09 22:01:25 +01:00
graph.py Mitigate prompt injection via user-message wrapping + explicit guard 2026-11-09 22:01:10 +01:00
llm.py Streamlit UI polish: native theming, multi-chat sessions, follow-ups 2026-11-09 22:00:45 +01:00
state.py Agent scaffolding: config, state schema, tracing 2026-11-05 22:02:14 +01:00
tracing.py Agent scaffolding: config, state schema, tracing 2026-11-05 22:02:14 +01:00