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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make webSearch into Plugins system #685

Open
itaybar opened this issue Jan 10, 2024 · 3 comments
Open

Make webSearch into Plugins system #685

itaybar opened this issue Jan 10, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request websearch

Comments

@itaybar
Copy link
Contributor

itaybar commented Jan 10, 2024

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.

  • Rename websearch into plugin or RAG
  • allow to configure RAG from external service, for example http request that sends the input, and get in exchange the tok k results (all the embedding, vector similarity, hybrid search (using both TFIDF/BM25 AND vector similarity) etc in the external service
  • make the webseach toggle into dropdown to select what RAG do you wanna use (allowing multiple can be a bit harder, so maybe start with selecting only one from the dropdown)
  • The plugin can return the sources to show them (just like in websearch)
    POST https://my-custom-plugin/retrieve
    {
    "input": "some user question",
    "user_email": "[email protected]"
    }
    returned json
    {
    retrieved_docs: [{"text":"this is some retrieve info from private source", source: "someurl"}]
    }

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

@nsarrazin nsarrazin added enhancement New feature or request websearch labels Jan 10, 2024
@nsarrazin nsarrazin changed the title feature requests: Make webSearch into Plugins system on Make webSearch into Plugins system Jan 10, 2024
@mishig25 mishig25 self-assigned this Jan 10, 2024
@mishig25
Copy link
Collaborator

mishig25 commented Jan 10, 2024

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

@mishig25 mishig25 mentioned this issue Jan 10, 2024
@julien-c
Copy link
Member

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

This makes a lot of sense IMO @mishig25 🔥

@itaybar
Copy link
Contributor Author

itaybar commented Jan 16, 2024

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

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

No branches or pull requests

4 participants