This page covers the errors and configuration problems most likely to appear while working through the codelab. Each entry includes the exact symptom to look for and a concrete fix.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/derailed-dash/gemini-file-search-demo/llms.txt
Use this file to discover all available pages before exploring further.
Tool incompatibility: 'Search as a tool and file search tool are not supported together'
Tool incompatibility: 'Search as a tool and file search tool are not supported together'
SymptomWhen running CauseThe Gemini API does not allow the native
rag_agent_adk, you see a 400 INVALID_ARGUMENT error in the logs:GoogleSearch tool and the FileSearch tool to be attached to the same agent in the same request.SolutionUse the Agent-as-a-Tool pattern: place GoogleSearch and FileSearch in separate specialist sub-agents (SearchAgent and RagAgent), then pass both to the root agent using AgentTool. This is exactly how app/rag_agent_adk/agent.py is implemented — each sub-agent sends its own independent request to the model, so the tools never appear together in a single call.Store not found: 'Store X not found! RAG capabilities disabled'
Store not found: 'Store X not found! RAG capabilities disabled'
SymptomThe RAG agent starts successfully but logs a warning and answers questions without using the File Search store:CauseThe value of
STORE_NAME does not match the display name of any existing File Search Store in your account.Solution- Check that
STORE_NAMEis set and matches the display name you used when creating the store innotebooks/file_search_store.ipynb. Display names are case-sensitive. - If you have not created a store yet, open the notebook and run the cell that creates the store. Then upload
data/story.mdusing the upload cell. - After correcting the name, re-run
source .envand restart the agent.
STORE_NAME not set: RAG is silently disabled
STORE_NAME not set: RAG is silently disabled
SymptomThe RAG agent starts without error but never uses the File Search tool. The logs show:CauseThe
STORE_NAME environment variable was not exported before starting the agent. This can happen when .env was not sourced in the current terminal session.Solution- Open
.envand confirm it containsexport STORE_NAME="demo-file-store"(or your chosen display name). - Run
source .envin the same terminal session where you will run the agent. - Restart the agent.
source .env must be run in every new terminal session. The variables are not persisted across sessions automatically.Jupyter kernel not found when opening the notebook
Jupyter kernel not found when opening the notebook
SymptomWhen opening
notebooks/file_search_store.ipynb in VS Code or Cloud Shell Editor, the kernel selection dialog shows no Python environments, or the .venv environment is missing.CauseThe virtual environment has not been created yet because make install has not been run.Solution- Run
make install(oruv sync --extra jupyter) from the project root. - Re-open the notebook.
- When prompted to select a kernel, choose Python environments… and select the
.venvenvironment from the list.
.venv environment is still not listed, try reloading the editor window after make install completes.uv not installed
uv not installed
SymptomRunning Simply run
make install prints uv is not installed. Installing uv... before proceeding, or a subsequent uv command fails with command not found.Causeuv is not installed on the system.Solutionmake install handles this automatically. It checks for uv and installs it via the official installer if it is missing:make install and the full install — including uv itself — completes in one step. If you prefer to install uv manually first, follow the uv installation guide.ADK web UI not accessible after make adk-playground
ADK web UI not accessible after make adk-playground
Symptom
make adk-playground runs without error and reports that the server is listening, but navigating to the expected URL shows a connection refused or no response.CauseThe access method differs depending on where the code is running.Solution- Running locally: open
http://127.0.0.1:8501in your browser. Do not uselocalhostif it resolves differently on your system. - Running in Cloud Shell:
127.0.0.1is not directly accessible from your browser. Click Web Preview in the Cloud Shell Editor toolbar, select Change port, and enter8501. Cloud Shell will proxy the connection through a public URL.
app/basic_agent_adk/agent.py and app/rag_agent_adk/agent.py each expose a module-level root_agent variable. The ADK runner discovers agents by scanning for this variable.Model not found or invalid model ID
Model not found or invalid model ID
SymptomAn agent fails on startup or on the first request with an error referencing an unknown or invalid model.CauseThe
MODEL environment variable is set to an invalid or misspelled model ID.Solution- Check the value currently in your environment:
- If the output is empty or incorrect, update
.env: - Run
source .envand restart the agent.
MODEL is not set is gemini-2.5-flash. File Search and Google Search are supported on current Gemini 2.x models.