Skip to content

Commit f531ae7

Browse files
committed
Add .DS_Store to gitignore and document hybrid search in README
1 parent f0f07f8 commit f531ae7

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ marimo/_static/
206206
marimo/_lsp/
207207
__marimo__/
208208

209+
# macOS
210+
.DS_Store
211+
209212
# VSCode
210213
.vscode/
211214
mongo_data/

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

4156
By default, the application uses the provided 2016 HR Manual. To use your own data:

0 commit comments

Comments
 (0)