langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Support for Google BARD API?

Open ibehnam opened this issue 1 year ago • 7 comments

ibehnam avatar Mar 22 '23 15:03 ibehnam

Help needed for this?

adumont avatar Apr 22 '23 21:04 adumont

https://github.com/acheong08/Bard is pretty easy, but obtaining the API key from cookies is an extra step which may be frowned upon in an official model integration, and Google is probably going to open their PaLM API today. (Edit: they did not, it's still NDA invite only.)

jsalsman avatar Apr 25 '23 15:04 jsalsman

I'm considering writing this, because it would certainly be useful. It's free, faster than GPT-3.5 and 4, has no rate limits, has a large and apparently expanding (but undocumented) context window, always gives two alternate answers, and they're adding capabilities weekly. It's about on par with GPT-3.5 in puzzle question answering performance, as far as I can tell.

However, before I start, I want to ask @hwchase17: would you accept a model integration which requires users to copy their API key out of their browser cookies?

Edit: For what it's worth, Agent-LLM has included a Bard integration: https://github.com/Josh-XT/Agent-LLM/blob/main/notebooks/bard.ipynb

jsalsman avatar Apr 25 '23 18:04 jsalsman

https://www.googlecloudcommunity.com/gc/AI-ML/Google-Bard-API/m-p/538517

Bard itself told me there is one. Am interested in helping on this.

codecowboy avatar May 10 '23 19:05 codecowboy

https://github.com/dsdanielpark/Bard-API

gudlyf avatar May 16 '23 12:05 gudlyf

https://github.com/dsdanielpark/Bard-API

Still needs the __Secure-1PSID key from browser cookies. Everyone is waiting for the PaLM API to be generally available, which was promised more than a week ago.

jsalsman avatar May 21 '23 18:05 jsalsman

hey, langchain with Google Bard is it working for you?

charanhu avatar May 23 '23 11:05 charanhu

Hi, any update? I am trying to combine bard api and langchain summarization-refine method, but didn't work.

wuzimi avatar Jun 10 '23 06:06 wuzimi

why no update?, no possible to use Bard with Langchain?

HAL9KKK avatar Jul 15 '23 14:07 HAL9KKK

I think Google prefers people use PaLM directly because Bard has several chatbot-only features. https://developers.generativeai.google/tutorials/text_quickstart

jsalsman avatar Jul 16 '23 01:07 jsalsman

I think that bard is generate text better than palm in some languages not English

kientv avatar Sep 22 '23 17:09 kientv

Any updates if langchain supports Bard? or Amazon Bedrock?

andreprawira avatar Oct 18 '23 14:10 andreprawira

Hey guys ! I have been working on a project which basically involves integrating Bard with langChain but I couldn't find a solution. It works fine with other HuggingFace models, but when i tried to integrate it with the langChain, it doesn't works ? any Suggestions

naveenkumarrk avatar Oct 29 '23 08:10 naveenkumarrk

Hey guys ! I have been working on a project which basically involves integrating Bard with langChain but I couldn't find a solution. It works fine with other HuggingFace models, but when i tried to integrate it with the langChain, it doesn't works ? any Suggestions

I think that BARD have not API yet, You can try PaLM 2 on makersuite.google.com

kientv avatar Oct 29 '23 14:10 kientv

Hi, @ibehnam,

I'm helping the LangChain team manage their backlog and am marking this issue as stale. From what I understand, the issue you opened requests support for the Google BARD API. There have been discussions about integrating BARD with other tools, such as langchain and Amazon Bedrock, along with sharing links to related projects and resources. Some users have expressed difficulties in integrating BARD with langchain and sought suggestions. Additionally, there's a discussion about the preference for using PaLM directly over BARD due to certain features.

Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you!

dosubot[bot] avatar Feb 09 '24 16:02 dosubot[bot]

Yeah, mainly because bard is also free but chatgpt is not, any updates? I really want to use langchain.

NeevrajKB avatar Feb 15 '24 01:02 NeevrajKB

Yeah, mainly because bard is also free but chatgpt is not, any updates? I really want to use langchain.

NeevrajKB avatar Feb 15 '24 01:02 NeevrajKB

is it still not working?

PavanKalisetti avatar Aug 09 '24 09:08 PavanKalisetti