Uses of Class
dev.langchain4j.model.embedding.response.EmbeddingResponse
Packages that use EmbeddingResponse
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 EmbeddingResponse in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.cohere
Methods in dev.langchain4j.model.cohere that return EmbeddingResponseModifier and TypeMethodDescriptionCohereEmbeddingModel.doEmbed(EmbeddingRequest request) Embeds via Cohere's v2 embed endpoint (/v2/embed), which handles both text and images (Embed v4). -
Uses of EmbeddingResponse in dev.langchain4j.model.embedding
Methods in dev.langchain4j.model.embedding that return EmbeddingResponseModifier and TypeMethodDescriptiondefault EmbeddingResponseEmbeddingModel.doEmbed(EmbeddingRequest request) Performs the embedding forEmbeddingModel.embed(EmbeddingRequest).default EmbeddingResponseEmbeddingModel.embed(EmbeddingRequest request) Embeds the inputs of the givenEmbeddingRequestand returns the resulting embeddings.Methods in dev.langchain4j.model.embedding that return types with arguments of type EmbeddingResponseModifier and TypeMethodDescriptiondefault 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 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 EmbeddingResponse in dev.langchain4j.model.embedding.listener
Methods in dev.langchain4j.model.embedding.listener that return EmbeddingResponseMethods in dev.langchain4j.model.embedding.listener with parameters of type EmbeddingResponseModifier and TypeMethodDescriptionEmbeddingModelResponseContext.Builder.embeddingResponse(EmbeddingResponse embeddingResponse) -
Uses of EmbeddingResponse in dev.langchain4j.model.embedding.response
Methods in dev.langchain4j.model.embedding.response that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.google.genai
Methods in dev.langchain4j.model.google.genai that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.jina
Methods in dev.langchain4j.model.jina that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return EmbeddingResponseMethods in dev.langchain4j.model.openai that return types with arguments of type EmbeddingResponseModifier and TypeMethodDescriptionOpenAiEmbeddingModel.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 EmbeddingResponse in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai that return EmbeddingResponse -
Uses of EmbeddingResponse in dev.langchain4j.model.watsonx
Methods in dev.langchain4j.model.watsonx that return EmbeddingResponseModifier and TypeMethodDescriptionWatsonxEmbeddingModel.doEmbed(EmbeddingRequest request) WatsonxGatewayEmbeddingModel.doEmbed(EmbeddingRequest request) -
Uses of EmbeddingResponse in dev.langchain4j.test.mock
Methods in dev.langchain4j.test.mock that return EmbeddingResponseMethods in dev.langchain4j.test.mock that return types with arguments of type EmbeddingResponseModifier and TypeMethodDescriptionMockEmbeddingModel.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.Methods in dev.langchain4j.test.mock with parameters of type EmbeddingResponseModifier and TypeMethodDescriptionstatic MockEmbeddingModelMockEmbeddingModel.thatResponds(EmbeddingResponse response) A model that answers the first request with exactly the given response, including its metadata, for example its token usage or model name, to test code that reads them, such as a cost check:MockEmbeddingModel.thenResponds(EmbeddingResponse response) Adds a step: the next request is answered with exactly the given response, including its metadata, seeMockEmbeddingModel.thatResponds(EmbeddingResponse). -
Uses of EmbeddingResponse in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return EmbeddingResponseModifier and TypeMethodDescriptionEmbeddingModelCall.response()Returns the response of the embedding model, ornullif the call failed or had not ended when the invocation finished.