From 464ec5380ca92a6002defec2760aea5a95565729 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Mon, 15 Dec 2025 16:59:32 +0100 Subject: [PATCH] fix: add content_extractor to hybrid_rag router dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The router had its own local get_hybrid_rag_service factory that was missing the new content_extractor parameter, causing 500 errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- src/routers/hybrid_rag.py | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0187f6b..82e166c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to Library Desk will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.1] - 2025-12-15 + +### Fixed + +- HybridRAG router missing `content_extractor` dependency causing 500 errors on `/query/hybrid` endpoint + ## [1.2.0] - 2025-12-15 ### Added diff --git a/pyproject.toml b/pyproject.toml index f47edf0..72b85a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "library-desk" -version = "1.2.0" +version = "1.2.1" description = "Coordination service for The Library system - HybridRAG queries, document ingestion, entity extraction, and knowledge consolidation" readme = "README.md" requires-python = ">=3.12" diff --git a/src/routers/hybrid_rag.py b/src/routers/hybrid_rag.py index 4ea7ea1..adc2936 100644 --- a/src/routers/hybrid_rag.py +++ b/src/routers/hybrid_rag.py @@ -16,7 +16,7 @@ from src.clients.searxng_client import SearXNGClient from src.clients.ollama_client import OllamaClient from src.core.dependencies import ( Neo4jDep, WikiJSDep, QdrantDep, OllamaDep, - SearXNGDep, verify_api_key, get_settings + SearXNGDep, ContentExtractorDep, verify_api_key, get_settings ) from src.config import Settings @@ -32,6 +32,7 @@ def get_hybrid_rag_service( qdrant_client: QdrantDep, ollama_client: OllamaDep, searxng_client: SearXNGDep, + content_extractor: ContentExtractorDep, settings: Settings = Depends(get_settings) ) -> HybridRAGService: """Get HybridRAG service instance with all dependencies.""" @@ -48,6 +49,7 @@ def get_hybrid_rag_service( graph_service=graph_service, searxng_client=searxng_client, ollama_client=ollama_client, + content_extractor=content_extractor, settings=settings )