Open thomasht86 opened 1 month ago
Nice! Right now we have our own "vespa_services" where we try to have some common interfaces to our devs, having this in pyvespa itself will be awesome.
Do you plan to add support pagination? Maybe this is not related to the scope of the Querybuilder. 🤔
Thanks for the input.
The intention is to support setting limit
and offset
- see link
Also, continuations in grouping should be supported.
.set_limit(2)
.set_offset(5)
visiting is not the scope of this, but that also supports continuation.
Is that what you were thinking?
Hmmm, cool! - That should cover my use case!
So let's say my user delete a document from a folder, so we normally use offset to go over all documents for this specific file_id that exists in a streaming group ( by folder_id ) and call the delete operation for each document found.
Another use case is that we have a low topK ( 5 ) and we have a LLM tool that decides - are those sources enough to reply the question? If not, bring the next 5.
Still not sure if that's the best way, but it works. :)
Querybuilder in Pyvespa
We have been working on a draft for implementing support for building YQL-queries programmatically with pyvespa. The goal is to make it as ergonomic as possible for users to build complex queries. We would like feedback on the API-proposal from potential users.
Proposal
The WIP unit tests looks like this as of now.
Feedback
Please post any feedback and/or modification suggestions to this below. Now is the time to speak up! 😄