What's Changed
Implements methods to be compatible with v2 of the Redactive gRPC API 🎉
:warning: Breaking Changes :warning:
- `queryChunks` is now called `searchChunks`. For simplicity, it accepts a parameter called `query` instead of `semanticQuery`.
- `getChunksByURL` and `queryChunksByDocumentName` are now one method called `getDocument`. It accepts a parameter called `ref`. If this parameter is a URL, we will fetch the resource at that URL. If `ref` is a non-URL string, we treat it as the document's name, and attempt to match all chunks in a document with that name. Note: URL refs are recommended, as they are typically more precise.
- Both of these methods return a Response object that includes both chunks and metadata about the request status, as opposed to just returning chunks.
Other Changes
- Updated the documentation to be clearer and more comprehensive.
- More descriptive error messages should be returned when things go wrong.
- Responses from the gRPC endpoints include a list of `providers_used` to fulfil the request. This is the intersection of data providers the user has access to and any filters applied.
**Full Changelog**: https://github.com/redactive-ai/redactive/compare/v1.4.9...v2.0.0