-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat: rag api integration support (web search) #586
Comments
Hi. Can you give example how to use it. I try with |
@tjbck |
@ChingWeiChan Great idea, I'll make it clickable! Just merged #616, should work as expected! |
Hi, I tried some news articles with RAG, but it seems like models I tried are unable to process the "correct" content. For instance, given the example article from CNN, the model is unable to extract answers from the article. And if I want the model to introduce the document, it responded with content that are irrelevant to the article (website headers or SEO data I presume). I think an integration with Mozilla's Readability library or similar projects can vastly improve the efficiency of website RAG support for open-webui. |
DuckDuckGo search API is free: https://pypi.org/project/duckduckgo-search/ |
Can't wait for this! Super cool stuff! |
Huggingface chat is one of the best implementations of web search I’ve seen for UX so it’d be great if open-webui used this flow: https://huggingface.co/chat/ HuggingChat also open sourced and is OpenAPI compatible so it can be used with Ollama. The web search can be configured to use different search engines including searxng (private open source search engine) Edit: chat-ui has Ollama support built in (it’s in the readme) |
LLM_Web_search is a similar capability implemented in Text Generation WebUI that uses Langchain for RAG. It's worked very well for me and with a good system or character prompt I don't even need to ask it to search the web. https://github.com/mamei16/LLM_Web_search. I made a minor bug fix but otherwise am not affiliated. |
I think if open webui were to use a search engine, I nominate searxng (running locally) 100%. I'm using it with another similar project and it works flawlessly and its totally free too, unlike a lot of these API's. |
Seconding the recommendation of searxng, it's really very good, self-hostable and works with many backend search engine providers. |
+1 |
Any updates ? |
If you don't have anything to add, please don't comment like this. It just makes it harder for other people to follow. @9cento @MohamedAliRashad |
Idea for how to implement this: make a checkbox/toggle in the message prompt to enable "use web search for enhanced response accuracy". If this toggle is enabled, first send a hidden message to the LLM asking it to analyze the user's message for terms to search for. Then make a search request for each of these terms using some supported search engine, and send the top results to the normal web RAG pipeline. This would require the admin to configure some search API endpoint. Starting with SearxNG would probably be good because it has an easily configurable JSON API. |
That was a bump, frustrated mass-replier. And this is another bump. |
Implemented in dev. |
Extension of #464
The text was updated successfully, but these errors were encountered: