Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fetching tensors as HEX encoded binary values #33207

Open
dainiusjocas opened this issue Jan 29, 2025 · 1 comment
Open

Support fetching tensors as HEX encoded binary values #33207

dainiusjocas opened this issue Jan 29, 2025 · 1 comment
Assignees
Milestone

Comments

@dainiusjocas
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It is possible to feed tensors as hex encoded binary values, but it is not possible to fetch them from Vespa in neither search results nor through document responses. This would reduce the number of bytes sent around and could be consistent with feeding.

Describe the solution you'd like
It would be nice to get tensors as hex-encoded binary values with search results (this is more important for my use cases) and through document responses by setting 'format.tensors'.

Describe alternatives you've considered
Just using the current functionality where tensor values are rendered as floats.

Additional context

@geirst
Copy link
Member

geirst commented Jan 29, 2025

First step: Add a new enum for https://docs.vespa.ai/en/reference/query-api-reference.html#presentation.format.tensors that renders tensor in hex format in search result.

@hmusum hmusum added this to the soon milestone Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

4 participants