diff --git a/docs/configuration/index.md b/docs/configuration/index.md index 3b313216..1754349f 100644 --- a/docs/configuration/index.md +++ b/docs/configuration/index.md @@ -117,6 +117,11 @@ processing: chunking_tokenizer: "Qwen/Qwen3-Embedding-0.6B" chunking_merge_peers: true chunking_use_markdown_tables: false + auto_title: false # Auto-generate titles on ingestion + title_model: + provider: ollama + name: gpt-oss + enable_thinking: false conversion_options: do_ocr: true force_ocr: false diff --git a/haiku_rag_slim/haiku/rag/client.py b/haiku_rag_slim/haiku/rag/client.py index c05f40a8..15db857e 100644 --- a/haiku_rag_slim/haiku/rag/client.py +++ b/haiku_rag_slim/haiku/rag/client.py @@ -2034,6 +2034,11 @@ class HaikuRAG: pic_desc = self._config.processing.conversion_options.picture_description if pic_desc.enabled and pic_desc.model.provider == "ollama": required_models.add(pic_desc.model.name) + if ( + self._config.processing.auto_title + and self._config.processing.title_model.provider == "ollama" + ): + required_models.add(self._config.processing.title_model.name) if not required_models: return