fleet-memory/hindsight-api/hindsight_api/engine/retain
Nicolò Boschi d871c3009d
feat: support timescale pg_textsearch as text search extension (#359)
* feat: support timescale pg_textsearch as text search extension

* refactor: deduplicate text search query in retrieve_semantic_bm25_combined

Instead of maintaining 3 complete query copies (native, vchord, pg_textsearch),
now we:
- Build backend-specific parts (score_expr, order_by, where_filter)
- Use a single query template with injected backend-specific parts

This makes maintenance easier - changes to the semantic CTE or overall structure
only need to be made once.
2026-02-12 17:38:13 +01:00
..
__init__.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
bank_utils.py feat: introduce mental models (#132) 2026-01-16 11:16:41 +01:00
chunk_storage.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
deduplication.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
embedding_processing.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
embedding_utils.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
entity_processing.py misc: add mcp integration tests and increase test coverage (#98) 2026-01-05 11:16:55 +01:00
fact_extraction.py feat: implement hierarchical configuration (system, tenant, bank) (#329) 2026-02-12 13:14:57 +01:00
fact_storage.py feat: support timescale pg_textsearch as text search extension (#359) 2026-02-12 17:38:13 +01:00
link_creation.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
link_utils.py feat: revisit mental models, directives and reflections (#179) 2026-01-22 17:13:16 +01:00
orchestrator.py feat: implement hierarchical configuration (system, tenant, bank) (#329) 2026-02-12 13:14:57 +01:00
types.py feat: revisit mental models, directives and reflections (#179) 2026-01-22 17:13:16 +01:00