Uses of Enum Class
dev.langchain4j.model.embedding.request.EmbeddingInputType
Packages that use EmbeddingInputType
Package
Description
-
Uses of EmbeddingInputType in dev.langchain4j.model.embedding.request
Subclasses with type arguments of type EmbeddingInputType in dev.langchain4j.model.embedding.requestModifier and TypeClassDescriptionenumThe role a piece of text plays in a retrieval task, allowing a provider to encode it differently.Fields in dev.langchain4j.model.embedding.request with type parameters of type EmbeddingInputTypeModifier and TypeFieldDescriptionstatic final EmbeddingParameter<EmbeddingInputType> EmbeddingRequestParameters.INPUT_TYPEA token identifying theEmbeddingInputType(query vs document), for providers that encode queries and documents differently.Methods in dev.langchain4j.model.embedding.request that return EmbeddingInputTypeModifier and TypeMethodDescriptionDefaultEmbeddingRequestParameters.inputType()EmbeddingRequest.inputType()EmbeddingRequestParameters.inputType()static EmbeddingInputTypeReturns the enum constant of this class with the specified name.static EmbeddingInputType[]EmbeddingInputType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.langchain4j.model.embedding.request with parameters of type EmbeddingInputTypeModifier and TypeMethodDescriptionDefaultEmbeddingRequestParameters.Builder.inputType(EmbeddingInputType inputType) EmbeddingRequest.Builder.inputType(EmbeddingInputType inputType) Convenience setter that overridesEmbeddingRequestParameters.INPUT_TYPEon top of anyparametersset explicitly. -
Uses of EmbeddingInputType in dev.langchain4j.rag.content.retriever
Methods in dev.langchain4j.rag.content.retriever with parameters of type EmbeddingInputTypeModifier and TypeMethodDescriptionEmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder.embeddingInputType(EmbeddingInputType embeddingInputType) Embeds the query with the givenEmbeddingInputType(typicallyEmbeddingInputType.QUERY), so providers that encode queries and documents differently can produce a query-optimized embedding. -
Uses of EmbeddingInputType in dev.langchain4j.store.embedding
Methods in dev.langchain4j.store.embedding with parameters of type EmbeddingInputTypeModifier and TypeMethodDescriptionEmbeddingStoreIngestor.Builder.embeddingInputType(EmbeddingInputType embeddingInputType) Embeds the text segments with the givenEmbeddingInputType(typicallyEmbeddingInputType.DOCUMENT), so providers that encode queries and documents differently can produce a document-optimized embedding.