https://github.com/yashksaini-coder/deepseek-r1-demo
End To End Gen AI App Using DeepSeek-R1 With Langchain And Ollama. Released in January 2025, this model is based on DeepSeek-V3 and is focused on advanced reasoning tasks directly competing with OpenAI's o1 model in performance, while maintaining a significantly lower cost structure
https://github.com/yashksaini-coder/deepseek-r1-demo
deepseek-r1 genai genai-chatbot langchain langhain-python ollama ollama-python streamlit
Last synced: 3 months ago
JSON representation
End To End Gen AI App Using DeepSeek-R1 With Langchain And Ollama. Released in January 2025, this model is based on DeepSeek-V3 and is focused on advanced reasoning tasks directly competing with OpenAI's o1 model in performance, while maintaining a significantly lower cost structure
- Host: GitHub
- URL: https://github.com/yashksaini-coder/deepseek-r1-demo
- Owner: yashksaini-coder
- License: gpl-3.0
- Created: 2025-02-02T20:09:38.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-02-02T20:18:31.000Z (5 months ago)
- Last Synced: 2025-02-02T21:22:46.644Z (5 months ago)
- Topics: deepseek-r1, genai, genai-chatbot, langchain, langhain-python, ollama, ollama-python, streamlit
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeepSeek-R1-demo
## Overview
This repository provides a **Streamlit web application** that runs the **DeepSeek-R1** model locally. The app allows users to input text prompts and receive AI-generated responses from the DeepSeek R1 model in an interactive and user-friendly interface.## Features
- **Local Execution**: Runs the DeepSeek R1 model on your machine.
- **Streamlit UI**: A lightweight and interactive web-based interface.
- **Real-time Inference**: Get responses from the DeepSeek R1 model instantly.
- **Easy Setup**: Simple installation and execution steps.## Prerequisites
Ensure you have the following installed:
- **Python 3.8+**
- **pip**
- **DeepSeek R1 Model** (local installation)
- **Virtual environment** (optional but recommended)## Installation
### 1. Clone the Repository
```sh
git clone https://github.com/yashksaini-coder/streamlit-deepseek-r1.git
cd streamlit-deepseek-r1
```### 2. Set Up a Virtual Environment (Recommended)
```sh
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```### 3. Install Dependencies
```sh
pip install -r requirements.txt
```### 4. Download the DeepSeek R1 Model
Ensure that you have downloaded and installed the DeepSeek R1 model locally. Follow the official DeepSeek R1 installation guide: [DeepSeek AI](https://deepseek.ai/).## Running the Web App
Once everything is set up, start the Streamlit app:
```sh
streamlit run app.py
```
This will launch the app in your default web browser.## Usage
1. Open the app in your browser.
2. Enter a text prompt in the input box.
3. Click the **Submit** button to generate a response.
4. View the AI-generated response on the screen.## Project Structure
```
DeepSeek-R1-demo/
├── .python-version
├── .venv/
│ ├── .gitignore
│ ├─] CACHEDIR.TAG (ignored)
│ ├─] etc/ (ignored)
│ ├─] include/ (ignored)
│ ├─] Lib/ (ignored)
│ ├─] pyvenv.cfg (ignored)
│ ├─] Scripts/ (ignored)
│ └─] share/ (ignored)
├── LICENSE
├── main.py
├── pyproject.toml
├── README.md
├── requirements.txt
└── uv.lock
```## Dependencies
Ensure the `requirements.txt` contains:```
streamlit
langchain_core
langchain_community
langchain_ollama
```## Contributing
Feel free to submit issues, feature requests, or contribute via pull requests!## License
This project is licensed under the **GNU GENERAL PUBLIC LICENSE**.## Contact
For any queries, reach out via [Twitter](https://x.com/yash_k_saini) or visit [Linkedin](https://www.linkedin.com/in/yashksaini/).