A collection of Generative AI projects demonstrating LLM chains, Streamlit applications, and Google GenAI integration.
- Python 3.8+
- pip (Python package manager)
- Windows/Linux/macOS
GenAI/
├── project_01_basic_llm_chain/
│ └── app.ipynb
├── env-example.md
└── Readme.md
Install UV globally using pip:
pip install uvCreate a virtual environment using UV:
uv venvWindows:
.\venv\Scripts\activatemacOS/Linux:
source venv/bin/activateInstall the core dependencies for LangChain, Google GenAI, and Streamlit:
uv pip install streamlit langchain-google-genai google-genai python-dotenvIf you plan to work with Jupyter notebooks:
uv pip install jupyter ipykernel- Navigate to the project directory
- Ensure your virtual environment is activated
- Create a
.envfile based onenv-example.mdwith your API credentials - Run Jupyter notebooks or Streamlit apps as needed
jupyter notebookNavigate to project_01_basic_llm_chain/app.ipynb
streamlit run app.py- streamlit: Web app framework
- langchain-google-genai: LangChain integration with Google Generative AI
- google-genai: Google's generative AI SDK
- python-dotenv: Environment variable management
- jupyter: Interactive notebook environment (optional)
- ipykernel: IPython kernel for Jupyter (optional)
Create a .env file in the root directory with your API keys:
GOOGLE_API_KEY=your_api_key_here
Refer to env-example.md for additional configuration options.
For issues or questions, please refer to the documentation of the respective libraries: