A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物
Python agent-memoryfinancial-forecastingfuture-predictionknowledge-graphllmsmulti-agent-simulationpublic-opinion-analysispython3social-predictionswarm-intelligence
fix(i18n): ensure ontology names stay PascalCase regardless of language setting
ghostubborn97aa58384e43
diff --git a/backend/app/services/ontology_generator.py b/backend/app/services/ontology_generator.pyindex 316eb238..0601f3a3 100644--- a/backend/app/services/ontology_generator.py+++ b/backend/app/services/ontology_generator.py@@ -189,7 +189,8 @@ class OntologyGenerator:additional_context)- system_prompt = f"{ONTOLOGY_SYSTEM_PROMPT}\n\n{get_language_instruction()}"+ lang_instruction = get_language_instruction()+ system_prompt = f"{ONTOLOGY_SYSTEM_PROMPT}\n\n{lang_instruction}\nIMPORTANT: Entity type names MUST be in English PascalCase (e.g., 'PersonEntity', 'MediaOrganization'). Relationship type names MUST be in English UPPER_SNAKE_CASE (e.g., 'WORKS_FOR'). Attribute names MUST be in English snake_case. Only description fields and analysis_summary should use the specified language above."messages = [{"role": "system", "content": system_prompt},{"role": "user", "content": user_message}