Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Gemini #14671

Closed
ktibbs9417 opened this issue Dec 13, 2023 · 10 comments
Closed

Google Gemini #14671

ktibbs9417 opened this issue Dec 13, 2023 · 10 comments
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features Ɑ: models Related to LLMs or chat model modules

Comments

@ktibbs9417
Copy link

Feature request

With Gemini Pro going GA today (Dec. 13th).
When can users of LangChain expect an update to use the new LLM?

Motivation

This will allow users of LangChain to use the latest LLM that Google is providing along with their safety settings.

Your contribution

I can try and help. Happy to contribute where needed

Copy link

dosubot bot commented Dec 13, 2023

🤖

That's great to hear that you're interested in contributing to LangChain! Your willingness to help is much appreciated. If you're able to work on integrating the new LLM from Google Gemini into LangChain, that would be a valuable contribution to the project. Thank you for your support!


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot dosubot bot added Ɑ: models Related to LLMs or chat model modules 🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features labels Dec 13, 2023
@jamesbraza
Copy link
Contributor

@ktibbs9417 check this: #14621

You can run pip install langchain-google-genai to get started with this, note it was just added about 15 mins after you made this issue haha

@baskaryan
Copy link
Collaborator

baskaryan commented Dec 13, 2023

Like @jamesbraza said, should be able to do this with langchain-google-genai. Let us know if you see any issues! Closing GH issue for now

@dheerajiiitv
Copy link
Contributor

You can also use ChatVertexAI with model_name gemini-pro

@gpy1234
Copy link

gpy1234 commented Dec 16, 2023

@dheerajiiitv Did you try it with ChatVertexAI? I tried to use it with ConversationalRetrievalChain.from_llm, but it's not working.

@dheerajiiitv
Copy link
Contributor

dheerajiiitv commented Dec 16, 2023 via email

@JoAmps
Copy link

JoAmps commented Dec 20, 2023

You can also use ChatVertexAI with model_name gemini-pro

I tried it, but it doesnt stream when incorporated into retrieval chain, it has streaming in its parameters but it doesnt stream, does it stream for you?

@pseudotensor
Copy link

@JoAmps Seems still that way ever since the langchain google package was updated. It got better for exception handling, but lost streaming once went to:

langchain-google-genai==0.0.6
google-generativeai==0.3.2

@pseudotensor
Copy link

@dharless-eli-lilly
Copy link

I'm confused because I see most things related to this are closed, but not merged. What's the recommended route here? Should we abandon LLMChain since it's marked deprecated and use the new notation? Langchain is all pretty new to me so would love a little bit of clear direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features Ɑ: models Related to LLMs or chat model modules
Projects
None yet
Development

No branches or pull requests

8 participants