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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans to add Gemini? #20

Open
satoshinotdead opened this issue May 14, 2023 · 21 comments
Open

Plans to add Gemini? #20

satoshinotdead opened this issue May 14, 2023 · 21 comments
Labels
enhancement New feature or request pr-welcome

Comments

@satoshinotdead
Copy link

Bard can search the web for free! 馃

image

image

https://github.com/ra83205/google-bard-api

@merefield
Copy link
Owner

Yes, I'd love to add support and for any emerging primary publicly-accessible LLM from Google.

Not whether but when I get around to it.

PR welcome in meantime!

@merefield merefield removed the roadmap label Jan 15, 2024
@merefield
Copy link
Owner

Apologies, on review, I'm removing this from roadmap as given the general lack of community PRs I do not have capacity to entertain it.

@dillfrescott
Copy link

Awwww I think this would have been awesome!

@merefield
Copy link
Owner

merefield commented Mar 8, 2024

I would accept a PR @dillfrescott if it's not a settings nightmare. That's why it's marked as PR Welcome and not Closed. If someone is willing to fund me I would consider doing it myself. Renaming the issue.

@merefield merefield changed the title Plans to add Bard? Plans to add Gemini? Mar 8, 2024
@dillfrescott
Copy link

Hey Robert thanks for the response. Is there a rough estimate of how much someone would have to pay for you to integrate it?

@dillfrescott
Copy link

Found this. Do you think that could work instead of having to integrate it into the plugin?

@dillfrescott
Copy link

dillfrescott commented Mar 9, 2024

Update: It works fantastically! updating the chatbot.prompt.post value to just %{raw} works great for Gemini!

EDIT: See updated prompt below for better performance!

@merefield
Copy link
Owner

That's nuts @dillfrescott!! 鉂わ笍. Great find!

And there's me thinking that proxies were just there to add Auth headers 馃槀

I wonder if there's a Claude equivalent?! : 馃

@merefield
Copy link
Owner

Update: It works fantastically! updating the chatbot.prompt.post value to just %{raw} works great for Gemini!

Does Gemini struggle with usernames being included? Can you elaborate on what effect that has? Doesn't excluding them take away the ability of the bot to @mention?

@dillfrescott
Copy link

Hmm indeed was having issues with mentions. I hadn't tested that.

I changed the prompt to:

%{username} said:

%{raw}

You are a helpful assistant. Please respond to what %{username} said appropriately.

And now it works much better!

Screenshot 2024-03-09 035753

@dillfrescott
Copy link

I wonder if there's a Claude equivalent?

Honestly probably 馃槄

@dillfrescott
Copy link

aaaaaa

As you can see it also handles topic mention requests quite well!

@merefield
Copy link
Owner

merefield commented Mar 9, 2024

Thinking about this some more, @dillfrescott, how is this arrangement going to handle Embeddings? That's critical to getting the full power out of Discourse Chatbot via RAG.

Looks like it is on their roadmap ... but not yet implemented ... and for now I suspect this is only going to work in Chatbot Basic mode?

@dillfrescott
Copy link

I don't think it can do embeddings yet, at least with this setup. I am using a different proxy though than the one I linked, currently.

@dillfrescott
Copy link

I would totally use openai's API but gemini API is totally free to use and openai's is not.

@dillfrescott
Copy link

I think this project can do embeddings from a quick glance at it.

@merefield
Copy link
Owner

merefield commented Mar 11, 2024

I would totally use openai's API but gemini API is totally free to use and openai's is not.

I understand, though remember to manage your spend, especially by other forum members, you can use the inbuilt quota system.

@merefield
Copy link
Owner

I think this project can do embeddings from a quick glance at it.

that's a 404 for me

@dillfrescott
Copy link

my bad i linked a fork i deleted after testing it!

https://github.com/mth93/langchain-gemini-pro-proxy

@merefield
Copy link
Owner

I really like your original suggestion though as it has been package nicely with cloud deployment buttons. Let me know if you PR embeddings and function support ;)

@merefield
Copy link
Owner

I've added the original example and the approach to the Readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr-welcome
Projects
None yet
Development

No branches or pull requests

3 participants