sherphard33 / bytsie_learn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bytsie learn

How It Works


Setup Diagram

The application follows these steps to provide responses to your questions:

  1. PDF Loading: The app reads multiple PDF documents and extracts their text content.

  2. Text Chunking: The extracted text is divided into smaller chunks that can be processed effectively.

  3. Language Model: The application utilizes a language model to generate vector representations (embeddings) of the text chunks.

  4. Similarity Matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones.

  5. Response Generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.

Dependencies and Installation


To run Bytsie App, please follow these steps:

  1. Clone the repository to your local machine.

  2. Install the required dependencies by running the following command:

    pip install -r requirements.txt
    
  3. Obtain an API key from OpenAI and add it to the .env file in the project directory.

Usage

  1. Install the required dependencies by running the following command:
pip install -r requirements.txt
  1. Run the app.py file using the Streamlit CLI. Execute the following command:
    streamlit run app.py
    

About


Languages

Language:Python 100.0%