From ff879fd21cb4e8e768b81cbec63dacee00c462f0 Mon Sep 17 00:00:00 2001 From: "xianzhe.xxz" Date: Tue, 18 Jun 2024 18:44:11 +0800 Subject: [PATCH] update model config --- config/db/es.json | 5 ++++- config/model/dash_embedding.json | 3 ++- config/model/dash_llm.json | 4 ++++ config/model/dash_reranker.json | 5 +++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 config/model/dash_llm.json create mode 100644 config/model/dash_reranker.json diff --git a/config/db/es.json b/config/db/es.json index 7a73a41b..6d33248b 100644 --- a/config/db/es.json +++ b/config/db/es.json @@ -1,2 +1,5 @@ { -} \ No newline at end of file + "index_name": "test_index", + "es_url": "http://localhost:9200" +} + diff --git a/config/model/dash_embedding.json b/config/model/dash_embedding.json index 0e0dcd23..8ceaf9b5 100644 --- a/config/model/dash_embedding.json +++ b/config/model/dash_embedding.json @@ -1,3 +1,4 @@ { - + "method": "DashScopeEmbedding", + "model_name": "text-embedding-v2" } \ No newline at end of file diff --git a/config/model/dash_llm.json b/config/model/dash_llm.json new file mode 100644 index 00000000..07745be9 --- /dev/null +++ b/config/model/dash_llm.json @@ -0,0 +1,4 @@ +{ + "method": "DashScope", + "model_name": "qwen-max" +} \ No newline at end of file diff --git a/config/model/dash_reranker.json b/config/model/dash_reranker.json new file mode 100644 index 00000000..b0f5593c --- /dev/null +++ b/config/model/dash_reranker.json @@ -0,0 +1,5 @@ +{ + "method": "DashScopeRerank", + "model_name": "gte-rerank", + "top_n": 3 +} \ No newline at end of file