URL retrieval extension for text-generation-webui.
No safety checks.
Type, lynx, links, or summarize, then the URLl optionally followed by a newline and user questions.
Type !lynx https://www.example.com
Type !links https://www.example.com
Alternatively, you can use Lynx followed the URL with a new line and then a question to be answered, e.g.:
Type
!lynx https://www.example.com
List the main authors.
or
!links https://www.example.com
List the main authors.
!summarize https://example.com
or
summarize https://example.com
Put main cobclusion first.
Make sure to run these commands after startign the Python environment
with the cmd script that came with text-generation-webui, e.g. for Linux use:
cmd_linux.sh
-
Clone the repository into the extensions folder within the text-generation-webui project directory using the command:
git clone https://github.com/yourusername/yourrepository.git lynx cd lynx # pip install -r requirements.txt
-
add the extension by modifying the launch commands for text-generation-webui, usually by editing CMD_FLAGS.txt to add
--extension lynx
-
Finally, launch the text-generation-webui application. A new option labeled "Use Lynx" should appear in the chat tab when launched. Enabling this checkbox activates the extension; disabling it deactivates it.
- Used the skeleton for a similar extension from https://github.com/hav0x1014/web_search