winniesi / tg-gemini-bot

Just a single click and you've got it set up on Vercel.
https://tg-gemini-bot.vercel.app
MIT License
89 stars 42 forks source link

Expand the access to internet #6

Closed chenweiask closed 8 months ago

chenweiask commented 8 months ago

The current Gemini model is the same as GPT3.5 which does not have internet access. But there it could be fed with search result from internet, by which method somehow gets the ability for internet access.

Do you have any plan to expand to the function in your Gemin tg-bot?

winniesi commented 8 months ago

I think I can give a try, but I don't understand how to feed the content of the Internet to Gemini. Can you speak in detail?

bukall commented 8 months ago

I think I can give a try, but I don't understand how to feed the content of the Internet to Gemini. Can you speak in detail?

First, ask ai whether this text needs to be searched online. If not, reply "0", if necessary, reply with the keywords to be searched. Then, search for keywords, send the query content, search content, and search results to the AI, and then let it choose which link to enter to obtain detailed content, or directly generate a reply to the user.

bukall commented 8 months ago

If you want to implement it, I think the history part needs to be rewritten

winniesi commented 8 months ago

I think I can give a try, but I don't understand how to feed the content of the Internet to Gemini. Can you speak in detail?

First, ask ai whether this text needs to be searched online. If not, reply "0", if necessary, reply with the keywords to be searched. Then, search for keywords, send the query content, search content, and search results to the AI, and then let it choose which link to enter to obtain detailed content, or directly generate a reply to the user.

This is kind of over my head. I just want to keep it simple.🍺 @chenweiask

chenweiask commented 8 months ago

Thanks for the reply! The program is already very good and I respect your decision. Let's close the topic.