This repository contains a Generative AI (GenAI) application built using Ollama and modern LLM frameworks. The goal of this project is to run powerful AI models locally for tasks like chat, reasoning, and automation.
Unlike cloud-based AI tools, this project ensures:
- ๐ Privacy (runs completely on your machine)
- โก Low latency responses
- ๐ป Offline capability (after model download)
Generative AI refers to models that can generate content such as:
- Text ๐
- Code ๐ป
- Conversations ๐ฌ
- Ideas ๐ก
This project leverages LLMs (Large Language Models) to simulate intelligent responses.
- ๐ง Local LLM execution using Ollama
- ๐ฌ Chat-based interaction system
- โก Fast and efficient responses
- ๐ Easy model switching (LLaMA, Mistral, etc.)
- ๐ ๏ธ Beginner-friendly setup
- Python ๐
- Ollama ๐ง
- LangChain (optional)
- Environment Variables (.env)
git clone https://github.com/your-username/genai-project.git
cd genai-projectpython -m venv venvActivate:
- Windows:
venv\Scripts\activate- Linux/Mac:
source venv/bin/activatepip install -r requirements.txtDownload from: https://ollama.com
ollama pull llama3You can also use:
ollama pull mistralollama run llama3python app.pygit clone https://github.com/your-username/genai-project.gitgit add .git commit -m "Added GenAI feature"git push origin mainThe models are :
- meta-llama/Llama-3.1-8B-Instruct
- deepseek-ai/DeepSeek-R1
- qwen2.5-coder
- ollama pull qwen2.5-coder
- ollama run qwen2.5-coder
- ollama pull llama3.2
- ollama run llama3.2
An AI-powered REST API built using FastAPI and Hugging Face LLM.
- FastAPI backend
- AI Chat endpoint using Mistral-7B
- Clean modular structure
- Postman tested APIs
- FastAPI
- LangChain
- Hugging Face
- Python
Install the installations that are :
- pip install langchain langchain-huggingface
- pip install huggingface_hub transformers sentence-transformers
- TypedDict Schema
- Pydantic
- JSON
genai-project/
โโโ app.py
โโโ requirements.txt
โโโ .env
โโโ README.md
- ๐ค Chatbot development
- ๐งโ๐ป Code generation
- ๐ Learning AI concepts
- ๐ง Local AI assistants
- ๐ Web-based UI
- ๐งพ Memory-based conversations
- ๐ Voice interaction
- ๐ Integration with databases
Contributions are welcome! Feel free to fork and improve this project.
MIT License
- Ollama
- Open-source LLM community
โญ Star this repo if you found it helpful!