Package io.agentscope.core.rag.store.dto
Class SearchDocumentDto
java.lang.Object
io.agentscope.core.rag.store.dto.SearchDocumentDto
Search document data transfer object, used to encapsulate parameters for vector search.
Contains vector name, query embedding, limit for returned results, and similarity score threshold.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for SearchDocument DTO. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a SearchDocumentDto Builder instance.intgetLimit()Get the limit for returned results.double[]Get the query embedding vector.Get the similarity score threshold.Get the vector name.voidsetLimit(int limit) Set the limit for returned results.voidsetQueryEmbedding(double[] queryEmbedding) Set the query embedding vector.voidsetScoreThreshold(Double scoreThreshold) Set the similarity score threshold.voidsetVectorName(String vectorName) Set the vector name.toString()
-
Method Details
-
getVectorName
Get the vector name.- Returns:
- Vector name
-
setVectorName
Set the vector name.- Parameters:
vectorName- Vector name
-
getQueryEmbedding
public double[] getQueryEmbedding()Get the query embedding vector.- Returns:
- Query embedding vector
-
setQueryEmbedding
public void setQueryEmbedding(double[] queryEmbedding) Set the query embedding vector.- Parameters:
queryEmbedding- Query embedding vector
-
getLimit
public int getLimit()Get the limit for returned results.- Returns:
- Limit for returned results
-
setLimit
public void setLimit(int limit) Set the limit for returned results.- Parameters:
limit- Limit for returned results
-
getScoreThreshold
Get the similarity score threshold.- Returns:
- Similarity score threshold
-
setScoreThreshold
Set the similarity score threshold.- Parameters:
scoreThreshold- Similarity score threshold
-
toString
-
builder
Create a SearchDocumentDto Builder instance.- Returns:
- Builder instance
-