This repository contains various proof of concepts and experiments with Large Language Models (LLMs) and related technologies. The project is organized into different modules, each focusing on specific aspects of LLM applications.
.
├── src/
│ ├── huggingface/ # Hugging Face model experiments
│ ├── groq/ # Groq API integration
│ ├── agents/ # LLM agent implementations
│ ├── rag/ # Retrieval Augmented Generation examples
│ ├── llm_apis/ # Various LLM API integrations
│ ├── langchain_llm_app/ # LangChain-based applications
│ └── weviate_study/ # Weaviate vector database experiments
├── data/ # Data files and resources
├── requirements.txt # Python dependencies
└── .env # Environment variables
huggingface_bot.ipynb: Jupyter notebook demonstrating Hugging Face model integration
app.py: Application demonstrating Groq API usage
agents.ipynb: Jupyter notebook showcasing LLM agent implementations
rag_basics.ipynb: Basic RAG implementationretriver.ipynb: Advanced retrieval techniques
client.py: Generic LLM API clientapp.py: Example application using various LLM APIs
app.py: LangChain-based applicationbasic_open_ai.py: Basic OpenAI integration with LangChain
poc_weviate.py: Proof of concept for Weaviate vector database integration
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
- Copy
.env.exampleto.env - Fill in the required API keys and configuration values
Each component can be run independently. Navigate to the specific directory and run the corresponding Python file or Jupyter notebook.
For example:
# Run Groq application
cd src/groq
python app.py
# Run Weaviate POC
cd src/weviate_study
python poc_weviate.pySee requirements.txt for the complete list of dependencies. Key dependencies include:
- Python 3.8+
- Various LLM-related packages
- Jupyter for notebook-based experiments
- This is a collection of proof of concepts and experiments
- Each component is designed to be self-contained
- Some components may require specific API keys or credentials
- Check individual component directories for specific setup instructions
MIT License
Copyright (c) 2024 [Amol Jagadambe]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.