Skip to main content

Prerequisites

1

Install Package

Install required packages:
streamlit for UI ollama for Deepseek model hosting praisonaiagents[knowledge] for RAG capabilities
2

Setup Model

Pull Deepseek model:
3

Setup Environment

Configure environment:
4

Create File

Create a new file called app.py and add the following code:
5

Run Application

Start the Streamlit application:

Code

Features

Interactive Chat

Real-time chat interface with message history.

Knowledge Base

RAG capabilities with ChromaDB integration.

Model Integration

Uses Deepseek through Ollama.

Session Management

Maintains chat history in session state.
Make sure your system meets the requirements for running Deepseek models locally through Ollama.