Phase 1+2: Rename CrowdSight + fix Thai vocabulary
Phase 1: Rename MiroFish → CrowdSight across all files - 39 files, 114+ occurrences replaced - Frontend, backend, locales, config, README, docker-compose Phase 2: Fix difficult Thai vocabulary - เมล็ดพันธุ์แห่งความจริง → ข้อมูลตั้งต้น - สกัดเอนทิตี → ดึงตัวละคร - ฉีดความจำ → เพิ่มความจำ - ออนโทโลยี → โครงสร้างข้อมูล - เอนทิตี → ตัวละคร - พลวัตกลุ่ม → พฤติกรรมกลุ่ม - โลกคู่ขนาน → โลกจำลอง Only string changes, no logic changes.
This commit is contained in:
@@ -20,7 +20,7 @@ from ..models.task import TaskManager, TaskStatus
|
||||
from ..models.project import ProjectManager, ProjectStatus
|
||||
|
||||
# 获取日志器
|
||||
logger = get_logger('mirofish.api')
|
||||
logger = get_logger('crowdsight.api')
|
||||
|
||||
|
||||
def allowed_file(filename: str) -> bool:
|
||||
@@ -337,7 +337,7 @@ def build_graph():
|
||||
project.error = None
|
||||
|
||||
# 获取配置
|
||||
graph_name = data.get('graph_name', project.name or 'MiroFish Graph')
|
||||
graph_name = data.get('graph_name', project.name or 'CrowdSight Graph')
|
||||
chunk_size = data.get('chunk_size', project.chunk_size or Config.DEFAULT_CHUNK_SIZE)
|
||||
chunk_overlap = data.get('chunk_overlap', project.chunk_overlap or Config.DEFAULT_CHUNK_OVERLAP)
|
||||
|
||||
@@ -377,7 +377,7 @@ def build_graph():
|
||||
# 启动后台任务
|
||||
def build_task():
|
||||
set_locale(current_locale)
|
||||
build_logger = get_logger('mirofish.build')
|
||||
build_logger = get_logger('crowdsight.build')
|
||||
try:
|
||||
build_logger.info(f"[{task_id}] 开始构建图谱...")
|
||||
task_manager.update_task(
|
||||
|
||||
@@ -17,7 +17,7 @@ from ..models.task import TaskManager, TaskStatus
|
||||
from ..utils.logger import get_logger
|
||||
from ..utils.locale import t, get_locale, set_locale
|
||||
|
||||
logger = get_logger('mirofish.api.report')
|
||||
logger = get_logger('crowdsight.api.report')
|
||||
|
||||
|
||||
# ============== 报告生成接口 ==============
|
||||
@@ -939,7 +939,7 @@ def search_graph_tool():
|
||||
|
||||
请求(JSON):
|
||||
{
|
||||
"graph_id": "mirofish_xxxx",
|
||||
"graph_id": "crowdsight_xxxx",
|
||||
"query": "搜索查询",
|
||||
"limit": 10
|
||||
}
|
||||
@@ -987,7 +987,7 @@ def get_graph_statistics_tool():
|
||||
|
||||
请求(JSON):
|
||||
{
|
||||
"graph_id": "mirofish_xxxx"
|
||||
"graph_id": "crowdsight_xxxx"
|
||||
}
|
||||
"""
|
||||
try:
|
||||
|
||||
@@ -17,7 +17,7 @@ from ..utils.logger import get_logger
|
||||
from ..utils.locale import t, get_locale, set_locale
|
||||
from ..models.project import ProjectManager
|
||||
|
||||
logger = get_logger('mirofish.api.simulation')
|
||||
logger = get_logger('crowdsight.api.simulation')
|
||||
|
||||
|
||||
# Interview prompt 优化前缀
|
||||
@@ -172,7 +172,7 @@ def create_simulation():
|
||||
请求(JSON):
|
||||
{
|
||||
"project_id": "proj_xxxx", // 必填
|
||||
"graph_id": "mirofish_xxxx", // 可选,如不提供则从project获取
|
||||
"graph_id": "crowdsight_xxxx", // 可选,如不提供则从project获取
|
||||
"enable_twitter": true, // 可选,默认true
|
||||
"enable_reddit": true // 可选,默认true
|
||||
}
|
||||
@@ -183,7 +183,7 @@ def create_simulation():
|
||||
"data": {
|
||||
"simulation_id": "sim_xxxx",
|
||||
"project_id": "proj_xxxx",
|
||||
"graph_id": "mirofish_xxxx",
|
||||
"graph_id": "crowdsight_xxxx",
|
||||
"status": "created",
|
||||
"enable_twitter": true,
|
||||
"enable_reddit": true,
|
||||
@@ -1381,7 +1381,7 @@ def generate_profiles():
|
||||
|
||||
请求(JSON):
|
||||
{
|
||||
"graph_id": "mirofish_xxxx", // 必填
|
||||
"graph_id": "crowdsight_xxxx", // 必填
|
||||
"entity_types": ["Student"], // 可选
|
||||
"use_llm": true, // 可选
|
||||
"platform": "reddit" // 可选
|
||||
|
||||
Reference in New Issue
Block a user