An open API service indexing awesome lists of open source software.

https://github.com/alihassanml/ollama-deepseek


https://github.com/alihassanml/ollama-deepseek

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# **Ollama DeepSeek - AI Chatbot with LangChain Integration**

A **streamlined AI chatbot** powered by the **Ollama DeepSeek Model** using **LangChain** for advanced conversational AI. This project demonstrates how to build a chatbot where the user can ask questions, and the AI responds using a locally hosted Ollama model.

---

## **🔧 Features**
- **Ollama DeepSeek Model** integration for AI responses.
- **LangChain** framework for sophisticated prompt management.
- **Streamlit** for a sleek, user-friendly interface.
- Chat history with user input displayed in a code block.
- Bot responses are presented in a collapsible dropdown container.

---

## **⚡ Prerequisites**
Make sure you have the following installed:

- Python 3.7 or higher
- **Streamlit** - For the interactive frontend.
- **Ollama** - For the deep learning model (local).
- **LangChain** - For building custom prompt chains.

### **Install dependencies**
You can install the required libraries using `pip`:

```bash
pip install streamlit ollama langchain langchain-core
```

---

## **🚀 Usage**

1. **Clone the repository**:

```bash
git clone https://github.com/alihassanml/ollama-deepSeek.git
cd ollama-deepSeek
```

2. **Run the Streamlit app**:

```bash
streamlit run app.py
```

3. The app will launch in your default browser, where you can interact with the **Ollama DeepSeek Model**.

---

## **📝 How it Works**

- **User Input**: The user types a message in the provided input field.
- **Model Prompt**: The input is sent to **LangChain**, which formats the query with a custom prompt.
- **Bot Reply**: The **Ollama model** generates a response, which is shown in a collapsible container in the app.

---

## **🛠️ How to Contribute**

Feel free to fork the repository, open issues, or submit pull requests to improve the project. We welcome any suggestions or contributions!

1. Fork the repository.
2. Create a feature branch (`git checkout -b feature-name`).
3. Commit your changes (`git commit -m 'Add feature'`).
4. Push to the branch (`git push origin feature-name`).
5. Open a pull request.

---

## **📄 License**

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

## **📞 Contact**

For any queries, you can reach out to the repository owner:

- **Ali Hassan** - [Email](mailto:ali.hassan@example.com)