-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopencode-rag.json
More file actions
129 lines (129 loc) · 2.59 KB
/
Copy pathopencode-rag.json
File metadata and controls
129 lines (129 loc) · 2.59 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"embedding": {
"provider": "ollama",
"baseUrl": "http://localhost:11434/api",
"model": "qwen3-embedding:0.6b",
"timeoutMs": 60000,
"documentPrefix": "",
"queryPrefix": ""
},
"indexing": {
"includeExtensions": [
".ts",
".tsx",
".js",
".jsx",
".mjs",
".cjs",
".py",
".java",
".go",
".md",
".mdx",
".c",
".h",
".cpp",
".cc",
".cxx",
".hpp",
".hxx",
".cs",
".aspx",
".razor",
".cshtml",
".json",
".html",
".htm",
".css",
".xml",
".csproj",
".sln",
".rs",
".rb",
".kt",
".kts",
".swift",
".tex",
".pdf",
".docx",
".doc",
".xls",
".xlsx",
".png",
".jpg",
".jpeg",
".gif",
".bmp",
".svg",
".webp"
],
"excludeDirs": [
"node_modules",
".git",
".opencode",
"dist",
"build",
"__pycache__",
".venv",
".github"
],
"chunkOverlap": 0,
"minFileSizeBytes": 0
},
"vectorStore": {
"path": "./.opencode/rag_db"
},
"retrieval": {
"topK": 10,
"minScore": 0.1,
"hybridSearch": {
"enabled": true,
"keywordWeight": 0.4
}
},
"openCode": {
"enabled": true,
"maxContextChunks": 20,
"readOverride": true,
"autoIndex": {
"enabled": false,
"debounceMs": 2000,
"intervalMs": 300000
},
"autoInject": {
"enabled": true,
"minScore": 0.85,
"maxChunks": 10,
"maxTokens": 2000,
"contentType": "file_paths"
}
},
"imageDescription": {
"enabled": true,
"provider": "ollama",
"model": "minicpm-v4.6:latest",
"baseUrl": "http://localhost:11434/api",
"timeoutMs": 60000,
"think": true,
"numCtx": 4096,
"prompt": "Describe this image precisely and concisely: what it shows, any text content, layout, colors, objects, and purpose. Maximum 40 words. Start with \"Image of ...\" and always mention that this is an image file."
},
"description": {
"enabled": true,
"provider": "ollama",
"baseUrl": "http://localhost:11434/api",
"model": "qwen2.5:3b",
"think": false,
"numCtx": 4096,
"timeoutMs": 60000,
"systemPrompt": "Describe code precise and concise in 2 sentences. Maximum 20 words. Focus on functionality and purpose."
},
"logging": {
"level": "debug",
"logFilePath": "./.opencode/opencode-rag.log"
},
"tui": {
"fileListKeybinding": "ctrl+enter",
"chunksKeybinding": "ctrl+alt+enter"
}
}