File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,6 +206,9 @@ marimo/_static/
206206marimo /_lsp /
207207__marimo__ /
208208
209+ # macOS
210+ .DS_Store
211+
209212# VSCode
210213.vscode /
211214mongo_data /
Original file line number Diff line number Diff line change @@ -33,9 +33,24 @@ This script will handle all the setup of Ollama Package and the model and as wel
3333* ** AI/LLM:** Ollama (Llama 3.2 3B)
3434* ** Embeddings:** Nomic Embed Text
3535* ** Vector Store:** ChromaDB
36+ * ** Retrieval:** Hybrid search (semantic + BM25 keyword)
3637* ** Database:** MongoDB (for user authentication and chat history)
3738* ** Orchestration:** Langchain & Docker
3839
40+ ## Search Configuration
41+
42+ The app uses ** hybrid search** combining semantic (vector) and keyword (BM25) retrieval:
43+
44+ | Parameter | Default | Description |
45+ | -------------------| ---------| ----------------------------------------------------|
46+ | ` enabled ` | ` true ` | Toggle hybrid search on/off |
47+ | ` semantic_weight ` | ` 0.7 ` | Weight for semantic (embedding) similarity scores |
48+ | ` bm25_weight ` | ` 0.3 ` | Weight for BM25 keyword matching scores |
49+ | ` top_k ` | ` 6 ` | Number of final documents returned to the LLM |
50+ | ` fetch_k ` | ` 18 ` | Documents fetched per retriever before fusion |
51+
52+ Disable hybrid search (` "enabled": false ` ) to fall back to semantic-only retrieval.
53+
3954## Customizing the HR Policy
4055
4156By default, the application uses the provided 2016 HR Manual. To use your own data:
You can’t perform that action at this time.
0 commit comments