Class EmbeddingStoreRequestContext<Embedded>
java.lang.Object
dev.langchain4j.store.embedding.listener.EmbeddingStoreRequestContext<Embedded>
- Direct Known Subclasses:
EmbeddingStoreRequestContext.Add, EmbeddingStoreRequestContext.AddAll, EmbeddingStoreRequestContext.Remove, EmbeddingStoreRequestContext.RemoveAll, EmbeddingStoreRequestContext.RemoveAllFilter, EmbeddingStoreRequestContext.RemoveAllIds, EmbeddingStoreRequestContext.Search
The embedding store request context.
It contains operation 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(...)request context.static final classTheaddAll(...)request context.static final classTheremove(String)request context.static final classTheremoveAll()request context.static final classTheremoveAll(Filter)request context.static final classTheremoveAll(ids)request context.static final classThesearch(...)request context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmbeddingStoreRequestContext(EmbeddingStore<Embedded> embeddingStore, Map<Object, Object> attributes) Deprecated.protectedEmbeddingStoreRequestContext(EmbeddingStore<Embedded> embeddingStore, Map<Object, Object> attributes, UUID invocationId) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
EmbeddingStoreRequestContext
@Deprecated(since="1.24.0") protected EmbeddingStoreRequestContext(EmbeddingStore<Embedded> embeddingStore, Map<Object, Object> attributes) Deprecated. -
EmbeddingStoreRequestContext
-
-
Method Details
-
embeddingStore
-
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of a
EmbeddingStoreListeneror between multipleEmbeddingStoreListeners.
-
invocationId
- Returns:
- the id of the AI Service invocation in which this call is made (the calls made by its tools, guardrails,
retrieval, moderation, chat memory, ...), otherwise
null, for example when it is called outside of an AI Service. It is theInvocationContext.invocationId()of the AI Service invocation, not an id of this call. - Since:
- 1.24.0
-
EmbeddingStoreRequestContext(EmbeddingStore, Map, UUID)instead