🚀 Feature: Enhancing Milvus VectorDB Instrumentation for Improved search
Monitoring
#2808
Closed
1 task done
search
Monitoring
#2808
Uh oh!
There was an error while loading. Please reload this page.
Which component is this feature for?
Milvus Instrumentation
🔖 Feature description
Description:
We propose enhancing the existing Milvus VectorDB search method instrumentation by introducing additional attributes for better monitoring and analysis. These changes aim to provide deeper insights into search performance, retrieved results, distances, the ranking of retrieved results, and other relevant key metrics that are crucial for end to end observability of a RAG agent.
Current State:
The current Milvus instrumentation for
search
does not include the following essential attributes:Why do we need these attributes:
Before and After Comparison of Search Instrumentation:
Note: Highlighted boxes show the new proposed attributes which are not present currently:
Single-query Search:
Multi-Vector Search:
Track per-query attributes for multiple query vectors in a single search operation.
🎤 Why is this feature needed ?
This feature is needed to enhance the end-to-end observability of Milvus search operations of a RAG agent. By adding this feature, we aim to provide deeper insights into search performance and monitoring.
✌️ How do you aim to achieve this?
Add new attributes such as Output Fields, Metric Type, Radius, Input Query Vector Dimension to the existing function:

A new function should be added to handle processing of search results and introduce the required events and attributes (such as Result Count, Result Distances, Retrieved Results, Multi-vector searches)

Incorporate new attributes: packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/init.py
Testing and Validation: Verifying that the new attributes function properly with various parameter configurations in the search operation, and ensuring the attributes are correctly added to the spans through unit tests.
🔄️ Additional Information
Our team at IBM would like to contribute to the creation of this feature.
👀 Have you spent some time to check if this feature request has been raised before?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: