openviking-opencode 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,28 +21,64 @@ pip install openviking
|
|
|
21
21
|
|
|
22
22
|
### 2. Configure OpenViking
|
|
23
23
|
|
|
24
|
-
OpenViking requires an embedding model and a VLM (for generating directory summaries). Create `~/.openviking/ov.conf
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
cp /path/to/OpenViking/examples/ov.conf.example ~/.openviking/ov.conf
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Then fill in your API keys. Minimum required fields:
|
|
24
|
+
OpenViking requires an embedding model and a VLM (for generating directory summaries). Create `~/.openviking/ov.conf` with the following structure:
|
|
31
25
|
|
|
32
26
|
```json
|
|
33
27
|
{
|
|
28
|
+
"server": {
|
|
29
|
+
"host": "0.0.0.0",
|
|
30
|
+
"port": 1933,
|
|
31
|
+
"api_key": null,
|
|
32
|
+
"cors_origins": ["*"]
|
|
33
|
+
},
|
|
34
|
+
"storage": {
|
|
35
|
+
"workspace": "/path/to/your/workspace",
|
|
36
|
+
"vectordb": {
|
|
37
|
+
"name": "context",
|
|
38
|
+
"backend": "local",
|
|
39
|
+
"project": "default"
|
|
40
|
+
},
|
|
41
|
+
"agfs": {
|
|
42
|
+
"port": 1833,
|
|
43
|
+
"log_level": "warn",
|
|
44
|
+
"backend": "local",
|
|
45
|
+
"timeout": 10,
|
|
46
|
+
"retry_times": 3
|
|
47
|
+
}
|
|
48
|
+
},
|
|
34
49
|
"embedding": {
|
|
35
|
-
"
|
|
36
|
-
|
|
50
|
+
"dense": {
|
|
51
|
+
"model": "your-embedding-model",
|
|
52
|
+
"api_key": "your-api-key",
|
|
53
|
+
"api_base": "https://your-provider/api/v3",
|
|
54
|
+
"dimension": 1024,
|
|
55
|
+
"provider": "openai",
|
|
56
|
+
"input": "multimodal"
|
|
57
|
+
},
|
|
58
|
+
"max_concurrent": 100
|
|
37
59
|
},
|
|
38
60
|
"vlm": {
|
|
61
|
+
"model": "your-vlm-model",
|
|
62
|
+
"api_key": "your-api-key",
|
|
63
|
+
"api_base": "https://your-provider/api/v3",
|
|
64
|
+
"temperature": 0,
|
|
65
|
+
"max_retries": 2,
|
|
39
66
|
"provider": "openai",
|
|
40
|
-
"
|
|
41
|
-
|
|
67
|
+
"thinking": false
|
|
68
|
+
},
|
|
69
|
+
"auto_generate_l0": true,
|
|
70
|
+
"auto_generate_l1": true,
|
|
71
|
+
"default_search_mode": "thinking",
|
|
72
|
+
"default_search_limit": 3,
|
|
73
|
+
"log": {
|
|
74
|
+
"level": "WARNING"
|
|
42
75
|
}
|
|
43
76
|
}
|
|
44
77
|
```
|
|
45
78
|
|
|
79
|
+
> **Important: set `embedding.max_concurrent` to at least `100`.**
|
|
80
|
+
> The default value is too low — indexing a repo will be extremely slow without this. Each file requires an embedding call, and low concurrency means they queue up one by one.
|
|
81
|
+
|
|
46
82
|
> See the [OpenViking docs](https://github.com/OpenVikingDB/OpenViking) for all supported providers.
|
|
47
83
|
|
|
48
84
|
### 3. Install OpenCode
|
package/package.json
CHANGED