.. | ||
benchmark_texts | ||
nltk_data | ||
api.py | ||
benchmark.py | ||
chat_handler.py | ||
chromadb.py | ||
config.json | ||
data_preprocessor.py | ||
data_processor.py | ||
download_urls.py | ||
notebook_handler.py | ||
optimize.py | ||
parameters.py | ||
README.md | ||
requirements.txt | ||
script.py | ||
utils.py |
SuperboogaV2
Enhance your LLM with additional information from text, URLs, and files for more accurate and context-aware responses.
Installation and Activation
- Start the conda environment by running
cmd_windows.bat
or the equivalent for your system in the root directory oftext-generation-webui
. - Install the necessary packages:
pip install -r extensions/superboogav2/requirements.txt
- Activate the extension in the
Session
tab of the web UI. - Click on
Apply flags/extensions and restart
. Optionally save the configuration by clicking onSave UI defaults to settings.yaml
.
Usage and Features
After activation, you can scroll further down in the chat UI to reveal the SuperboogaV2 interface. Here, you can add extra information to your chats through text input, multiple URLs, or by providing multiple files subject to the context window limit of your model.
The extra information and the current date and time are provided to the model as embeddings that persist across conversations. To clear them, click the Clear Data
button and start a new chat. You can adjust the text extraction parameters and other options in the Settings
.
Supported File Formats
SuperboogaV2 utilizes MuPDF, pandas, python-docx, and python-pptx to extract text from various file formats, including:
- TXT
- EPUB
- HTML
- CSV
- ODT/ODS/ODP
- DOCX/PPTX/XLSX
Additional Information
SuperboogaV2 processes your data into context-aware chunks, applies cleaning techniques, and stores them as embeddings to minimize redundant computations. Relevance is determined using distance calculations and prioritization of recent information.
For a detailed description and more information, refer to the comments in this pull request: https://github.com/oobabooga/text-generation-webui/pull/3272