The dependencies can be installed by running:
pip install -r requirements.txt
in the root directory of the project.
-
Clone the repository:
git clone https://github.com/wazacraft/mpcvs.git
-
Change to the project directory:
cd mpcvs
-
Create a python virtual environment named mpcvs:
python3 -m venv mpcvs
-
Activate the virtual environment:
- On Windows:
mpcvs\Scripts\activate
- On Unix or MacOS:
source mpcvs/bin/activate
- On Windows:
-
Install the dependencies:
pip install -r requirements.txt
-
Set up OpenAI API key: Add the OpenAI API key to your environment variables. The method depends on your operating system and shell, but one common approach is adding
export OPENAI_API_KEY='your-api-key'
to your.bashrc
or.bash_profile
and then source it. -
Run the application:
streamlit run launch.py
and thenpython launch.py
Usage Instructions
-
Ingestion:
- Enter URLs to scrape in the 'Enter URLs to scrape/ingest' text area.
- Click the 'Ingest' button. The application will scrape each web page, create embeddings for the content, and store the results.
-
Question and Answer:
- Enter your question in the 'Enter a question to ask OpenAI API based on ingested data' text input.
- The application will generate a response using the most similar text chunk from the ingested data.
Version 1.0.0:
- Data Ingestion: The application can ingest data from web URLs.
- Q&A: The application can answer questions based on the ingested data using OpenAI's GPT-4 model.