Class EmbeddingStoreResponseContext<Embedded>
java.lang.Object
dev.langchain4j.store.embedding.listener.EmbeddingStoreResponseContext<Embedded>
- Direct Known Subclasses:
EmbeddingStoreResponseContext.Add, EmbeddingStoreResponseContext.AddAll, EmbeddingStoreResponseContext.Remove, EmbeddingStoreResponseContext.RemoveAll, EmbeddingStoreResponseContext.RemoveAllFilter, EmbeddingStoreResponseContext.RemoveAllIds, EmbeddingStoreResponseContext.Search
The embedding store response context.
It contains the response details, corresponding request details, and attributes.
The attributes can be used to pass data between methods of an
EmbeddingStoreListener
or between multiple EmbeddingStoreListeners.- Since:
- 1.11.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTheadd(...)response context.static final classTheaddAll(...)response context.static final classTheremove(String)response context.static final classTheremoveAll()response context.static final classTheremoveAll(Filter)response context.static final classTheremoveAll(ids)response context.static final classThesearch(...)response context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmbeddingStoreResponseContext(EmbeddingStoreRequestContext<Embedded> requestContext, Map<Object, Object> attributes) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
EmbeddingStoreResponseContext
protected EmbeddingStoreResponseContext(EmbeddingStoreRequestContext<Embedded> requestContext, Map<Object, Object> attributes)
-
-
Method Details
-
embeddingStore
-
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of an
EmbeddingStoreListeneror between multipleEmbeddingStoreListeners.
-
requestContext
- Returns:
- The corresponding request context.
-