diff --git a/dsRag/Dao/KbDao.py b/dsRag/Dao/KbDao.py
index fa7439f9..6fb3e6b4 100644
--- a/dsRag/Dao/KbDao.py
+++ b/dsRag/Dao/KbDao.py
@@ -8,12 +8,11 @@ class KbDao:
self.logger = logging.getLogger(__name__)
async def create_kb(self, kb: Dict) -> int:
- """创建知识库"""
async with self.mysql_pool.acquire() as conn:
async with conn.cursor(DictCursor) as cur:
await cur.execute(
- "INSERT INTO t_ai_kb(name, description) VALUES(%s, %s)",
- (kb['name'], kb['description']))
+ "INSERT INTO t_ai_kb(kb_name, short_name) VALUES(%s, %s)",
+ (kb['name'], kb.get('description', '')))
await conn.commit()
return cur.lastrowid
diff --git a/dsRag/Dao/__pycache__/KbDao.cpython-310.pyc b/dsRag/Dao/__pycache__/KbDao.cpython-310.pyc
index 773e58a4..b059fd82 100644
Binary files a/dsRag/Dao/__pycache__/KbDao.cpython-310.pyc and b/dsRag/Dao/__pycache__/KbDao.cpython-310.pyc differ
diff --git a/dsRag/Static/index.html b/dsRag/Static/index.html
index 3b649828..739cc31d 100644
--- a/dsRag/Static/index.html
+++ b/dsRag/Static/index.html
@@ -3,100 +3,126 @@
知识库管理系统
+
-