Skip to content

fix: convert hash index sample data to object in query wizard#57

Merged
CahidArda merged 1 commit into
masterfrom
dx-2678-fix-hash-wizard-sample-data
Jun 19, 2026
Merged

fix: convert hash index sample data to object in query wizard#57
CahidArda merged 1 commit into
masterfrom
dx-2678-fix-hash-wizard-sample-data

Conversation

@ytkimirti

@ytkimirti ytkimirti commented May 22, 2026

Copy link
Copy Markdown
Collaborator

The AI Query Builder sends a few sample documents from the index to the LLM as context. For hash indexes, hgetall returns a raw flat array (["title", "My doc"]) instead of an object, because the client runs with automaticDeserialization: false — which caused the wizard to fail with Invalid request data.

This converts the flat array into a { field: value } object before sending, so hash indexes work and the LLM gets cleaner data. JSON and string indexes were unaffected since they come back as strings.

@linear

linear Bot commented May 22, 2026

Copy link
Copy Markdown

DX-2678

@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-redis-browser Ready Ready Preview, Comment May 22, 2026 6:00pm

Request Review

@CahidArda CahidArda merged commit eb59ed0 into master Jun 19, 2026
4 checks passed
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.

2 participants