diff --git a/dsAi/.idea/.gitignore b/dsAi/.idea/.gitignore
new file mode 100644
index 00000000..a7cdac76
--- /dev/null
+++ b/dsAi/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/dsAi/.idea/compiler.xml b/dsAi/.idea/compiler.xml
new file mode 100644
index 00000000..f9b1efda
--- /dev/null
+++ b/dsAi/.idea/compiler.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/.idea/encodings.xml b/dsAi/.idea/encodings.xml
new file mode 100644
index 00000000..a156f529
--- /dev/null
+++ b/dsAi/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/.idea/inspectionProfiles/Project_Default.xml b/dsAi/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000..03d9549e
--- /dev/null
+++ b/dsAi/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/.idea/inspectionProfiles/profiles_settings.xml b/dsAi/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 00000000..105ce2da
--- /dev/null
+++ b/dsAi/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/.idea/jarRepositories.xml b/dsAi/.idea/jarRepositories.xml
new file mode 100644
index 00000000..e5a91823
--- /dev/null
+++ b/dsAi/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/.idea/misc.xml b/dsAi/.idea/misc.xml
new file mode 100644
index 00000000..158c04b5
--- /dev/null
+++ b/dsAi/.idea/misc.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/.idea/vcs.xml b/dsAi/.idea/vcs.xml
new file mode 100644
index 00000000..2e3f6920
--- /dev/null
+++ b/dsAi/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dsAi/src/main/java/com/dsideal/Ai/Util/JiMeng/Doc/文档.md b/dsAi/src/main/java/com/dsideal/Ai/Util/JiMeng/Doc/文档.md
new file mode 100644
index 00000000..619442f4
--- /dev/null
+++ b/dsAi/src/main/java/com/dsideal/Ai/Util/JiMeng/Doc/文档.md
@@ -0,0 +1,28 @@
+### 火山引擎
+
+账号:18686619970
+密码:短信验证码
+
+
+
+```
+// API访问凭证
+protected static final String ak="AKLTZjVlOGU1NzA1YWZkNDExMzkzYzY5YTNlOTRmMTMxODg"; // Access Key
+protected static final String sk="WkdabU9UTXdNVEJpTmpWbE5HVTJZVGxtTnpWbU5XSTBaRGN5TW1NMk5tRQ=="; // Secret Key
+```
+
+
+
+#### 使用内容
+
+1. 即梦AI
+
+ https://www.volcengine.com/docs/85621/1544716
+
+
+
+2. 视觉识别模型
+
+ 开发拍照解题APP,推荐使用**doubao-seed-1-6-thinking(版本250715)** 或 **doubao-1-5-thinking-vision-pro(版本250428)**,二者均支持图像理解与深度推理,可精准解析题目并生成解题步骤。
+
+
\ No newline at end of file
diff --git a/dsLightRag/Routes/Knowledge.py b/dsLightRag/Routes/Knowledge.py
index d8a78f38..f7058ddd 100644
--- a/dsLightRag/Routes/Knowledge.py
+++ b/dsLightRag/Routes/Knowledge.py
@@ -37,7 +37,7 @@ async def get_tree_data(request: fastapi.Request):
prerequisites = prerequisite_data
else:
# 转换为新格式
- prerequisites = [{{"id": str(id), "title": title}} for id, title in (prerequisite_data or [])] if prerequisite_data else None
+ prerequisites = [{"id": str(id), "title": title} for id, title in (prerequisite_data or [])] if prerequisite_data else None
related_data = json.loads(row[5]) if row[5] else []
# 转换相关知识格式
@@ -46,9 +46,9 @@ async def get_tree_data(request: fastapi.Request):
related = related_data
else:
# 转换为新格式
- related = [{{"id": str(id), "title": title}} for id, title in (related_data or [])] if related_data else None
+ related = [{"id": str(id), "title": title} for id, title in (related_data or [])] if related_data else None
- node = {{
+ node = {
"id": row[0],
"title": row[1],
"parent_id": row[2],
@@ -56,7 +56,7 @@ async def get_tree_data(request: fastapi.Request):
"prerequisite": prerequisites,
"related": related,
"children": []
- }}
+ }
nodes[row[0]] = node
# 构建树结构
@@ -71,9 +71,9 @@ async def get_tree_data(request: fastapi.Request):
nodes[parent_id]["children"] = []
nodes[parent_id]["children"].append(node)
- return {{"code": 0, "data": tree_data}}
+ return {"code": 0, "data": tree_data}
except Exception as e:
- return {{"code": 1, "msg": str(e)}}
+ return {"code": 1, "msg": str(e)}
# 更新知识节点接口
@router.post("/update-knowledge")
@@ -96,7 +96,7 @@ async def update_knowledge(request: Request):
WHERE id = $2
""",
json.dumps(
- [{{"id": p["id"], "title": p["title"]}} for p in knowledge],
+ [{"id": p["id"], "title": p["title"]} for p in knowledge],
ensure_ascii=False
),
node_id)
@@ -107,11 +107,11 @@ async def update_knowledge(request: Request):
WHERE id = $2
""",
json.dumps(
- [{{"id": p["id"], "title": p["title"]}} for p in knowledge],
+ [{"id": p["id"], "title": p["title"]} for p in knowledge],
ensure_ascii=False
),
node_id)
- return {{"code": 0, "msg": "更新成功"}}
+ return {"code": 0, "msg": "更新成功"}
except Exception as e:
- return {{"code": 1, "msg": str(e)}}
\ No newline at end of file
+ return {"code": 1, "msg": str(e)}
\ No newline at end of file
diff --git a/dsLightRag/absolute/dsWork/dsProject/dsLightRag/static/deepseek_fulishiyanshi_iframe.html b/dsLightRag/absolute/dsWork/dsProject/dsLightRag/static/deepseek_fulishiyanshi_iframe.html
deleted file mode 100644
index b80751a1..00000000
--- a/dsLightRag/absolute/dsWork/dsProject/dsLightRag/static/deepseek_fulishiyanshi_iframe.html
+++ /dev/null
@@ -1,406 +0,0 @@
-
-
-
-
-
- 浮力AI助手
-
-
-
-
-
-
-
-
-
-
-
-
您好!我是浮力AI助手,可以帮助您理解浮力相关的物理知识。请随时提问,我会尽力为您解答。
-
-
-
推荐问题:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dsLightRag/absolute/path/to/Test101.py b/dsLightRag/absolute/path/to/Test101.py
deleted file mode 100644
index 6d95d347..00000000
--- a/dsLightRag/absolute/path/to/Test101.py
+++ /dev/null
@@ -1,14 +0,0 @@
-SYSTEM_PROMPT_TEMPLATE="""
-# 数学解题助手规则(必须严格遵守)
-
-1. 【核心要求】必须使用初中生知识范围内可以理解的方法解题,绝对禁止使用向量、微积分、复数等高中及以上数学知识。
-2. 如果是动点问题要注意可能有多个解。
-3. 使用简单易懂的语言,将复杂问题分解成简单的步骤。
-4. 引导学生思考,而不是直接给出答案。
-
-# 角色信息
-- language: 中文
-- description: 数学解题助手是一个专门为初中生提供数学问题解答的角色。
-- expertise: 初中数学解题、数学教育
-- target_audience: 初中生
-"""
\ No newline at end of file