Class VertexRagStore.Builder
-
- All Implemented Interfaces:
public abstract class VertexRagStore.BuilderBuilder for VertexRagStore.
-
-
Constructor Summary
Constructors Constructor Description VertexRagStore.Builder()
-
Method Summary
Modifier and Type Method Description abstract VertexRagStore.BuilderragCorpora(List<String> ragCorpora)Setter for ragCorpora. VertexRagStore.BuilderragCorpora(Array<String> ragCorpora)Setter for ragCorpora. VertexRagStore.BuilderclearRagCorpora()Clears the value of ragCorpora field. abstract VertexRagStore.BuilderragResources(List<VertexRagStoreRagResource> ragResources)Setter for ragResources. VertexRagStore.BuilderragResources(Array<VertexRagStoreRagResource> ragResources)Setter for ragResources. VertexRagStore.BuilderragResources(Array<VertexRagStoreRagResource.Builder> ragResourcesBuilders)Setter for ragResources builder. VertexRagStore.BuilderclearRagResources()Clears the value of ragResources field. abstract VertexRagStore.BuilderragRetrievalConfig(RagRetrievalConfig ragRetrievalConfig)Setter for ragRetrievalConfig. VertexRagStore.BuilderragRetrievalConfig(RagRetrievalConfig.Builder ragRetrievalConfigBuilder)Setter for ragRetrievalConfig builder. VertexRagStore.BuilderclearRagRetrievalConfig()Clears the value of ragRetrievalConfig field. abstract VertexRagStore.BuildersimilarityTopK(Integer similarityTopK)Setter for similarityTopK. VertexRagStore.BuilderclearSimilarityTopK()Clears the value of similarityTopK field. abstract VertexRagStore.BuilderstoreContext(boolean storeContext)Setter for storeContext. VertexRagStore.BuilderclearStoreContext()Clears the value of storeContext field. abstract VertexRagStore.BuildervectorDistanceThreshold(Double vectorDistanceThreshold)Setter for vectorDistanceThreshold. VertexRagStore.BuilderclearVectorDistanceThreshold()Clears the value of vectorDistanceThreshold field. abstract VertexRagStorebuild()-
-
Method Detail
-
ragCorpora
abstract VertexRagStore.Builder ragCorpora(List<String> ragCorpora)
Setter for ragCorpora.
ragCorpora: Optional. Deprecated. Please use rag_resources instead.
-
ragCorpora
@CanIgnoreReturnValue() VertexRagStore.Builder ragCorpora(Array<String> ragCorpora)
Setter for ragCorpora.
ragCorpora: Optional. Deprecated. Please use rag_resources instead.
-
clearRagCorpora
@CanIgnoreReturnValue() VertexRagStore.Builder clearRagCorpora()
Clears the value of ragCorpora field.
-
ragResources
abstract VertexRagStore.Builder ragResources(List<VertexRagStoreRagResource> ragResources)
Setter for ragResources.
ragResources: Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
-
ragResources
@CanIgnoreReturnValue() VertexRagStore.Builder ragResources(Array<VertexRagStoreRagResource> ragResources)
Setter for ragResources.
ragResources: Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
-
ragResources
@CanIgnoreReturnValue() VertexRagStore.Builder ragResources(Array<VertexRagStoreRagResource.Builder> ragResourcesBuilders)
Setter for ragResources builder.
ragResources: Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
-
clearRagResources
@CanIgnoreReturnValue() VertexRagStore.Builder clearRagResources()
Clears the value of ragResources field.
-
ragRetrievalConfig
abstract VertexRagStore.Builder ragRetrievalConfig(RagRetrievalConfig ragRetrievalConfig)
Setter for ragRetrievalConfig.
ragRetrievalConfig: Optional. The retrieval config for the Rag query.
-
ragRetrievalConfig
@CanIgnoreReturnValue() VertexRagStore.Builder ragRetrievalConfig(RagRetrievalConfig.Builder ragRetrievalConfigBuilder)
Setter for ragRetrievalConfig builder.
ragRetrievalConfig: Optional. The retrieval config for the Rag query.
-
clearRagRetrievalConfig
@CanIgnoreReturnValue() VertexRagStore.Builder clearRagRetrievalConfig()
Clears the value of ragRetrievalConfig field.
-
similarityTopK
abstract VertexRagStore.Builder similarityTopK(Integer similarityTopK)
Setter for similarityTopK.
similarityTopK: Optional. Number of top k results to return from the selected corpora.
-
clearSimilarityTopK
@CanIgnoreReturnValue() VertexRagStore.Builder clearSimilarityTopK()
Clears the value of similarityTopK field.
-
storeContext
abstract VertexRagStore.Builder storeContext(boolean storeContext)
Setter for storeContext.
storeContext: Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users' ongoing and future interactions.
-
clearStoreContext
@CanIgnoreReturnValue() VertexRagStore.Builder clearStoreContext()
Clears the value of storeContext field.
-
vectorDistanceThreshold
abstract VertexRagStore.Builder vectorDistanceThreshold(Double vectorDistanceThreshold)
Setter for vectorDistanceThreshold.
vectorDistanceThreshold: Optional. Only return results with vector distance smaller than the threshold.
-
clearVectorDistanceThreshold
@CanIgnoreReturnValue() VertexRagStore.Builder clearVectorDistanceThreshold()
Clears the value of vectorDistanceThreshold field.
-
build
abstract VertexRagStore build()
-
-
-
-