etkecc / baibot

🤖 A Matrix bot for using diffent capabilities (text-generation, text-to-speech, speech-to-text, image-generation, etc.) of AI / Large Language Models (OpenAI, Anthropic, etc.)
GNU Affero General Public License v3.0
44 stars 4 forks source link

Accessing external links #11

Open CybotTM opened 1 month ago

CybotTM commented 1 month ago

Hi,

!bai fasse mir diesen Artikel zusammen: https://members.outcomeedge.com/p/how-to-find-gold-mines

Entschuldigung, ich kann auf externe Links nicht zugreifen. Wenn du möchtest, kannst du mir den Text hier einfügen, und ich helfe dir gerne dabei, eine Zusammenfassung zu erstellen!

Is there any way to baibot to access external links/assets/documents?

spantaleev commented 1 month ago

This sounds like a cool feature, and OpenAI's ChatGPT (their web product) supports such "web browsing". See Should I use ChatGPT or the API?

Unfortunately, it's difficult to emulate. baibot currently only uses the Chat completions API for contacting the model. The model itself cannot do such a thing.

To implement the ability to summarize articles from a question like that:

Given all the uncertainty and complexity, I'd say that this feature is unlikely to get implemented.

CybotTM commented 1 month ago

I know that "chat" is something completely different and more complex than just using the LLM API. We are also tested our first chat implementation with RAG.

A simple first approach could be extracting the links and attaching the content as context. Or any other way to add context to the chat without pasting wall of text into the chat itself.