cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

langchain and gemini

Open hemanth opened this issue 9 months ago • 3 comments

Example of using langchain with gemini.

hemanth avatar May 10 '24 23:05 hemanth

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Hey @hemanth - thanks for the contribution & sorry for the super slow response!

Could you give me an outline of what you want this guide to achieve? Just a high level sentence or two. I want to make sure it's not already covered by our existing Langchain content.

markmcd avatar Aug 15 '24 08:08 markmcd

@markmcd NP! Back then in may there was no Langchain content.

This PR demonstrates how to use the Langchain framework with Google's Gemini Pro language model. It showcases various Langchain features, such as prompt templates, chains, agents, and memory, using code examples to interact with Gemini Pro for tasks like generating creative text formats, answering questions, and executing code 🤓

hemanth avatar Aug 20 '24 05:08 hemanth

This PR demonstrates how to use the Langchain framework with Google's Gemini Pro language model. It showcases various Langchain features, such as prompt templates, chains, agents, and memory, using code examples to interact with Gemini Pro for tasks like generating creative text formats, answering questions, and executing code 🤓

OK sounds good - can you make sure the guide has some text in it? I've started a template in #263 that includes some general advice, but basically include some detail about what the reader can expect to learn, and then explain it as you go through. This will help make it useful to more people, and will help us with ongoing maintenance.

We typically keep the notebooks focused on a single task too (e.g. "building an agent with gemini and LC") so if this starts to get big, you might want to to split it up.

And at some point you'll need to rebase onto the latest main too, so the notebook format/link checks are run.

Back then in may there was no Langchain content.

Before we had the cookbook we used the docs repo, so there was a gap where it appeared here that we didn't have some integrations. No problem though.

markmcd avatar Aug 23 '24 04:08 markmcd

can you make sure the guide has some text in it?

Sure, I can add that.

you might want to to split it up.

will check and spilt it into smaller notebooks

notebook format/link checks are run.

got it.

the docs repo

Ah! Yes, I remember seeing these.

hemanth avatar Aug 24 '24 08:08 hemanth

Marking this pull request as stale since it has been open for 14 days with no activity. This PR will be closed if no further activity occurs.

github-actions[bot] avatar Sep 08 '24 02:09 github-actions[bot]

This pull request was closed because it has been inactive for 27 days. Please open a new pull request if you need further assistance. Thanks!

github-actions[bot] avatar Sep 21 '24 22:09 github-actions[bot]