Created
April 7, 2026 16:59
-
-
Save danielkellyio/3507d67f7bba7673649b606755f271c6 to your computer and use it in GitHub Desktop.
gemini file search api snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const response = await ai.models.generateContent({ | |
| model: "gemini-3-flash-preview", | |
| contents: groundedQuestion, | |
| config: { | |
| tools: [ | |
| { | |
| fileSearch: { | |
| fileSearchStoreNames: [params.fileSearchStoreName], | |
| }, | |
| }, | |
| ], | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment