Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb54887c03 |
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.8.2] - 2025-12-16
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **HybridRAG keywords schema mismatch** - library-desk now returns `keywords` as dict with `core_keywords`, client now handles both formats
|
||||||
|
|
||||||
## [1.8.1] - 2025-12-16
|
## [1.8.1] - 2025-12-16
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tatlock"
|
name = "tatlock"
|
||||||
version = "1.8.1"
|
version = "1.8.2"
|
||||||
description = "OpenAI-compatible API with Ollama backend"
|
description = "OpenAI-compatible API with Ollama backend"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|||||||
@@ -281,9 +281,16 @@ class LibraryDeskClient:
|
|||||||
metadata=r.get("metadata", {}),
|
metadata=r.get("metadata", {}),
|
||||||
))
|
))
|
||||||
|
|
||||||
|
# Handle keywords being either a list or a dict with core_keywords
|
||||||
|
raw_keywords = data.get("keywords", [])
|
||||||
|
if isinstance(raw_keywords, dict):
|
||||||
|
keywords = raw_keywords.get("core_keywords", [])
|
||||||
|
else:
|
||||||
|
keywords = raw_keywords
|
||||||
|
|
||||||
return HybridRAGResponse(
|
return HybridRAGResponse(
|
||||||
results=results,
|
results=results,
|
||||||
keywords=data.get("keywords", []),
|
keywords=keywords,
|
||||||
synonyms=data.get("synonyms", []),
|
synonyms=data.get("synonyms", []),
|
||||||
related_dossiers=data.get("related_dossiers", []),
|
related_dossiers=data.get("related_dossiers", []),
|
||||||
formatted_context=data.get("formatted_context", ""),
|
formatted_context=data.get("formatted_context", ""),
|
||||||
|
|||||||
Reference in New Issue
Block a user