
AI GoogleCustomWebSearch
CertifiedRetrieve web results with Google Custom Search
AI GoogleCustomWebSearch
Certified
Retrieve web results with Google Custom Search
Uses Google Custom Search (CSE) to fetch web snippets for RAG. Requires API key and CSE ID (csi/cx); maxResults limits returned items (default 3). Requests consume CSE quota.
yaml
type: io.kestra.plugin.ai.retriever.GoogleCustomWebSearchExamples
RAG chat with a web search content retriever (answers grounded in search results)
yaml
id: rag
namespace: company.ai
tasks:
- id: chat_with_rag_and_websearch_content_retriever
type: io.kestra.plugin.ai.rag.ChatCompletion
chatProvider:
type: io.kestra.plugin.ai.provider.GoogleGemini
modelName: gemini-2.5-flash
apiKey: "{{ secret('GEMINI_API_KEY') }}"
contentRetrievers:
- type: io.kestra.plugin.ai.retriever.GoogleCustomWebSearch
apiKey: "{{ secret('GOOGLE_SEARCH_API_KEY') }}"
csi: "{{ secret('GOOGLE_SEARCH_CSI') }}"
prompt: What is the latest release of Kestra?
Properties
apiKey *Requiredstring
API key
csi *Requiredstring
Custom search engine ID (cx)
maxResults integerstring
Default
3Maximum number of results