FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix nested EmbJSON chunk path resolution by xiaolu-ai26 · Pull Request #6 · onenodehq/onenode · GitHub

Fix nested EmbJSON chunk path resolution - #6

Open
xiaolu-ai26 wants to merge 1 commit into
onenodehq:mainfrom
xiaolu-ai26:fix-nested-query-chunks
Open

Fix nested EmbJSON chunk path resolution#6
xiaolu-ai26 wants to merge 1 commit into
onenodehq:mainfrom
xiaolu-ai26:fix-nested-query-chunks

Conversation

Copy link
Copy Markdown

Summary

Fixes #5.

Semantic query responses now resolve chunks for nested indexed fields whose paths are stored in dot notation, including array paths like items.0.description.

What changed

  • Split stored EmbJSON paths on ., matching process_document() path generation.
  • Traverse dictionaries and numeric list indexes defensively.
  • Return None for missing/out-of-range paths instead of raising during response composition.

Validation

Ran a direct helper check:

description => top
meta.description => nested
items.0.description => array
items.99.description => None
nested
PASS

Also ran:

python3 -m compileall -q blueprints/v0/project/db/collection/document/query/helper.py

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Nested xText query results return null chunks

1 participant


Back | FazBrowse Home | New Git URL