https://github.com/afsify/afsvis-ai
Explore the AI local solution that integrates DeepSeek R1 with Ollama, allowing users to ask questions and receive answers. It features a speech synthesis capability to read out answers.
https://github.com/afsify/afsvis-ai
ai deepseek-r1 ollama
Last synced: about 1 month ago
JSON representation
Explore the AI local solution that integrates DeepSeek R1 with Ollama, allowing users to ask questions and receive answers. It features a speech synthesis capability to read out answers.
- Host: GitHub
- URL: https://github.com/afsify/afsvis-ai
- Owner: afsify
- Created: 2025-01-30T18:02:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-01T15:51:20.000Z (over 1 year ago)
- Last Synced: 2025-03-28T02:51:44.834Z (about 1 year ago)
- Topics: ai, deepseek-r1, ollama
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A.F.S.V.I.S AI (Advanced Functional Smart Virtual Intelligent System)
Afsvis AI is an advanced, offline, intelligent system that integrates **DeepSeek R1** with **Ollama** for providing answers to user queries locally, without needing an internet connection. The system supports **speech synthesis** to read the answers aloud, enhancing the user experience.
## Features:
- Local Q&A system with **DeepSeek R1** model via **Ollama**.
- No internet required for question answering.
- Speech synthesis to read answers aloud using **pyttsx3**.
- Interactive terminal-based interface.
## Getting Started
1. **Clone the repository:**
```bash
git clone https://github.com/afsify/afsvis-ai.git
```
## Installation
### 1. Install Ollama
To install **Ollama** (which is required to pull the DeepSeek model), follow these steps:
- Visit [Ollama website](https://ollama.com/) and download the appropriate version for your system (Windows/Mac/Linux).
- Follow the instructions provided to complete the installation.
After installing Ollama, verify it by running the following command in your terminal:
```bash
ollama --version
```
### 2. Install DeepSeek R1 Model
Once Ollama is installed, you need to pull the **DeepSeek R1:1.5b** model. Open your terminal and run the following command:
```bash
ollama pull deepseek-r1:1.5b
```
This will download the DeepSeek R1 model locally to your machine.
### 3. Install Python Dependencies
You will need the following Python libraries:
- **pyttsx3** (for text-to-speech)
- **ollama** (Python wrapper for Ollama)
To install these dependencies, run the following commands in your terminal:
```bash
pip install pyttsx3 ollama
```
### 4. Running the Application
After setting up the Python script, you can run the script directly from your terminal:
```bash
python main.py
```
This will:
1. Send a query (e.g., "define multiverse?") to the **DeepSeek R1** model.
2. Stream the response and print it in the terminal.
3. Read the response aloud using **pyttsx3**.
### Troubleshooting
- **Ollama not found**: Ensure that Ollama is correctly installed and added to your system's PATH.
- **Model not pulling**: Ensure you have an active internet connection while pulling the model for the first time. Once pulled, the model is stored locally and does not require an internet connection.