be84ecf89e
This pull request updates the versions of quivr-core and chainlit in the requirements.txt file. The quivr-core version is changed from 0.0.8 to 0.0.8[base], and the chainlit version is changed from 1.1.306 to 1.1.306. |
||
---|---|---|
.. | ||
chainlit.md | ||
main.py | ||
README.md | ||
requirements.txt |
Quivr Chatbot Example
This example demonstrates how to create a simple chatbot using Quivr and Chainlit. The chatbot allows users to upload a text file and then ask questions about its content.
Prerequisites
- Python 3.8 or higher
Installation
-
Clone the repository or navigate to the
backend/core/examples/chatbot
directory. -
Install the required dependencies:
pip install -r requirements.txt
Running the Chatbot
-
Start the Chainlit server:
chainlit run main.py
-
Open your web browser and go to the URL displayed in the terminal (usually
http://localhost:8000
).
Using the Chatbot
-
When the chatbot interface loads, you will be prompted to upload a text file.
-
Click on the upload area and select a
.txt
file from your computer. The file size should not exceed 20MB. -
After uploading, the chatbot will process the file and inform you when it's ready.
-
You can now start asking questions about the content of the uploaded file.
-
Type your questions in the chat input and press Enter. The chatbot will respond based on the information in the uploaded file.
How It Works
The chatbot uses the Quivr library to create a "brain" from the uploaded text file. This brain is then used to answer questions about the file's content. The Chainlit library provides the user interface and handles the chat interactions.
Enjoy chatting with your documents!