llm project templates
1.0.0
A series of boilerplates to help you kick-start your LLM projects.
1. Clone the repository to your local machine:
git clone https://github.com/krisograbek/llm-project-templates.git2. Navigate to the project directory:
cd llm-project-templates3. Create a virtual environment and activate it:
On macOS and Linux:
python3 -m venv myenv
source myenv/bin/activateOn Windows:
python -m venv myenv
.myenvScriptsactivate3a. Upgrade pip (optional but recommended)
pip install --upgrade pip4. Install the necessary Python packages:
pip install openai python-dotenv5. Create a .env file in the root directory of the project and add your OpenAI API key:
echo OPENAI_API_KEY=your-api-key > .envOR
cp .env.example .envPlease replace your-api-key with your actual OpenAI API key.
6. Run the Python application:
python app.pyReplace app.py with the actual script file you run.
6. Run the Streamlit application.
streamlit run app.pyReplace app.py with the actual script file you run.