Repository navigation
feat: support the vector API (alpha) from Dapr 1.19 - #1901
Merged
Merged
Conversation
Add DaprPreviewClient methods for the nine vector RPCs added in Dapr 1.19 (collections, records, queries and batch queries), backed by a package-private DaprVectorClient on DaprGrpcCalls. New domain types keep the generated protos out of the public API; IndexingOptions, IndexAck and FailedItem are shared so the search API can reuse them. Requests are validated before the sidecar is called, and replies that break the proto's guarantees fail with INTERNAL, as in the .NET and JS clients. Includes unit tests, a Testcontainers IT against daprd 1.19.1 and an example validated with mechanical-markdown. Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1901 +/- ##
============================================
+ Coverage 81.10% 81.96% +0.85%
- Complexity 3396 3645 +249
============================================
Files 310 329 +19
Lines 10809 11340 +531
Branches 1241 1290 +49
============================================
+ Hits 8767 9295 +528
Misses 1550 1550
- Partials 492 495 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
javier-aliaga
approved these changes
Nov 10, 2026
2 of 3 tasks
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for the Vector API (alpha) introduced in Dapr 1.19.
This PR covers the vector portion of #1879; the search API will follow in a separate PR. The approach was approved by the maintainer.
The changes include:
DaprPreviewClientmethods for creating, reading, listing and deleting collections, managing vector records, and running single or batch vector queries.DaprVectorClientusingDaprGrpcCalls, with domain types that keep generated protobuf classes out of the public API.vector.in-memory, and a working example.Testing:
Backport note: This implementation depends on
DaprGrpcCalls(#1883), which is not currently onrelease-1.19. That change would need to be backported first.Issue reference
Part of #1879. The remaining search API will be implemented separately.
Checklist
dapr/docsupdate will follow in a separate PR.