You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -189,7 +190,7 @@ The extracted information will be summarized using LLM. The summary, as well as
189
190
| rag_api |[`admin_api_lib.rag_backend_client.openapi_client.api.rag_api.RagApi`](./admin-api-lib/src/admin_api_lib/rag_backend_client/openapi_client/api/rag_api.py)|[`admin_api_lib.rag_backend_client.openapi_client.api.rag_api.RagApi`](./admin-api-lib/src/admin_api_lib/rag_backend_client/openapi_client/api/rag_api.py)| Needs to be replaced if changes to the `/information_pieces/remove` or `/information_pieces/upload` of the [`rag-core-api`](#1-rag-core-api) are made. |
190
191
| summarizer_prompt |`str`|[`admin_api_lib.prompt_templates.summarize_prompt.SUMMARIZE_PROMPT`](./admin-api-lib/src/admin_api_lib/prompt_templates/summarize_prompt.py)| The prompt used of the summarization. |
191
192
| langfuse_manager |[`rag_core_lib.impl.langfuse_manager.langfuse_manager.LangfuseManager`](./rag-core-lib/src/rag_core_lib/impl/langfuse_manager/langfuse_manager.py)|[`rag_core_lib.impl.langfuse_manager.langfuse_manager.LangfuseManager`](./rag-core-lib/src/rag_core_lib/impl/langfuse_manager/langfuse_manager.py)| Retrieves additional settings, as well as the prompt from langfuse if available. |
192
-
| summarizer |[`admin_api_lib.summarizer.summarizer.Summarizer`](./admin-api-lib/src/admin_api_lib/summarizer/summarizer.py)|[`admin_api_lib.impl.summarizer.langchain_summarizer.LangchainSummarizer`](./admin-api-lib/src/admin_api_lib/impl/summarizer/langchain_summarizer.py)| Creates the summaries. Uses the shared retry decorator with optional per-summarizer overrides (see 2.4). |
193
+
| summarizer |[`admin_api_lib.summarizer.summarizer.Summarizer`](./admin-api-lib/src/admin_api_lib/summarizer/summarizer.py)|[`admin_api_lib.impl.summarizer.langchain_summarizer.LangchainSummarizer`](./admin-api-lib/src/admin_api_lib/impl/summarizer/langchain_summarizer.py)| Creates the summaries. Uses the shared retry decorator with optional per-summarizer overrides (see 2.5). |
193
194
| untraced_information_enhancer |[`admin_api_lib.information_enhancer.information_enhancer.InformationEnhancer`](./admin-api-lib/src/admin_api_lib/information_enhancer/information_enhancer.py)|[`admin_api_lib.impl.information_enhancer.general_enhancer.GeneralEnhancer`](./admin-api-lib/src/admin_api_lib/impl/information_enhancer/general_enhancer.py)| Uses the *summarizer* to enhance the extracted documents. |
194
195
| information_enhancer |[`rag_core_lib.chains.async_chain.AsyncChain[Any, Any]`](./rag-core-lib/src/rag_core_lib/chains/async_chain.py)|[`rag_core_lib.impl.tracers.langfuse_traced_chain.LangfuseTracedGraph`](./rag-core-lib/src/rag_core_lib/impl/tracers/langfuse_traced_chain.py)|Wraps around the *untraced_information_enhancer* and adds langfuse tracing. |
195
196
| document_deleter |[`admin_api_lib.api_endpoints.document_deleter.DocumentDeleter`](./admin-api-lib/src/admin_api_lib/api_endpoints/document_deleter.py)|[`admin_api_lib.impl.api_endpoints.default_document_deleter.DefaultDocumentDeleter`](./admin-api-lib/src/admin_api_lib/impl/api_endpoints/default_document_deleter.py)| Handles deletion of sources. |
@@ -198,7 +199,51 @@ The extracted information will be summarized using LLM. The summary, as well as
198
199
| document_reference_retriever |[`admin_api_lib.api_endpoints.document_reference_retriever.DocumentReferenceRetriever`](./admin-api-lib/src/admin_api_lib/api_endpoints/document_reference_retriever.py)|[`admin_api_lib.impl.api_endpoints.default_document_reference_retriever.DefaultDocumentReferenceRetriever`](./admin-api-lib/src/admin_api_lib/impl/api_endpoints/default_document_reference_retriever.py)| Handles return of files from connected storage. |
199
200
| file_uploader |[`admin_api_lib.api_endpoints.file_uploader.FileUploader`](./admin-api-lib/src/admin_api_lib/api_endpoints/file_uploader.py)|[`admin_api_lib.impl.api_endpoints.default_file_uploader.DefaultFileUploader`](./admin-api-lib/src/admin_api_lib/impl/api_endpoints/default_file_uploader.py)| Handles upload and extraction of files. |
200
201
201
-
### 2.4 Summarizer retry behavior
202
+
### 2.4 Chunker configuration
203
+
204
+
The default dependency container exposes two chunking strategies via [`ChunkerSettings`](./admin-api-lib/src/admin_api_lib/impl/settings/chunker_settings.py):
|`CHUNKER_SEMANTIC_BREAKPOINT_THRESHOLD`| Threshold associated with the selected heuristic. |`95.0`|
218
+
|`CHUNKER_SEMANTIC_BUFFER_SIZE`| Context buffer that is kept on both sides of a semantic breakpoint. |`1`|
219
+
|`CHUNKER_SEMANTIC_MIN_CHUNK_SIZE`| Minimum size for semantic chunks. |`200`|
220
+
|`CHUNKER_SEMANTIC_MAX_CHUNK_SIZE`| Optional maximum size for semantic chunks (`None` when omitted). |`1200`|
221
+
|`CHUNKER_SEMANTIC_TRIM_CHUNKS`| Whether to strip whitespace around semantic chunks. |`true`|
222
+
223
+
> 📌 The recursive chunker only uses the `CHUNKER_MAX_SIZE` and `CHUNKER_OVERLAP` knobs. The remaining keys are ignored unless `CHUNKER_MODE=semantic`.
224
+
225
+
#### Embeddings backend for semantic chunking
226
+
227
+
When `CHUNKER_MODE` is set to `semantic`, the dependency container selects embeddings using [`EmbedderClassTypeSettings`](./rag-core-lib/src/rag_core_lib/impl/settings/embedder_class_type_settings.py). Configure the backend via:
228
+
229
+
-`EMBEDDER_CLASS_TYPE_EMBEDDER_TYPE`: choose one of `stackit`, `ollama`, or `fake`.
In the Helm chart set `CHUNKER_*` keys under `adminBackend.envs.chunker`. The admin deployment reuses the embedder config maps from the backend release, so adjust `backend.envs.embedderClassTypes`, `backend.envs.stackitEmbedder`, `backend.envs.ollamaEmbedder`, or `backend.envs.fakeEmbedder` accordingly when switching embeddings for semantic chunking.
245
+
246
+
### 2.5 Summarizer retry behavior
202
247
203
248
The default summarizer implementation (`LangchainSummarizer`) now uses the shared retry decorator with exponential backoff from the `rag-core-lib`.
0 commit comments