VertexAISearchRetriever(
self,
**kwargs: Any = {},
)BaseRetriever_BaseVertexAISearchRetrieverBoostSpec for boosting search results. A protobuf should be provided.
https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1beta/BoostSpec
Custom embedding model for the retriever. (Bring your own embedding)
It needs to match the embedding model that was used to embed docs in the datastore.
It needs to be a langchain embedding VertexAIEmbeddings(project="{PROJECT}")
If you provide an embedding model, you also need to provide a ranking_expression
and a custom_embedding_field_path.
https://cloud.google.com/generative-ai-app-builder/docs/bring-embeddings
Google Vertex AI Search retriever.
This retriever supports both stable (v1) and beta versions of the Discovery Engine.
Beta features are only available when beta=True.
For a detailed explanation of Vertex AI Search concepts and configuration parameters see the Vertex AI Search documentation.