Skip to content

fix(chat): avoid unsupported ParadeDB chat-search query shape - #429

Merged
prvnsmpth merged 1 commit into
masterfrom
fix/paradedb-chat-search
Aug 29, 2026
Merged

fix(chat): avoid unsupported ParadeDB chat-search query shape#429
prvnsmpth merged 1 commit into
masterfrom
fix/paradedb-chat-search

Conversation

@prvnsmpth

Copy link
Copy Markdown
Contributor

Summary

  • Move title-match preview lookups outside ParadeDB BM25 search CTEs in the web and AI chat repositories.
  • Preserve title preview content and matching message IDs after ranking/limiting search candidates.
  • Extend the AI integration coverage to assert title-match snippets are returned.

The previous query placed a LEFT JOIN LATERAL inside the BM25 query. On ParadeDB 0.24 with the deployed index/data state, that produced Unsupported query shape errors for both the sidebar chat search endpoint and the AI search_chats tool.

Tests

  • cd web && npm run test:integ -- src/lib/server/db/chats.test.ts
  • cd services/ai && uv run pytest -q tests/integration/test_chat_history_repository.py tests/integration/test_chat_history_tools.py

Both suites pass against ParadeDB 0.24 Testcontainers.

@prvnsmpth
prvnsmpth merged commit acdbb60 into master Aug 29, 2026
38 checks passed
@prvnsmpth
prvnsmpth deleted the fix/paradedb-chat-search branch August 29, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant