An extension for text-generation-webui to provide web search results as context for the LLM query.
Possible seaerch engines:
google:
bing:
ddg:
(DuckDuckGo)
Syntax:
<search engine>: <web query>
example:
google: what is an LLM
<llm query> <search engine>: <web query>
example:
Who is the most reasonable senator from each side? google: current U.S. senator profiles
https://github.com/oobabooga/text-generation-webui
- In the Textgen Web UI, click the "Session" tab at the top right
- Paste the github url of this project and and press enter
- Open a command terminal, and change directory to the extension
cd text-generation-webui/extensions/textgen_websearch/
- rename .env.example to .env and update the API key value with your own. To generate your API key visit: https://serpapi.com/manage-api-key
mv .env.example .env
vim .env
- Activate Conda environment:
../../cmd_linux.sh
- Install dependencies:
pip install -r requirements.txt
- Exit Conda environment:
exit
- Add startup flag for websearch extension:
vim ../../CMD_FLAGS.txt
- Include this:
--extension textgen_websearch
- Restart
text-generation-webui
to enable extension
What should I wear for a short hike? google: Antartica weather tomorrow
Antarctica is currently foggy and quite cold, with a temperature of -23 °F (-30 °C). Therefore, it's essential to dress warmly and protect yourself from the wind. Here's what you should consider wearing for a short hike:
1. Thermal base layers: Moisture-wicking thermal tops and bottoms to keep your skin dry and insulated.
2. Insulating mid-layers: A fleece jacket or down vest would provide additional warmth.
3. Waterproof and windproof outer layer: A Gore-Tex or similar breathable, waterproof parka and pants to shield against wind and snow.
...
bing: Who is the CEO of Twitter?
Linda Yaccarino is the current CEO of Twitter, replacing Elon Musk who remains in a senior role focused on product design and new technology.
ddg: what was the most recent discovery by the James Webb telescope?
The most recent discovery by the James Webb Space Telescope was the observation of a nearby exoplanet named K2-18 b, which has abundant life-supporting molecules such as methane and carbon dioxide in its atmosphere. This discovery was announced in September 2023.
- Mixtral 8x7B instruct / ExLlamav2_HF: https://huggingface.co/turboderp/Mixtral-8x7B-instruct-exl2
- Llama 2 70B / ExLlama: https://huggingface.co/TheBloke/Llama-2-70B-GPTQ
- Mistral 7B / GGUF: https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF