This repo includes a few jupyter notebooks for design software architecture using Generative AI
- Python
- LLM (GPT-4) deployed on Azure or SML running locally on Ollama (TODO)
To create a Python virtual environment for running a Jupyter notebook, follow these instructions based on your operating system:
Linux:
- Open a terminal.
- Navigate to the directory where you want to create the virtual environment.
- Run the command
python3 -m venv venv
to create a virtual environment named "venv". - Activate the virtual environment by running
source venv/bin/activate
.
Windows:
- Open a command prompt.
- Navigate to the directory where you want to create the virtual environment.
- Run the command
python -m venv venv
to create a virtual environment named "venv". - Activate the virtual environment by running
venv\Scripts\activate.bat
.
macOS:
- Open a terminal.
- Navigate to the directory where you want to create the virtual environment.
- Run the command
python3 -m venv venv
to create a virtual environment named "venv". - Activate the virtual environment by running
source venv/bin/activate
.
Install python dependencies, run:
pip install -r requirements.txt
Option 1: Azure Open AI Option 2: Ollama (not recommended)
To run a local PlantUML server using Docker, follow these steps:
- Make sure you have Docker installed on your machine.
- In a terminal, navigate to
plantuml
folder. - Run
docker-compose up -d
. - To stop the Docker Compose when you're done:
docker-compose down
Start the Jupyter lab server by running jupyter lab
.