Metadata-Version: 2.4
Name: solbiz-coder
Version: 0.1.0
Summary: AI Coding Assistant powered by Qwen2.5-Coder + LangChain
Author-email: Solbiz <contact@solbiz.com>
License: MIT
Project-URL: Homepage, https://github.com/solbiz/solbiz-coder
Project-URL: Repository, https://github.com/solbiz/solbiz-coder
Keywords: ai,coding,assistant,llm,langchain,ollama
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langchain>=0.1.0
Requires-Dist: langchain-ollama>=0.1.0
Requires-Dist: rich>=13.0.0
Requires-Dist: prompt_toolkit>=3.0.0
Dynamic: license-file

# 🚀 Solbiz Coder

AI Coding Assistant powered by **Qwen2.5-Coder** + **LangChain**

## ✨ Features

- 💻 **Coding Assistant** - Viết code, debug, review
- 🔬 **Research Assistant** - Phân tích, tóm tắt, giải thích
- 📊 **Data Analysis** - Xử lý dữ liệu, SQL, visualization

## 📦 Installation

### Yêu cầu

- Python 3.9+
- Ollama server đang chạy với model `qwen2.5-coder:7b`

### Cài đặt từ PyPI

```bash
pip install solbiz-coder
```

### Cài đặt từ source

```bash
git clone https://github.com/solbiz/solbiz-coder.git
cd solbiz-coder
pip install -e .
```

## 🚀 Usage

### Chạy CLI

```bash
solbiz-coder
```

### Cấu hình server

Lần đầu chạy, dùng `/config` để cấu hình:

```
[code] You: /config

Cấu hình Ollama Server

Server hiện tại: http://localhost:11434
Model hiện tại: qwen2.5-coder:7b

Nhập URL server Ollama: http://your-server-ip:11434
```

### Các lệnh

| Lệnh | Mô tả |
|------|-------|
| `/help` | Hiển thị hướng dẫn |
| `/mode code` | Chế độ coding |
| `/mode research` | Chế độ research |
| `/mode data` | Chế độ data analysis |
| `/config` | Cấu hình server |
| `/clear` | Xóa lịch sử chat |
| `/exit` | Thoát |

## 🖥️ Setup Ollama Server

### Local

```bash
# Cài Ollama
curl -fsSL https://ollama.com/install.sh | sh

# Pull model
ollama pull qwen2.5-coder:7b

# Chạy
ollama serve
```

### Remote Server (Vultr, etc.)

```bash
# Trên server, expose Ollama API
systemctl stop ollama
mkdir -p /etc/systemd/system/ollama.service.d
echo '[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"' > /etc/systemd/system/ollama.service.d/override.conf
systemctl daemon-reload
systemctl start ollama
```

Sau đó trên local, chạy `solbiz-coder` và dùng `/config` để nhập IP server.

## 📝 License

MIT License
