Uses of Class
dev.langchain4j.model.embedding.request.EmbeddingRequest
Packages that use EmbeddingRequest
Package
Description
AWS Bedrock integration for LangChain4j.
Model mocks for tests: they need no network, answer the way a test tells them to, and record the requests they
receive.
-
Uses of EmbeddingRequest in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock with parameters of type EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.cohere
Methods in dev.langchain4j.model.cohere with parameters of type EmbeddingRequestModifier and TypeMethodDescriptionCohereEmbeddingModel.doEmbed(EmbeddingRequest request) Embeds via Cohere's v2 embed endpoint (/v2/embed), which handles both text and images (Embed v4). -
Uses of EmbeddingRequest in dev.langchain4j.model.embedding
Methods in dev.langchain4j.model.embedding with parameters of type EmbeddingRequestModifier and TypeMethodDescriptiondefault EmbeddingResponseEmbeddingModel.doEmbed(EmbeddingRequest request) Performs the embedding forEmbeddingModel.embed(EmbeddingRequest).default CompletableFuture<EmbeddingResponse> EmbeddingModel.doEmbedAsync(EmbeddingRequest request) Non-blocking counterpart ofEmbeddingModel.doEmbed(EmbeddingRequest), called byEmbeddingModel.embedAsync(EmbeddingRequest)after the request's parameters have been merged and validated.default EmbeddingResponseEmbeddingModel.embed(EmbeddingRequest request) Embeds the inputs of the givenEmbeddingRequestand returns the resulting embeddings.default CompletableFuture<EmbeddingResponse> EmbeddingModel.embedAsync(EmbeddingRequest request) Non-blocking counterpart ofEmbeddingModel.embed(EmbeddingRequest): embeds the request's inputs and completes the returned future with the embeddings, without blocking the calling thread. -
Uses of EmbeddingRequest in dev.langchain4j.model.embedding.listener
Methods in dev.langchain4j.model.embedding.listener that return EmbeddingRequestModifier and TypeMethodDescriptionEmbeddingModelErrorContext.embeddingRequest()EmbeddingModelRequestContext.embeddingRequest()EmbeddingModelResponseContext.embeddingRequest()Methods in dev.langchain4j.model.embedding.listener with parameters of type EmbeddingRequestModifier and TypeMethodDescriptionEmbeddingModelErrorContext.Builder.embeddingRequest(EmbeddingRequest embeddingRequest) EmbeddingModelRequestContext.Builder.embeddingRequest(EmbeddingRequest embeddingRequest) EmbeddingModelResponseContext.Builder.embeddingRequest(EmbeddingRequest embeddingRequest) -
Uses of EmbeddingRequest in dev.langchain4j.model.embedding.request
Methods in dev.langchain4j.model.embedding.request that return EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.google.genai
Methods in dev.langchain4j.model.google.genai with parameters of type EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai with parameters of type EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.jina
Methods in dev.langchain4j.model.jina with parameters of type EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama with parameters of type EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai with parameters of type EmbeddingRequestModifier and TypeMethodDescriptionOpenAiEmbeddingModel.doEmbed(EmbeddingRequest request) OpenAiEmbeddingModel.doEmbedAsync(EmbeddingRequest request) Genuinely non-blocking counterpart ofOpenAiEmbeddingModel.doEmbed(EmbeddingRequest): each batch is sent over the async HTTP path (executeRawAsync) and the per-batch futures are composed, so no thread is parked while the OpenAI embeddings request is in flight. -
Uses of EmbeddingRequest in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai with parameters of type EmbeddingRequest -
Uses of EmbeddingRequest in dev.langchain4j.model.watsonx
Methods in dev.langchain4j.model.watsonx with parameters of type EmbeddingRequestModifier and TypeMethodDescriptionWatsonxEmbeddingModel.doEmbed(EmbeddingRequest request) WatsonxGatewayEmbeddingModel.doEmbed(EmbeddingRequest request) -
Uses of EmbeddingRequest in dev.langchain4j.test.mock
Methods in dev.langchain4j.test.mock that return EmbeddingRequestModifier and TypeMethodDescriptionMockEmbeddingModel.lastRequest()The last request received so far.MockEmbeddingModel.request()The only request received so far.Methods in dev.langchain4j.test.mock that return types with arguments of type EmbeddingRequestModifier and TypeMethodDescriptionMockEmbeddingModel.requests()A copy of the requests received so far, in the order they arrived.Methods in dev.langchain4j.test.mock with parameters of type EmbeddingRequestModifier and TypeMethodDescriptionMockEmbeddingModel.doEmbed(EmbeddingRequest request) MockEmbeddingModel.doEmbedAsync(EmbeddingRequest request) Answers likeMockEmbeddingModel.doEmbed(EmbeddingRequest), with the next step of the script, and completes the future on another thread, where a step that computes its vectors also computes them. -
Uses of EmbeddingRequest in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return EmbeddingRequestModifier and TypeMethodDescriptionEmbeddingModelCall.request()Returns the request sent to the embedding model.