Code Monkey home page Code Monkey logo

dapp's Introduction

The Directions Bot

Introduction

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.

Features

  • Interactive chat interface.
  • Natural language understanding.
  • Knowledgebase integration.
  • Pinecone Index population.
  • Pinecone Index statistics.
  • Destructive operations for managing indices.

Installation

  1. Clone the repository:

    git clone https://github.com/faisal-saddique/dapp.git
    cd dapp
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate
  3. Install the required packages:

    pip install -r requirements.txt
  4. Create a .env file based on the provided .env.template and fill in the required API keys and environment variables.

Usage

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

Adding Documents to the Pinecone Index

To expand the knowledgebase and improve the capabilities of the Directions Bot, follow these steps to add more documents to the Pinecone Index:

  1. 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.

  2. 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

  3. Upload Documents: On the Pinecone Index page, you'll find an option to upload one or more documents. Click the "Upload" button.

  4. 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.

  5. Begin Indexing: After selecting the documents, click the "Begin" button. The bot will start processing and indexing the uploaded documents.

  6. 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.

  7. 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.

  8. 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.