rustam-e / AI21

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Name

A brief description of your project.

Setup

1. Create a virtual environment

To store all dependencies, create a virtual environment:

python -m venv venv

2. Activate the virtual environment

source venv/bin/activate

3. Install dependencies

Navigate to the AI21 directory and run the setup script:

cd AI21
python setup.py

To deactivate the virtual environment, simply type:

deactivate

Running the Script

Navigate to the src directory and run main.py:

cd src
python main.py

Results

View the prompts, responses, and scores in the responses.csv file. Visualizations can be found in the results/plots directory. Analysis results can be viewed in the analysis_results.txt file.

Re-running the script should retrieve the results from the cache, not from the AI model.

API Keys Set the API keys for the services in a .env file as shown below:

OPENAI_API_KEY=xyz
AI21_API_KEY=abc

Replace "Project Name" with the actual name of your project and provide a brief description. This improved version of the README provides clear instructions for setting up and running the project.

About


Languages

Language:Python 100.0%