How to add Google Drive folder as knowledge base for Gemini models?

I would like to feed my Google drive folder content (word and pdf files) as knowledge base for chatbot Q&A with Gemini 2.0 Flash. Very naive but could not achieve anything programmatically in Python. Any help appreciated

1 Like

You’re posting in the AI Studio forum. Are you asking about doing so with AI Studio specifically? There’s a plus icon next to the “Run” button that lets you upload documents into the current session for AI Studio. If you’re trying to construct a more general Retrieval-Augmented Generation app in python, there’s a RAG in python quickstart.

1 Like