honcho/src/utils
Aakash Kattelu e1537216cf
fix: stop top_k=0 from reaching Turbopuffer on message search (#1084)
* fix: stop top_k=0 from reaching Turbopuffer on message search

HONCHO-19Q: dreamer search_messages passed LLM limit=0 through to
Turbopuffer (top_k must be 1..10000). #970 guarded documents; this
closes the message path and floors tool limits at 1.

* fix: preserve pgvector None sentinel on zero top_k

query_external_vector_document_ids must return None when on the
pgvector path before applying the top_k<=0 empty-list guard.
2026-08-26 17:07:41 -04:00
..
__init__.py Honcho 2.1.0 "ROTE" deriver (#160) 2025-07-16 18:02:43 -04:00
agent_tools.py fix: stop top_k=0 from reaching Turbopuffer on message search (#1084) 2026-08-26 17:07:41 -04:00
config_helpers.py feat: deriver custom instructions (#609) 2026-05-11 18:05:42 -04:00
files.py fix(files): handle empty json uploads safely (#434) 2026-03-18 18:36:34 -04:00
filter.py fix(filter): make ne on jsonb metadata keys null-safe (#1036) 2026-08-24 09:33:08 -04:00
formatting.py feat: agentic dreamer and agentic dialectic (#309) 2026-01-12 15:12:17 -05:00
json_parser.py fix: Remove noisy sentry error on llm failure and upgrade deps (#396) 2026-02-23 15:53:29 -05:00
queue_payload.py feat: scope backfill-by-copy and removal reconciliation jobs (#904) 2026-08-14 15:08:43 -04:00
representation.py feat: session allowlist on dialectic and representation via filters (#882) 2026-07-28 10:55:02 -04:00
schema_conversion.py feat(dialectic): optional structured outputs with limited schema for Dialectic calls (#896) 2026-07-20 18:46:49 -04:00
scopes.py feat: Add workspace-level chat (#931) 2026-08-24 15:54:23 -04:00
search.py fix: stop top_k=0 from reaching Turbopuffer on message search (#1084) 2026-08-26 17:07:41 -04:00
summarizer.py feat(telemetry): CloudEvents + Langfuse tracing as projections over a captured LLM stream (#845) 2026-07-02 16:49:53 -04:00
tokens.py switch OTEL metrics to prometheus (#344) 2026-01-25 17:26:42 -05:00
types.py telemetry: zero-initialize bounded-label metrics so an absent series means a broken scrape (#927) 2026-08-20 10:24:49 -04:00
work_unit.py feat: scope backfill-by-copy and removal reconciliation jobs (#904) 2026-08-14 15:08:43 -04:00