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:
@@ -55,7 +55,7 @@ class GraphBuilderService:
|
||||
self,
|
||||
text: str,
|
||||
ontology: Dict[str, Any],
|
||||
graph_name: str = "MiroFish Graph",
|
||||
graph_name: str = "CrowdSight Graph",
|
||||
chunk_size: int = 500,
|
||||
chunk_overlap: int = 50,
|
||||
batch_size: int = 3
|
||||
@@ -192,12 +192,12 @@ class GraphBuilderService:
|
||||
|
||||
def create_graph(self, name: str) -> str:
|
||||
"""创建Zep图谱(公开方法)"""
|
||||
graph_id = f"mirofish_{uuid.uuid4().hex[:16]}"
|
||||
graph_id = f"crowdsight_{uuid.uuid4().hex[:16]}"
|
||||
|
||||
self.client.graph.create(
|
||||
graph_id=graph_id,
|
||||
name=name,
|
||||
description="MiroFish Social Simulation Graph"
|
||||
description="CrowdSight Social Simulation Graph"
|
||||
)
|
||||
|
||||
return graph_id
|
||||
|
||||
@@ -23,7 +23,7 @@ from ..utils.logger import get_logger
|
||||
from ..utils.locale import get_language_instruction, get_locale, set_locale, t
|
||||
from .zep_entity_reader import EntityNode, ZepEntityReader
|
||||
|
||||
logger = get_logger('mirofish.oasis_profile')
|
||||
logger = get_logger('crowdsight.oasis_profile')
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@@ -410,7 +410,7 @@ class OntologyGenerator:
|
||||
code_lines = [
|
||||
'"""',
|
||||
'自定义实体类型定义',
|
||||
'由MiroFish自动生成,用于社会舆论模拟',
|
||||
'Auto-generated by CrowdSight,用于社会舆论模拟',
|
||||
'"""',
|
||||
'',
|
||||
'from pydantic import Field',
|
||||
|
||||
@@ -30,7 +30,7 @@ from .zep_tools import (
|
||||
InterviewResult
|
||||
)
|
||||
|
||||
logger = get_logger('mirofish.report_agent')
|
||||
logger = get_logger('crowdsight.report_agent')
|
||||
|
||||
|
||||
class ReportLogger:
|
||||
@@ -353,8 +353,8 @@ class ReportConsoleLogger:
|
||||
|
||||
# 添加到 report_agent 相关的 logger
|
||||
loggers_to_attach = [
|
||||
'mirofish.report_agent',
|
||||
'mirofish.zep_tools',
|
||||
'crowdsight.report_agent',
|
||||
'crowdsight.zep_tools',
|
||||
]
|
||||
|
||||
for logger_name in loggers_to_attach:
|
||||
@@ -369,8 +369,8 @@ class ReportConsoleLogger:
|
||||
|
||||
if self._file_handler:
|
||||
loggers_to_detach = [
|
||||
'mirofish.report_agent',
|
||||
'mirofish.zep_tools',
|
||||
'crowdsight.report_agent',
|
||||
'crowdsight.zep_tools',
|
||||
]
|
||||
|
||||
for logger_name in loggers_to_detach:
|
||||
|
||||
@@ -23,7 +23,7 @@ from ..utils.logger import get_logger
|
||||
from ..utils.locale import get_language_instruction, t
|
||||
from .zep_entity_reader import EntityNode, ZepEntityReader
|
||||
|
||||
logger = get_logger('mirofish.simulation_config')
|
||||
logger = get_logger('crowdsight.simulation_config')
|
||||
|
||||
# 中国作息时间配置(北京时间)
|
||||
CHINA_TIMEZONE_CONFIG = {
|
||||
|
||||
@@ -19,7 +19,7 @@ from enum import Enum
|
||||
|
||||
from ..utils.logger import get_logger
|
||||
|
||||
logger = get_logger('mirofish.simulation_ipc')
|
||||
logger = get_logger('crowdsight.simulation_ipc')
|
||||
|
||||
|
||||
class CommandType(str, Enum):
|
||||
|
||||
@@ -19,7 +19,7 @@ from .oasis_profile_generator import OasisProfileGenerator, OasisAgentProfile
|
||||
from .simulation_config_generator import SimulationConfigGenerator, SimulationParameters
|
||||
from ..utils.locale import t
|
||||
|
||||
logger = get_logger('mirofish.simulation')
|
||||
logger = get_logger('crowdsight.simulation')
|
||||
|
||||
|
||||
class SimulationStatus(str, Enum):
|
||||
@@ -520,7 +520,7 @@ class SimulationManager:
|
||||
"parallel": f"python {scripts_dir}/run_parallel_simulation.py --config {config_path}",
|
||||
},
|
||||
"instructions": (
|
||||
f"1. 激活conda环境: conda activate MiroFish\n"
|
||||
f"1. 激活conda环境: conda activate CrowdSight\n"
|
||||
f"2. 运行模拟 (脚本位于 {scripts_dir}):\n"
|
||||
f" - 单独运行Twitter: python {scripts_dir}/run_twitter_simulation.py --config {config_path}\n"
|
||||
f" - 单独运行Reddit: python {scripts_dir}/run_reddit_simulation.py --config {config_path}\n"
|
||||
|
||||
@@ -24,7 +24,7 @@ from ..utils.locale import get_locale, set_locale
|
||||
from .zep_graph_memory_updater import ZepGraphMemoryManager
|
||||
from .simulation_ipc import SimulationIPCClient, CommandType, IPCResponse
|
||||
|
||||
logger = get_logger('mirofish.simulation_runner')
|
||||
logger = get_logger('crowdsight.simulation_runner')
|
||||
|
||||
# 标记是否已注册清理函数
|
||||
_cleanup_registered = False
|
||||
|
||||
@@ -13,7 +13,7 @@ from ..config import Config
|
||||
from ..utils.logger import get_logger
|
||||
from ..utils.zep_paging import fetch_all_nodes, fetch_all_edges
|
||||
|
||||
logger = get_logger('mirofish.zep_entity_reader')
|
||||
logger = get_logger('crowdsight.zep_entity_reader')
|
||||
|
||||
# 用于泛型返回类型
|
||||
T = TypeVar('T')
|
||||
|
||||
@@ -18,7 +18,7 @@ from ..config import Config
|
||||
from ..utils.logger import get_logger
|
||||
from ..utils.locale import get_locale, set_locale
|
||||
|
||||
logger = get_logger('mirofish.zep_graph_memory_updater')
|
||||
logger = get_logger('crowdsight.zep_graph_memory_updater')
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@@ -21,7 +21,7 @@ from ..utils.llm_client import LLMClient
|
||||
from ..utils.locale import get_locale, t
|
||||
from ..utils.zep_paging import fetch_all_nodes, fetch_all_edges
|
||||
|
||||
logger = get_logger('mirofish.zep_tools')
|
||||
logger = get_logger('crowdsight.zep_tools')
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user