Class VertexRagStore.Builder
- Enclosing class:
- VertexRagStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VertexRagStorebuild()Clears the value of ragCorpora field.Clears the value of ragResources field.Clears the value of ragRetrievalConfig field.Clears the value of similarityTopK field.Clears the value of storeContext field.Clears the value of vectorDistanceThreshold field.ragCorpora(String... ragCorpora) Setter for ragCorpora.abstract VertexRagStore.BuilderragCorpora(List<String> ragCorpora) Setter for ragCorpora.ragResources(VertexRagStoreRagResource... ragResources) Setter for ragResources.ragResources(VertexRagStoreRagResource.Builder... ragResourcesBuilders) Setter for ragResources builder.abstract VertexRagStore.BuilderragResources(List<VertexRagStoreRagResource> ragResources) Setter for ragResources.abstract VertexRagStore.BuilderragRetrievalConfig(RagRetrievalConfig ragRetrievalConfig) Setter for ragRetrievalConfig.ragRetrievalConfig(RagRetrievalConfig.Builder ragRetrievalConfigBuilder) Setter for ragRetrievalConfig builder.abstract VertexRagStore.BuildersimilarityTopK(Integer similarityTopK) Setter for similarityTopK.abstract VertexRagStore.BuilderstoreContext(boolean storeContext) Setter for storeContext.abstract VertexRagStore.BuildervectorDistanceThreshold(Double vectorDistanceThreshold) Setter for vectorDistanceThreshold.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ragCorpora
Setter for ragCorpora.ragCorpora: Optional. Deprecated. Please use rag_resources instead.
-
ragCorpora
Setter for ragCorpora.ragCorpora: Optional. Deprecated. Please use rag_resources instead.
-
clearRagCorpora
Clears the value of ragCorpora field. -
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 public VertexRagStore.Builder ragResources(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 public VertexRagStore.Builder ragResources(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
Clears the value of ragResources field. -
ragRetrievalConfig
Setter for ragRetrievalConfig.ragRetrievalConfig: Optional. The retrieval config for the Rag query.
-
ragRetrievalConfig
@CanIgnoreReturnValue public VertexRagStore.Builder ragRetrievalConfig(RagRetrievalConfig.Builder ragRetrievalConfigBuilder) Setter for ragRetrievalConfig builder.ragRetrievalConfig: Optional. The retrieval config for the Rag query.
-
clearRagRetrievalConfig
Clears the value of ragRetrievalConfig field. -
similarityTopK
Setter for similarityTopK.similarityTopK: Optional. Number of top k results to return from the selected corpora.
-
clearSimilarityTopK
Clears the value of similarityTopK field. -
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
Clears the value of storeContext field. -
vectorDistanceThreshold
Setter for vectorDistanceThreshold.vectorDistanceThreshold: Optional. Only return results with vector distance smaller than the threshold.
-
clearVectorDistanceThreshold
Clears the value of vectorDistanceThreshold field. -
build
-