From 84fbebda4cb0bc4472c95636049fdc94bea62aa5 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Thu, 10 Aug 2023 10:39:52 +0800 Subject: [PATCH] feat:add knowledge argument web page --- pilot/server/knowledge/service.py | 2 +- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 .../static/chunks/207-2d692c761ec68010.js | 63 ++++++++++++++++ .../static/chunks/388-0639392dd59206df.js | 3 + ...efc3aa943a7.js => 759-92fc0713bcb724b3.js} | 0 ...147a1026461.js => 877-546903595944ff79.js} | 0 .../static/chunks/957-c96ff4de6e80d713.js | 63 ---------------- .../chunklist/page-0f2d3429fd2ed723.js | 1 + .../chunklist/page-cd9a18b737d2f31b.js | 1 - .../documents/page-15bd54399f756d3e.js | 1 + .../documents/page-8c5325d5737cf6c7.js | 1 - .../app/datastores/page-1a9284a20aa72bde.js | 1 - .../app/datastores/page-e3faa10929c9a39f.js | 1 + ...288fef1e.js => layout-0a94eba37232c629.js} | 2 +- ...a07fe28c2b.js => page-9c38e63e2d7fd44b.js} | 2 +- pilot/server/static/chat/index.html | 2 +- pilot/server/static/chat/index.txt | 6 +- .../datastores/documents/chunklist/index.html | 2 +- .../datastores/documents/chunklist/index.txt | 6 +- .../static/datastores/documents/index.html | 2 +- .../static/datastores/documents/index.txt | 6 +- pilot/server/static/datastores/index.html | 2 +- pilot/server/static/datastores/index.txt | 6 +- pilot/server/static/huggingface_logo.svg | 73 +++++++++++++++++++ pilot/server/static/index.html | 2 +- pilot/server/static/index.txt | 6 +- 29 files changed, 167 insertions(+), 91 deletions(-) rename pilot/server/static/_next/static/{Cacznp7OMpA2Ut8fcv_rl => A03tTCRMVq61CqNtuDOvh}/_buildManifest.js (100%) rename pilot/server/static/_next/static/{Cacznp7OMpA2Ut8fcv_rl => A03tTCRMVq61CqNtuDOvh}/_ssgManifest.js (100%) create mode 100644 pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js create mode 100644 pilot/server/static/_next/static/chunks/388-0639392dd59206df.js rename pilot/server/static/_next/static/chunks/{759-22c7defc3aa943a7.js => 759-92fc0713bcb724b3.js} (100%) rename pilot/server/static/_next/static/chunks/{877-cd5be147a1026461.js => 877-546903595944ff79.js} (100%) delete mode 100644 pilot/server/static/_next/static/chunks/957-c96ff4de6e80d713.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js rename pilot/server/static/_next/static/chunks/app/{layout-b589be73288fef1e.js => layout-0a94eba37232c629.js} (99%) rename pilot/server/static/_next/static/chunks/app/{page-d7bb6ba07fe28c2b.js => page-9c38e63e2d7fd44b.js} (99%) create mode 100644 pilot/server/static/huggingface_logo.svg diff --git a/pilot/server/knowledge/service.py b/pilot/server/knowledge/service.py index 60745a118..3cd7589e5 100644 --- a/pilot/server/knowledge/service.py +++ b/pilot/server/knowledge/service.py @@ -335,7 +335,7 @@ class KnowledgeService: "topk": CFG.KNOWLEDGE_SEARCH_TOP_SIZE, "recall_score": 0.0, "recall_type": "TopK", - "model": CFG.EMBEDDING_MODEL, + "model": LLM_MODEL_CONFIG[CFG.EMBEDDING_MODEL].rsplit("/", 1)[-1], "chunk_size": CFG.KNOWLEDGE_CHUNK_SIZE, "chunk_overlap": CFG.KNOWLEDGE_CHUNK_OVERLAP, }, diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index b1f90a62a..a129dad56 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -