From cca3ba0bdab4b399dd5e5a3f3a0fd34d25b8da57 Mon Sep 17 00:00:00 2001 From: Jan Kessler Date: Tue, 20 May 2025 12:09:52 +0200 Subject: [PATCH 1/2] docs for bm25_weight --- docs/getting-started/env-configuration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/getting-started/env-configuration.md b/docs/getting-started/env-configuration.md index 21398dd..45aa8d6 100644 --- a/docs/getting-started/env-configuration.md +++ b/docs/getting-started/env-configuration.md @@ -1355,6 +1355,13 @@ When using Pinecone as the vector store, the following environment variables are - Description: Sets the relevance threshold to consider for documents when used with reranking. - Persistence: This environment variable is a `PersistentConfig` variable. +#### `RAG_BM25_WEIGHT` + +- Type: `float` +- Default: `0.5` +- Description: Sets the weight given to the keyword search (BM25) during hybrid search. 1 means only keyword serach, 0 means only vector search. +- Persistence: This environment variable is a `PersistentConfig` variable. + #### `RAG_TEMPLATE` - Type: `str` From 9cccee9cbbebdb3cc54b97b86b83e3f3e22857ba Mon Sep 17 00:00:00 2001 From: Jan Kessler Date: Fri, 23 May 2025 22:52:29 +0200 Subject: [PATCH 2/2] RAG_BM25_WEIGHT -> RAG_HYBRID_BM25_WEIGHT --- docs/getting-started/env-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/env-configuration.md b/docs/getting-started/env-configuration.md index 45aa8d6..797df59 100644 --- a/docs/getting-started/env-configuration.md +++ b/docs/getting-started/env-configuration.md @@ -1355,7 +1355,7 @@ When using Pinecone as the vector store, the following environment variables are - Description: Sets the relevance threshold to consider for documents when used with reranking. - Persistence: This environment variable is a `PersistentConfig` variable. -#### `RAG_BM25_WEIGHT` +#### `RAG_HYBRID_BM25_WEIGHT` - Type: `float` - Default: `0.5`