huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.16k stars 1.03k forks source link

Make webSearch into Plugins system #685

Open itaybar opened 8 months ago

itaybar commented 8 months ago

I thought about making the web search concept more generic, Like an "RAG marketplace" or plugins, meaning anyone can configure there own RAG systems into ChatUI, allowing adding plugins for proprietary data when deploying ChatUI on-prem.

the user_email field is an extra security level to check rather this email actually allowed to access the proprietary data

mishig25 commented 8 months ago

this is great idea !

as I work on #641, I realize that we would indeed need to make general RAG interface/system.

websearch, pdf-chat would be implementations of this RAG interface. And we would add implementation for vector DBs as well

julien-c commented 8 months ago

I realize that we would indeed need to make general RAG interface/system.

This makes a lot of sense IMO @mishig25 🔥

itaybar commented 7 months ago

Another good Idea. you can you langchain as your plugins (you can host langchain with langserve), and make an API to the plugin, In this the most generic and convenient way, since Langchain is the most popular tool for RAGs