Skip to content

Commit e8c5849

Browse files
committed
Add rag_service
1 parent 32462fb commit e8c5849

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

‎lua/plugins/avante.lua‎

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ return function()
1010
auto_suggestions_provider = "copilot",
1111
providers = {
1212
copilot = {
13-
-- model = "claude-3.7-sonnet",
14-
model = "claude-sonnet-4",
15-
extra_request_body = {max_tokens = 655360}
16-
-- proxy = "http://192.168.1.69:6152"
13+
-- model = "gpt-5",
14+
model = "claude-3.7-sonnet",
15+
-- model = "claude-sonnet-4",
16+
extra_request_body = {max_tokens = 655360},
17+
-- proxy = "http://192.168.1.69:6152",
1718
-- allow_insecure = true,
1819
},
1920
openai = {
@@ -58,7 +59,27 @@ return function()
5859
auto_suggestions = false,
5960
enable_token_counting = false -- counting token can be very slow
6061
},
61-
suggestion = {debounce = 600, throttle = 600}
62+
suggestion = {debounce = 600, throttle = 600},
63+
rag_service = {
64+
enabled = true,
65+
runner = "docker",
66+
docker_extra_args = "-v /mnt/bigfoot/tianxj_workspace:/mnt/bigfoot/tianxj_workspace -v /mnt/bigfoot/tianxj_hive:/mnt/bigfoot/tianxj_hive",
67+
llm = {
68+
provider = "dashscope",
69+
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1",
70+
api_key = "DASHSCOPE_API_KEY",
71+
model = "qwen-plus",
72+
},
73+
embed = {
74+
provider = "dashscope",
75+
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1",
76+
api_key = "DASHSCOPE_API_KEY",
77+
model = "text-embedding-v3",
78+
extra = { -- Extra configuration options for the Embedding model (optional)
79+
embed_batch_size = 10,
80+
},
81+
},
82+
},
6283
})
6384

6485
-- Register keymappings

0 commit comments

Comments
 (0)