langchain-ai / langchain-google

MIT License
117 stars 147 forks source link

Files upload and use #449

Open IngLP opened 3 months ago

IngLP commented 3 months 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 months 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.