langchain-ai / langchain-google

MIT License
98 stars 115 forks source link

Files upload and use #449

Open IngLP opened 3 weeks ago

IngLP commented 3 weeks ago

Hi, I would like to use the functionality of Gemini described here: https://ai.google.dev/gemini-api/docs/document-processing?lang=python , in particular, the PDF upload functionality. But the library doesn't implement functions like upload_file. Are them on the roadmap?

Thanks!

lkuligin commented 2 weeks ago

I'm not sure how it can be integrated with existing LangChain interfaces.

You can easily use this API outside of LangChain, and we could probably add support for genai uris in the same manner we do with Vertex AI integrations.

P.S. ChatVertexAI already supports uris pointing to GCS.