deep_research_file_search.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your Google API key
4
Plan the File Search store lifecycle
Each run creates a persistent File Search store. Reuse a populated store for repeated queries, and delete demo stores you no longer need in Google AI Studio or with the File Search API.
5
Run the example
Save the code above as
deep_research_file_search.py, then run: