Class VectorStoreObservationContext
java.lang.Object
io.micrometer.observation.Observation.Context
org.springframework.ai.vectorstore.observation.VectorStoreObservationContext
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
public class VectorStoreObservationContext
extends io.micrometer.observation.Observation.Context
Context used to store metadata for vector store operations.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder(String databaseSystem, VectorStoreObservationContext.Operation operation) voidsetCollectionName(String collectionName) voidsetDimensions(Integer dimensions) voidsetFieldName(String fieldName) voidsetNamespace(String namespace) voidsetQueryRequest(SearchRequest queryRequest) voidsetQueryResponse(List<Document> queryResponse) voidsetSimilarityMetric(String similarityMetric) Methods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micrometer.observation.Observation.ContextView
getOrDefault
-
Constructor Details
-
VectorStoreObservationContext
-
-
Method Details
-
builder
public static VectorStoreObservationContext.Builder builder(String databaseSystem, String operationName) -
builder
public static VectorStoreObservationContext.Builder builder(String databaseSystem, VectorStoreObservationContext.Operation operation) -
getDatabaseSystem
-
getOperationName
-
getCollectionName
-
setCollectionName
-
getDimensions
-
setDimensions
-
getFieldName
-
setFieldName
-
getNamespace
-
setNamespace
-
getSimilarityMetric
-
setSimilarityMetric
-
getQueryRequest
-
setQueryRequest
-
getQueryResponse
-
setQueryResponse
-