Merged
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
tsmith023
reviewed
Apr 16, 2026
tsmith023
approved these changes
Apr 16, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev/1.37 #2011 +/- ##
============================================
- Coverage 87.54% 86.74% -0.80%
============================================
Files 280 294 +14
Lines 22055 22734 +679
============================================
+ Hits 19308 19721 +413
- Misses 2747 3013 +266 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Add support for query profiling (#2002). Requires Weaviate >= 1.36.9.
When enabled, the server returns per-shard execution timing breakdowns for search queries. The client exposes this as structured data on all query return types.
Changes
search_get_pb2(all 3 protobuf version variants) from Weaviate v1.36.9 protos to addMetadataRequest.query_profile(field 11),SearchReply.query_profile(field 6), and theQueryProfilemessagequery_profile: booltoMetadataQuery,_MetadataQuery, and theMETADATAtype alias. Wired through_metadata_to_grpc()QueryProfileReturn,ShardProfileReturn,SearchProfileReturndataclasses. Addedquery_profile: Optional[QueryProfileReturn]toQueryReturn,GenerativeReturn,GroupByReturn, andGenerativeGroupByReturnWeaviateUnsupportedFeatureErrorwhenquery_profile=Trueis used against a server < 1.36.9MetadataQuery.full()does not includequery_profile(profiling has overhead)Usage
Test plan
test_fetch_objects_with_query_profile— object lookup returns"object"search profiletest_near_vector_with_query_profile— vector search returns HNSW metricstest_bm25_with_query_profile— BM25 returns keyword metrics (kwd_method,kwd_time, etc.)test_hybrid_with_query_profile— hybrid returns both"vector"and"keyword"profilestest_near_vector_group_by_with_query_profile— group-by with profilingtest_no_query_profile_when_not_requested— opt-in semantics (null when not requested)test_query_profile_with_metadata_list— list-style metadata["query_profile", "distance"]test_query_profile_details_are_strings— all detail keys/values are non-empty stringsCloses #2002