类 SearchWrapper
java.lang.Object
com.agentsflex.core.util.Metadata
com.agentsflex.core.store.VectorData
com.agentsflex.core.store.SearchWrapper
- 所有已实现的接口:
Serializable
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private Conditionquery conditionstatic final intthe default value of search data countprivate Integersearch max result, like the sql "limit" in mysqlprivate DoubleThe lowest correlation score, ranging from 0 to 1 (including 0 and 1).query fieldsprivate booleanwhether to output vector dataprivate Stringsearch text, Vector store will convert the text to vector dataprivate booleanThe flag of include vector data queries.从类继承的字段 com.agentsflex.core.util.Metadata
metadataMap -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明andCriteria(Consumer<SearchWrapper> consumer) getText()group(SearchWrapper wrapper) group(Consumer<SearchWrapper> consumer) in(Connector connector, String key, Collection<?> values) in(String key, Collection<?> values) booleanbooleanmaxResults(Integer maxResults) orCriteria(Consumer<SearchWrapper> consumer) outputFields(String... outputFields) outputFields(Collection<String> outputFields) outputVector(boolean outputVector) voidsetCondition(Condition condition) voidsetMaxResults(Integer maxResults) voidsetMinScore(Double minScore) voidsetOutputFields(List<String> outputFields) voidsetOutputVector(boolean outputVector) voidvoidsetWithVector(boolean withVector) Convert to expressions for filtering conditions, with different expression requirements for each vendor.toFilterExpression(ExpressionAdaptor adaptor) withVector(Boolean withVector) 从类继承的方法 com.agentsflex.core.store.VectorData
getScore, getVector, getVectorAsDoubleArray, getVectorAsDoubleList, getVectorAsList, setScore, setVector, setVector, setVector, setVector, setVector, toString从类继承的方法 com.agentsflex.core.util.Metadata
addMetadata, addMetadata, getMetadata, getMetadata, getMetadataMap, removeMetadata, setMetadataMap
-
字段详细资料
-
DEFAULT_MAX_RESULTS
the default value of search data count- 另请参阅:
-
text
search text, Vector store will convert the text to vector data -
maxResults
search max result, like the sql "limit" in mysql -
minScore
The lowest correlation score, ranging from 0 to 1 (including 0 and 1). Only embeddings with a score of this value or higher will be returned. 0.0 indicates accepting any similarity or disabling similarity threshold filtering. A threshold of 1.0 indicates the need for a perfect match. -
withVector
The flag of include vector data queries. If the current value is true and the vector content is null, the query text will be automatically converted into vector data through the vector store. -
condition
query condition -
outputFields
query fields -
outputVector
whether to output vector data
-
-
构造器详细资料
-
SearchWrapper
public SearchWrapper()
-
-
方法详细资料
-
getText
-
setText
-
text
-
getMaxResults
-
setMaxResults
-
maxResults
-
getMinScore
-
setMinScore
-
minScore
-
isWithVector
-
setWithVector
-
withVector
-
getCondition
-
setCondition
-
getOutputFields
-
setOutputFields
-
outputFields
-
outputFields
-
isOutputVector
-
setOutputVector
-
outputVector
-
eq
-
eq
-
ne
-
ne
-
gt
-
gt
-
ge
-
ge
-
lt
-
lt
-
le
-
le
-
in
-
in
-
min
-
min
-
between
-
between
-
group
-
group
-
group
-
andCriteria
-
orCriteria
-
toFilterExpression
Convert to expressions for filtering conditions, with different expression requirements for each vendor. Customized adaptor can be achieved through ExpressionAdaptor -
toFilterExpression
-