File size: 1,953 Bytes
6f3f21e
c2e57d7
6f3f21e
 
 
 
 
 
 
c2e57d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f3f21e
 
 
c2e57d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f3f21e
c2e57d7
 
 
 
 
 
 
 
 
6f3f21e
 
 
 
c2e57d7
 
6f3f21e
c2e57d7
 
 
6f3f21e
 
 
c2e57d7
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# RaySeek 1.1

Local AI assistant powered by llama.cpp, Meta FAISS vector memory, deep Chain of Thought reasoning, autonomous tool execution, live web search, and symbolic math solving.

## Features in Version 1.1
- **Deep Reasoning Stream**: Dynamic `<think>` chain-of-thought analysis for complex queries and code architecture.
- **Universal Local RAG**: `/load <path>` indexes entire project folders, source code, text documents, and PDFs into Meta FAISS C++ vector memory.
- **Autonomous Tool Use**: Native system shell (`/bash`), file system reading/writing, web search, and time inspection.
- **Adaptive 8K Context**: Dynamic memory scaling ensuring fast inference on standard consumer GPUs.

## Installation

```bash
git clone https://github.com/Raytolfas/RaySeek.git
cd RaySeek
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt
```

> Model weights (`Qwen2.5-3B-Instruct-GGUF`) download automatically from Hugging Face Hub on first run.

## CLI Usage

```bash
python main.py
```

### Commands
- `/load <path>` — index local directory or file (code, txt, pdf) into vector memory
- `/think` — toggle deep reasoning visibility
- `/bash <cmd>` — run shell command
- `/web <query>` — search the web in real-time
- `/translate <text>` — translate text RU <-> EN
- `/info` — system status and context statistics
- `/help` — display commands list
- `/exit` — terminate session

## API Usage

```bash
python api.py
```

The server starts on `http://127.0.0.1:8000`.

### Endpoints

#### POST `/api/chat`
Send a message to the assistant with autonomous tool execution.

Request:
```json
{
  "message": "Hello, who are you?",
  "history": []
}
```

#### POST `/api/load`
Index a file or folder into the local FAISS memory.

Request:
```json
{
  "path": "./my_project"
}
```

#### GET `/api/info`
Retrieve system and model specifications.

#### GET `/api/health`
Health check.