类 EmbeddingSearchRequest
java.lang.Object
dev.langchain4j.store.embedding.EmbeddingSearchRequest
Represents a request to search in an
EmbeddingStore.-
构造器概要
构造器构造器说明EmbeddingSearchRequest(Embedding queryEmbedding, Integer maxResults, Double minScore, Filter filter) Creates an instance of an EmbeddingSearchRequest. -
方法概要
-
构造器详细资料
-
EmbeddingSearchRequest
public EmbeddingSearchRequest(Embedding queryEmbedding, Integer maxResults, Double minScore, Filter filter) Creates an instance of an EmbeddingSearchRequest.- 参数:
queryEmbedding- The embedding used as a reference. Found embeddings should be similar to this one. This is a mandatory parameter.maxResults- The maximum number of embeddings to return. This is an optional parameter. Default: 3minScore- The minimum score, ranging from 0 to 1 (inclusive). Only embeddings with a score >= minScore will be returned. This is an optional parameter. Default: 0filter- The filter to be applied to theMetadataduring search. OnlyTextSegments whoseMetadatamatches theFilterwill be returned. Please note that not allEmbeddingStores support this feature yet. This is an optional parameter. Default: no filtering
-
-
方法详细资料
-
queryEmbedding
-
maxResults
public int maxResults() -
minScore
public double minScore() -
filter
-