The Directions Bot is a powerful chatbot application designed to provide directions and information based on user queries. It utilizes AI and various data sources to offer intelligent responses to user questions.
- Interactive chat interface.
- Natural language understanding.
- Knowledgebase integration.
- Pinecone Index population.
- Pinecone Index statistics.
- Destructive operations for managing indices.
-
Clone the repository:
git clone https://github.com/faisal-saddique/dapp.git cd dapp
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file based on the provided.env.template
and fill in the required API keys and environment variables.
To run the Directions Bot, execute the following command:
streamlit run ChatBot.py
This will start the chatbot application. You can access it through the localhost URL: http://localhost:8501
To expand the knowledgebase and improve the capabilities of the Directions Bot, follow these steps to add more documents to the Pinecone Index:
-
Prepare Your Documents: Ensure that the documents you want to add to the index are in a compatible format, such as PDF, CSV, DOCX, XLSX, JSON, or TXT.
-
Access the Pinecone Index Page: Open the Pinecone Index page in the Directions Bot application. You can access it through the following URL when the bot is running: http://localhost:8501/Populate_Pinecone_Index
-
Upload Documents: On the Pinecone Index page, you'll find an option to upload one or more documents. Click the "Upload" button.
-
Select Document Files: A file upload dialog will appear. Select the documents you want to add from your local file system. You can upload multiple files at once.
-
Begin Indexing: After selecting the documents, click the "Begin" button. The bot will start processing and indexing the uploaded documents.
-
Monitor Progress: You can monitor the progress of the indexing process on the Pinecone Index page. Depending on the number and size of the documents, it may take some time to complete.
-
Indexing Completion: Once the indexing process is complete, you will receive a confirmation message. The new documents are now part of the Pinecone Index and can be used for answering user queries.
-
Interact with the Bot: You can now interact with the Directions Bot using the newly added documents for enhanced knowledge and responses.
By following these steps, you can continuously expand the Pinecone Index with relevant documents to improve the bot's ability to answer user queries effectively.