No longer maintained. I hope to come back to this when I get a good PC. Thanks guys for the support.
Web search extension for text-generation-webui
Thanks to TheCyberViking for the initial simple web search code. You can see it here
This extension enables' a language model to receive google search data according to the users' input.[Currently supports google search only]
How to use
Type search then what you want to search for, example:
Type search the weather in Nairobi, Kenya today.
Alternatively, you can type search followed by search query in double quotation marks and then a question to be answered, e.g.:
Type search "the weather in Amsterdam" and tell me what should I wear.
Requirements
- Google chrome browser
How to install
*** Make sure to run these commands in the cmd script that came with text-generation-webui. eg cmd_linux.sh
(Linux) ***
-
First clone the repo to
text-generation-webui/extensions
folder -
Then
cd web_search
and runpip install -r requirements.txt
-
Add
web_search
to launch commands of text-generation-webui like so--extension web_search
-
Run text-gen-webui. There will be a checkbox with label
Use Google Search
in chat tab, this enables or disables the extension. -
Done
!!!Have fun!!!