Gerar respostas baseadas em documentos próprios

Estou fazendo um chatbot utilizando a API do Gemini e nao estou conseguindo fazer com que ele gere respostas baseadas em uma base de dados minha, por exemplo acessar PDF e responder perguntas baseadas nele

1 Like

Hi @arthuremanuel148, You can upload the file and can pass it to the model and ask the model to retrieve the information you want from the PDF file. I have tried in the same way and see the model perform well. Please refer to this gist for code example. If you still face the issue please let us know. Thank You.