MaiBot 1.3.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (716) hide show
  1. maibot-1.3.8.dist-info/METADATA +245 -0
  2. maibot-1.3.8.dist-info/RECORD +716 -0
  3. maibot-1.3.8.dist-info/WHEEL +5 -0
  4. maibot-1.3.8.dist-info/entry_points.txt +2 -0
  5. maibot-1.3.8.dist-info/licenses/LICENSE +674 -0
  6. maibot-1.3.8.dist-info/top_level.txt +1 -0
  7. src/A_memorix/LICENSE +661 -0
  8. src/A_memorix/LICENSE-MAIBOT-GPL.md +22 -0
  9. src/A_memorix/__init__.py +5 -0
  10. src/A_memorix/config_schema.json +1640 -0
  11. src/A_memorix/core/__init__.py +83 -0
  12. src/A_memorix/core/embedding/__init__.py +17 -0
  13. src/A_memorix/core/embedding/api_adapter.py +650 -0
  14. src/A_memorix/core/embedding/manager.py +506 -0
  15. src/A_memorix/core/embedding/presets.py +68 -0
  16. src/A_memorix/core/image/__init__.py +6 -0
  17. src/A_memorix/core/image/asset_store.py +141 -0
  18. src/A_memorix/core/image/component_paths.py +36 -0
  19. src/A_memorix/core/image/embedder.py +129 -0
  20. src/A_memorix/core/image/fingerprints.py +36 -0
  21. src/A_memorix/core/image/runtime.py +900 -0
  22. src/A_memorix/core/retrieval/__init__.py +66 -0
  23. src/A_memorix/core/retrieval/dual_path.py +3272 -0
  24. src/A_memorix/core/retrieval/graph_relation_recall.py +285 -0
  25. src/A_memorix/core/retrieval/pagerank.py +471 -0
  26. src/A_memorix/core/retrieval/posterior_graph.py +787 -0
  27. src/A_memorix/core/retrieval/score_calibration.py +180 -0
  28. src/A_memorix/core/retrieval/sparse_bm25.py +717 -0
  29. src/A_memorix/core/retrieval/threshold.py +404 -0
  30. src/A_memorix/core/runtime/__init__.py +26 -0
  31. src/A_memorix/core/runtime/admin_contracts.py +293 -0
  32. src/A_memorix/core/runtime/kernel_compat.py +269 -0
  33. src/A_memorix/core/runtime/lifecycle_orchestrator.py +368 -0
  34. src/A_memorix/core/runtime/models.py +27 -0
  35. src/A_memorix/core/runtime/runtime_facade.py +141 -0
  36. src/A_memorix/core/runtime/runtime_writer_lock.py +105 -0
  37. src/A_memorix/core/runtime/sdk_memory_kernel.py +1907 -0
  38. src/A_memorix/core/runtime/search_runtime_initializer.py +290 -0
  39. src/A_memorix/core/runtime/services/__init__.py +63 -0
  40. src/A_memorix/core/runtime/services/background_task_service.py +477 -0
  41. src/A_memorix/core/runtime/services/base.py +28 -0
  42. src/A_memorix/core/runtime/services/bundle_admin_service.py +2200 -0
  43. src/A_memorix/core/runtime/services/chat_filter_service.py +88 -0
  44. src/A_memorix/core/runtime/services/correction_admin_service.py +1274 -0
  45. src/A_memorix/core/runtime/services/delete_admin_service.py +2018 -0
  46. src/A_memorix/core/runtime/services/dual_vector_migration_service.py +109 -0
  47. src/A_memorix/core/runtime/services/dual_vector_state_service.py +503 -0
  48. src/A_memorix/core/runtime/services/embedding_state_service.py +515 -0
  49. src/A_memorix/core/runtime/services/episode_admin_service.py +104 -0
  50. src/A_memorix/core/runtime/services/fact_admin_service.py +199 -0
  51. src/A_memorix/core/runtime/services/feedback_correction_service.py +1523 -0
  52. src/A_memorix/core/runtime/services/graph_admin_service.py +1521 -0
  53. src/A_memorix/core/runtime/services/image_service.py +158 -0
  54. src/A_memorix/core/runtime/services/import_tuning_admin_service.py +158 -0
  55. src/A_memorix/core/runtime/services/ingest_service.py +787 -0
  56. src/A_memorix/core/runtime/services/memory_maintenance_service.py +404 -0
  57. src/A_memorix/core/runtime/services/memory_search_service.py +373 -0
  58. src/A_memorix/core/runtime/services/profile_admin_service.py +646 -0
  59. src/A_memorix/core/runtime/services/request_dedup_service.py +34 -0
  60. src/A_memorix/core/runtime/services/runtime_config_service.py +94 -0
  61. src/A_memorix/core/runtime/services/runtime_dependency_service.py +105 -0
  62. src/A_memorix/core/runtime/services/runtime_lifecycle_service.py +409 -0
  63. src/A_memorix/core/runtime/services/search_hit_processing_service.py +891 -0
  64. src/A_memorix/core/runtime/services/source_admin_service.py +52 -0
  65. src/A_memorix/core/runtime/services/stats_service.py +35 -0
  66. src/A_memorix/core/runtime/services/summary_service.py +50 -0
  67. src/A_memorix/core/runtime/services/v5_admin_service.py +326 -0
  68. src/A_memorix/core/runtime/services/vector_delete_service.py +30 -0
  69. src/A_memorix/core/runtime/services/vector_rebuild_checkpoint.py +65 -0
  70. src/A_memorix/core/runtime/services/vector_recovery_service.py +460 -0
  71. src/A_memorix/core/runtime/services/vector_runtime_service.py +1417 -0
  72. src/A_memorix/core/runtime/services/vector_space_service.py +251 -0
  73. src/A_memorix/core/storage/__init__.py +62 -0
  74. src/A_memorix/core/storage/format_migration.py +676 -0
  75. src/A_memorix/core/storage/graph_store.py +1733 -0
  76. src/A_memorix/core/storage/knowledge_types.py +183 -0
  77. src/A_memorix/core/storage/metadata_cleanup.py +913 -0
  78. src/A_memorix/core/storage/metadata_episode.py +1659 -0
  79. src/A_memorix/core/storage/metadata_fact.py +1410 -0
  80. src/A_memorix/core/storage/metadata_feedback.py +745 -0
  81. src/A_memorix/core/storage/metadata_fts.py +937 -0
  82. src/A_memorix/core/storage/metadata_image.py +1076 -0
  83. src/A_memorix/core/storage/metadata_profile.py +782 -0
  84. src/A_memorix/core/storage/metadata_schema.py +2503 -0
  85. src/A_memorix/core/storage/metadata_store.py +4565 -0
  86. src/A_memorix/core/storage/sqlite_connection.py +176 -0
  87. src/A_memorix/core/storage/tokenizer_runtime.py +9 -0
  88. src/A_memorix/core/storage/transaction.py +42 -0
  89. src/A_memorix/core/storage/type_detection.py +137 -0
  90. src/A_memorix/core/storage/value_coercion.py +10 -0
  91. src/A_memorix/core/storage/vector_store.py +2851 -0
  92. src/A_memorix/core/strategies/__init__.py +0 -0
  93. src/A_memorix/core/strategies/base.py +92 -0
  94. src/A_memorix/core/strategies/chat_log.py +80 -0
  95. src/A_memorix/core/strategies/factual.py +104 -0
  96. src/A_memorix/core/strategies/narrative.py +148 -0
  97. src/A_memorix/core/strategies/quote.py +47 -0
  98. src/A_memorix/core/utils/__init__.py +33 -0
  99. src/A_memorix/core/utils/aggregate_query_service.py +359 -0
  100. src/A_memorix/core/utils/episode_retrieval_service.py +222 -0
  101. src/A_memorix/core/utils/episode_segmentation_service.py +322 -0
  102. src/A_memorix/core/utils/episode_service.py +646 -0
  103. src/A_memorix/core/utils/feedback_policy.py +149 -0
  104. src/A_memorix/core/utils/hash.py +128 -0
  105. src/A_memorix/core/utils/import_payloads.py +222 -0
  106. src/A_memorix/core/utils/io.py +85 -0
  107. src/A_memorix/core/utils/matcher.py +175 -0
  108. src/A_memorix/core/utils/memory_lifecycle_policy.py +336 -0
  109. src/A_memorix/core/utils/metadata.py +11 -0
  110. src/A_memorix/core/utils/model_routing.py +239 -0
  111. src/A_memorix/core/utils/monitor.py +188 -0
  112. src/A_memorix/core/utils/path_fallback_service.py +182 -0
  113. src/A_memorix/core/utils/person_profile_service.py +1277 -0
  114. src/A_memorix/core/utils/plugin_id_policy.py +26 -0
  115. src/A_memorix/core/utils/profile_evidence.py +25 -0
  116. src/A_memorix/core/utils/profile_policy.py +45 -0
  117. src/A_memorix/core/utils/profile_text.py +204 -0
  118. src/A_memorix/core/utils/quantization.py +343 -0
  119. src/A_memorix/core/utils/relation_query.py +121 -0
  120. src/A_memorix/core/utils/relation_write_service.py +504 -0
  121. src/A_memorix/core/utils/retrieval_tuning_manager.py +2369 -0
  122. src/A_memorix/core/utils/runtime_payloads.py +132 -0
  123. src/A_memorix/core/utils/runtime_self_check.py +303 -0
  124. src/A_memorix/core/utils/search_execution_service.py +445 -0
  125. src/A_memorix/core/utils/search_postprocess.py +91 -0
  126. src/A_memorix/core/utils/summary_importer.py +991 -0
  127. src/A_memorix/core/utils/time_parser.py +156 -0
  128. src/A_memorix/core/utils/web_import_manager.py +4511 -0
  129. src/A_memorix/host_service.py +1018 -0
  130. src/A_memorix/paths.py +58 -0
  131. src/A_memorix/plugin.py +321 -0
  132. src/A_memorix/runtime_registry.py +30 -0
  133. src/A_memorix/scripts/_bootstrap.py +22 -0
  134. src/A_memorix/scripts/audit_vector_consistency.py +205 -0
  135. src/A_memorix/scripts/backfill_relation_vectors.py +265 -0
  136. src/A_memorix/scripts/backfill_temporal_metadata.py +67 -0
  137. src/A_memorix/scripts/convert_lpmm.py +537 -0
  138. src/A_memorix/scripts/import_lpmm_json.py +189 -0
  139. src/A_memorix/scripts/migrate_chat_history.py +101 -0
  140. src/A_memorix/scripts/migrate_maibot_memory.py +1955 -0
  141. src/A_memorix/scripts/migrate_person_memory_points.py +113 -0
  142. src/A_memorix/scripts/process_knowledge.py +831 -0
  143. src/A_memorix/scripts/rebuild_episodes.py +207 -0
  144. src/A_memorix/scripts/release_vnext_migrate.py +875 -0
  145. src/A_memorix/scripts/runtime_self_check.py +144 -0
  146. src/__init__.py +14 -0
  147. src/_resources/EULA.md +135 -0
  148. src/_resources/PRIVACY.md +60 -0
  149. src/_resources/changelogs/changelog.md +918 -0
  150. src/_resources/locales/en-US/config.json +39 -0
  151. src/_resources/locales/en-US/core.json +8 -0
  152. src/_resources/locales/en-US/prompts.json +8 -0
  153. src/_resources/locales/en-US/startup.json +98 -0
  154. src/_resources/locales/ja-JP/config.json +39 -0
  155. src/_resources/locales/ja-JP/core.json +8 -0
  156. src/_resources/locales/ja-JP/prompts.json +8 -0
  157. src/_resources/locales/ja-JP/startup.json +98 -0
  158. src/_resources/locales/ko/config.json +39 -0
  159. src/_resources/locales/ko/core.json +8 -0
  160. src/_resources/locales/ko/prompts.json +8 -0
  161. src/_resources/locales/ko/startup.json +98 -0
  162. src/_resources/locales/zh-CN/config.json +39 -0
  163. src/_resources/locales/zh-CN/core.json +8 -0
  164. src/_resources/locales/zh-CN/prompts.json +8 -0
  165. src/_resources/locales/zh-CN/startup.json +98 -0
  166. src/_resources/prompts/en-US/.meta.toml +164 -0
  167. src/_resources/prompts/en-US/a_memorix_chat_summary.prompt +45 -0
  168. src/_resources/prompts/en-US/emoji_content_analysis.prompt +3 -0
  169. src/_resources/prompts/en-US/emoji_content_filtration.prompt +6 -0
  170. src/_resources/prompts/en-US/emoji_replace.prompt +12 -0
  171. src/_resources/prompts/en-US/emoji_selection.prompt +6 -0
  172. src/_resources/prompts/en-US/expression_evaluation.prompt +14 -0
  173. src/_resources/prompts/en-US/heuristic_memory_impression.prompt +15 -0
  174. src/_resources/prompts/en-US/image_description.prompt +1 -0
  175. src/_resources/prompts/en-US/jargon_compare_inference.prompt +14 -0
  176. src/_resources/prompts/en-US/jargon_inference_content_only.prompt +11 -0
  177. src/_resources/prompts/en-US/jargon_inference_with_context.prompt +19 -0
  178. src/_resources/prompts/en-US/learn_jargon.prompt +31 -0
  179. src/_resources/prompts/en-US/learn_style.prompt +28 -0
  180. src/_resources/prompts/en-US/maisaka_chat.prompt +28 -0
  181. src/_resources/prompts/en-US/maisaka_chat_focus.prompt +39 -0
  182. src/_resources/prompts/en-US/maisaka_chat_optimized.prompt +19 -0
  183. src/_resources/prompts/en-US/maisaka_replyer.prompt +10 -0
  184. src/_resources/prompts/en-US/memory_fuzzy_modify_plan.prompt +45 -0
  185. src/_resources/prompts/en-US/mid_term_memory_summary.prompt +10 -0
  186. src/_resources/prompts/en-US/reply_attachments.prompt +3 -0
  187. src/_resources/prompts/en-US/retro_private_replyer.prompt +13 -0
  188. src/_resources/prompts/en-US/retro_private_replyer_self.prompt +13 -0
  189. src/_resources/prompts/en-US/retro_replyer.prompt +17 -0
  190. src/_resources/prompts/en-US/retro_replyer_light.prompt +17 -0
  191. src/_resources/prompts/en-US/webui_ai_search.prompt +24 -0
  192. src/_resources/prompts/en-US/webui_ai_search_correction.prompt +1 -0
  193. src/_resources/prompts/en-US/webui_ai_search_evidence.prompt +3 -0
  194. src/_resources/prompts/en-US/webui_ai_search_final.prompt +1 -0
  195. src/_resources/prompts/ja-JP/.meta.toml +164 -0
  196. src/_resources/prompts/ja-JP/a_memorix_chat_summary.prompt +45 -0
  197. src/_resources/prompts/ja-JP/emoji_content_analysis.prompt +3 -0
  198. src/_resources/prompts/ja-JP/emoji_content_filtration.prompt +6 -0
  199. src/_resources/prompts/ja-JP/emoji_replace.prompt +12 -0
  200. src/_resources/prompts/ja-JP/emoji_selection.prompt +6 -0
  201. src/_resources/prompts/ja-JP/expression_evaluation.prompt +14 -0
  202. src/_resources/prompts/ja-JP/heuristic_memory_impression.prompt +15 -0
  203. src/_resources/prompts/ja-JP/image_description.prompt +1 -0
  204. src/_resources/prompts/ja-JP/jargon_compare_inference.prompt +14 -0
  205. src/_resources/prompts/ja-JP/jargon_inference_content_only.prompt +11 -0
  206. src/_resources/prompts/ja-JP/jargon_inference_with_context.prompt +19 -0
  207. src/_resources/prompts/ja-JP/learn_jargon.prompt +31 -0
  208. src/_resources/prompts/ja-JP/learn_style.prompt +28 -0
  209. src/_resources/prompts/ja-JP/maisaka_chat.prompt +28 -0
  210. src/_resources/prompts/ja-JP/maisaka_chat_focus.prompt +39 -0
  211. src/_resources/prompts/ja-JP/maisaka_chat_optimized.prompt +19 -0
  212. src/_resources/prompts/ja-JP/maisaka_replyer.prompt +10 -0
  213. src/_resources/prompts/ja-JP/memory_fuzzy_modify_plan.prompt +45 -0
  214. src/_resources/prompts/ja-JP/mid_term_memory_summary.prompt +10 -0
  215. src/_resources/prompts/ja-JP/reply_attachments.prompt +3 -0
  216. src/_resources/prompts/ja-JP/retro_private_replyer.prompt +13 -0
  217. src/_resources/prompts/ja-JP/retro_private_replyer_self.prompt +13 -0
  218. src/_resources/prompts/ja-JP/retro_replyer.prompt +17 -0
  219. src/_resources/prompts/ja-JP/retro_replyer_light.prompt +17 -0
  220. src/_resources/prompts/ja-JP/webui_ai_search.prompt +24 -0
  221. src/_resources/prompts/ja-JP/webui_ai_search_correction.prompt +1 -0
  222. src/_resources/prompts/ja-JP/webui_ai_search_evidence.prompt +3 -0
  223. src/_resources/prompts/ja-JP/webui_ai_search_final.prompt +1 -0
  224. src/_resources/prompts/ko/.meta.toml +4 -0
  225. src/_resources/prompts/ko/reply_attachments.prompt +3 -0
  226. src/_resources/prompts/zh-CN/.meta.toml +159 -0
  227. src/_resources/prompts/zh-CN/a_memorix_chat_summary.prompt +59 -0
  228. src/_resources/prompts/zh-CN/emoji_content_analysis.prompt +3 -0
  229. src/_resources/prompts/zh-CN/emoji_content_filtration.prompt +6 -0
  230. src/_resources/prompts/zh-CN/emoji_replace.prompt +12 -0
  231. src/_resources/prompts/zh-CN/emoji_selection.prompt +6 -0
  232. src/_resources/prompts/zh-CN/expression_evaluation.prompt +14 -0
  233. src/_resources/prompts/zh-CN/heuristic_memory_impression.prompt +15 -0
  234. src/_resources/prompts/zh-CN/image_description.prompt +1 -0
  235. src/_resources/prompts/zh-CN/jargon_compare_inference.prompt +14 -0
  236. src/_resources/prompts/zh-CN/jargon_inference_content_only.prompt +11 -0
  237. src/_resources/prompts/zh-CN/jargon_inference_with_context.prompt +19 -0
  238. src/_resources/prompts/zh-CN/learn_jargon.prompt +31 -0
  239. src/_resources/prompts/zh-CN/learn_style.prompt +28 -0
  240. src/_resources/prompts/zh-CN/maisaka_chat.prompt +28 -0
  241. src/_resources/prompts/zh-CN/maisaka_chat_focus.prompt +39 -0
  242. src/_resources/prompts/zh-CN/maisaka_chat_optimized.prompt +19 -0
  243. src/_resources/prompts/zh-CN/maisaka_replyer.prompt +6 -0
  244. src/_resources/prompts/zh-CN/memory_fuzzy_modify_plan.prompt +45 -0
  245. src/_resources/prompts/zh-CN/mid_term_memory_summary.prompt +10 -0
  246. src/_resources/prompts/zh-CN/reply_attachments.prompt +3 -0
  247. src/_resources/prompts/zh-CN/retro_private_replyer.prompt +13 -0
  248. src/_resources/prompts/zh-CN/retro_private_replyer_self.prompt +13 -0
  249. src/_resources/prompts/zh-CN/retro_replyer.prompt +17 -0
  250. src/_resources/prompts/zh-CN/retro_replyer_light.prompt +17 -0
  251. src/_resources/prompts/zh-CN/webui_ai_search.prompt +24 -0
  252. src/_resources/prompts/zh-CN/webui_ai_search_correction.prompt +1 -0
  253. src/_resources/prompts/zh-CN/webui_ai_search_evidence.prompt +3 -0
  254. src/_resources/prompts/zh-CN/webui_ai_search_final.prompt +1 -0
  255. src/_resources/pyproject.toml +156 -0
  256. src/chat/__init__.py +13 -0
  257. src/chat/heart_flow/heartFC_utils.py +29 -0
  258. src/chat/heart_flow/heartflow_manager.py +138 -0
  259. src/chat/heart_flow/heartflow_message_processor.py +104 -0
  260. src/chat/image_system/image_cache_cleanup.py +300 -0
  261. src/chat/image_system/image_manager.py +516 -0
  262. src/chat/message_receive/__init__.py +5 -0
  263. src/chat/message_receive/bot.py +893 -0
  264. src/chat/message_receive/chat_manager.py +540 -0
  265. src/chat/message_receive/image_receive_compressor.py +135 -0
  266. src/chat/message_receive/message.py +546 -0
  267. src/chat/message_receive/uni_message_sender.py +332 -0
  268. src/chat/replyer/expression_vector_index.py +3176 -0
  269. src/chat/replyer/maisaka_expression_selector.py +678 -0
  270. src/chat/replyer/maisaka_generator.py +25 -0
  271. src/chat/replyer/maisaka_generator_base.py +1457 -0
  272. src/chat/replyer/replyer_manager.py +62 -0
  273. src/chat/replyer/retro_prompt.py +512 -0
  274. src/chat/utils/llm_sentence_splitter.py +151 -0
  275. src/chat/utils/statistic.py +3170 -0
  276. src/chat/utils/typo_generator.py +495 -0
  277. src/chat/utils/utils.py +922 -0
  278. src/cli/__init__.py +3 -0
  279. src/cli/bot_console.py +281 -0
  280. src/cli/console.py +17 -0
  281. src/cli/input_reader.py +55 -0
  282. src/cli/maisaka_cli.py +122 -0
  283. src/cli/maisaka_cli_sender.py +28 -0
  284. src/cli/tool.py +62 -0
  285. src/common/__init__.py +1 -0
  286. src/common/data_models/__init__.py +28 -0
  287. src/common/data_models/chat_session_data_model.py +73 -0
  288. src/common/data_models/chat_target_info_data_model.py +73 -0
  289. src/common/data_models/embedding_service_data_models.py +31 -0
  290. src/common/data_models/expression_data_model.py +83 -0
  291. src/common/data_models/image_data_model.py +247 -0
  292. src/common/data_models/jargon_data_model.py +101 -0
  293. src/common/data_models/llm_data_model.py +23 -0
  294. src/common/data_models/llm_service_data_models.py +298 -0
  295. src/common/data_models/mai_message_data_model.py +226 -0
  296. src/common/data_models/message_component_data_model.py +560 -0
  297. src/common/data_models/person_info_data_model.py +177 -0
  298. src/common/data_models/reply_generation_data_models.py +275 -0
  299. src/common/data_models/tool_record_data_model.py +51 -0
  300. src/common/database/__init__.py +0 -0
  301. src/common/database/database.py +240 -0
  302. src/common/database/database_model.py +477 -0
  303. src/common/database/migrations/__init__.py +161 -0
  304. src/common/database/migrations/behavior_generic_tags.py +532 -0
  305. src/common/database/migrations/bootstrap.py +171 -0
  306. src/common/database/migrations/builtin.py +1966 -0
  307. src/common/database/migrations/exceptions.py +33 -0
  308. src/common/database/migrations/frozen_v2_schema.py +282 -0
  309. src/common/database/migrations/legacy_v1_to_v2.py +1300 -0
  310. src/common/database/migrations/manager.py +209 -0
  311. src/common/database/migrations/models.py +305 -0
  312. src/common/database/migrations/planner.py +108 -0
  313. src/common/database/migrations/progress.py +319 -0
  314. src/common/database/migrations/registry.py +98 -0
  315. src/common/database/migrations/resolver.py +135 -0
  316. src/common/database/migrations/schema.py +98 -0
  317. src/common/database/migrations/v10_to_v11.py +60 -0
  318. src/common/database/migrations/v11_to_v12.py +92 -0
  319. src/common/database/migrations/v12_to_v13.py +42 -0
  320. src/common/database/migrations/v13_to_v14.py +55 -0
  321. src/common/database/migrations/v14_to_v15.py +44 -0
  322. src/common/database/migrations/v15_to_v16.py +39 -0
  323. src/common/database/migrations/v16_to_v17.py +66 -0
  324. src/common/database/migrations/v17_to_v18.py +64 -0
  325. src/common/database/migrations/v18_to_v19.py +355 -0
  326. src/common/database/migrations/v19_to_v20.py +169 -0
  327. src/common/database/migrations/v20_to_v21.py +149 -0
  328. src/common/database/migrations/v21_to_v22.py +343 -0
  329. src/common/database/migrations/v22_to_v23.py +114 -0
  330. src/common/database/migrations/v23_to_v24.py +465 -0
  331. src/common/database/migrations/v24_to_v25.py +96 -0
  332. src/common/database/migrations/v25_to_v26.py +32 -0
  333. src/common/database/migrations/v26_to_v27.py +86 -0
  334. src/common/database/migrations/v27_to_v28.py +185 -0
  335. src/common/database/migrations/v28_to_v29.py +80 -0
  336. src/common/database/migrations/v29_to_v30.py +217 -0
  337. src/common/database/migrations/v2_to_v3.py +269 -0
  338. src/common/database/migrations/v30_to_v31.py +323 -0
  339. src/common/database/migrations/v31_to_v32.py +250 -0
  340. src/common/database/migrations/v32_to_v33.py +84 -0
  341. src/common/database/migrations/v33_to_v34.py +119 -0
  342. src/common/database/migrations/v34_to_v35.py +68 -0
  343. src/common/database/migrations/v35_to_v36.py +35 -0
  344. src/common/database/migrations/v36_to_v37.py +54 -0
  345. src/common/database/migrations/v37_to_v38.py +95 -0
  346. src/common/database/migrations/v38_to_v39.py +85 -0
  347. src/common/database/migrations/v39_to_v40.py +53 -0
  348. src/common/database/migrations/v3_to_v4.py +155 -0
  349. src/common/database/migrations/v40_to_v41.py +23 -0
  350. src/common/database/migrations/v41_to_v42.py +44 -0
  351. src/common/database/migrations/v42_to_v43.py +29 -0
  352. src/common/database/migrations/v4_to_v5.py +77 -0
  353. src/common/database/migrations/v5_to_v6.py +51 -0
  354. src/common/database/migrations/v6_to_v7.py +164 -0
  355. src/common/database/migrations/v7_to_v8.py +73 -0
  356. src/common/database/migrations/v8_to_v9.py +313 -0
  357. src/common/database/migrations/v9_to_v10.py +53 -0
  358. src/common/database/migrations/version_store.py +57 -0
  359. src/common/embedding_identity.py +43 -0
  360. src/common/event_loop_watchdog.py +72 -0
  361. src/common/i18n/__init__.py +70 -0
  362. src/common/i18n/exceptions.py +18 -0
  363. src/common/i18n/formatting.py +29 -0
  364. src/common/i18n/loaders.py +162 -0
  365. src/common/i18n/manager.py +201 -0
  366. src/common/logger.py +1009 -0
  367. src/common/logger_color_and_mapping.py +430 -0
  368. src/common/message_repository.py +287 -0
  369. src/common/message_server/__init__.py +19 -0
  370. src/common/message_server/api.py +190 -0
  371. src/common/message_server/server.py +130 -0
  372. src/common/operation_timing.py +52 -0
  373. src/common/paths.py +32 -0
  374. src/common/process_runner.py +142 -0
  375. src/common/prompt_i18n.py +416 -0
  376. src/common/remote.py +288 -0
  377. src/common/reply_effect_fingerprint.py +119 -0
  378. src/common/reply_effect_record_codec.py +40 -0
  379. src/common/runtime_loop.py +31 -0
  380. src/common/self_update.py +580 -0
  381. src/common/shutdown.py +55 -0
  382. src/common/update_notice.py +351 -0
  383. src/common/utils/image_path.py +39 -0
  384. src/common/utils/math_utils.py +122 -0
  385. src/common/utils/port_checker.py +97 -0
  386. src/common/utils/system_utils.py +11 -0
  387. src/common/utils/utils_action.py +32 -0
  388. src/common/utils/utils_config.py +613 -0
  389. src/common/utils/utils_file.py +56 -0
  390. src/common/utils/utils_image.py +257 -0
  391. src/common/utils/utils_message.py +871 -0
  392. src/common/utils/utils_person.py +55 -0
  393. src/common/utils/utils_session.py +42 -0
  394. src/common/utils/utils_voice.py +42 -0
  395. src/common/version.py +33 -0
  396. src/config/__init__.py +0 -0
  397. src/config/config.py +927 -0
  398. src/config/config_base.py +308 -0
  399. src/config/config_upgrade_hooks.py +675 -0
  400. src/config/config_utils.py +166 -0
  401. src/config/default_model_config.py +131 -0
  402. src/config/file_watcher.py +238 -0
  403. src/config/legacy_migration.py +424 -0
  404. src/config/legacy_upgrade_confirmation.py +225 -0
  405. src/config/model_configs.py +548 -0
  406. src/config/official_configs.py +6166 -0
  407. src/config/startup_bindings.py +201 -0
  408. src/core/__init__.py +6 -0
  409. src/core/announcement_manager.py +120 -0
  410. src/core/config_types.py +273 -0
  411. src/core/event_bus.py +225 -0
  412. src/core/local_operator.py +98 -0
  413. src/core/tooling.py +420 -0
  414. src/core/types.py +423 -0
  415. src/emoji_system/emoji_cache_cleanup.py +326 -0
  416. src/emoji_system/emoji_manager.py +1314 -0
  417. src/emoji_system/maisaka_tool.py +286 -0
  418. src/learners/expression_learner.py +927 -0
  419. src/learners/expression_review_store.py +216 -0
  420. src/learners/expression_style_utils.py +32 -0
  421. src/learners/expression_utils.py +299 -0
  422. src/learners/jargon_learner.py +873 -0
  423. src/learners/jargon_miner.py +885 -0
  424. src/learners/weighted_sampling.py +75 -0
  425. src/llm_models/LICENSE +21 -0
  426. src/llm_models/__init__.py +0 -0
  427. src/llm_models/exceptions.py +140 -0
  428. src/llm_models/generation_diagnostics.py +155 -0
  429. src/llm_models/image_normalizer.py +128 -0
  430. src/llm_models/model_client/__init__.py +29 -0
  431. src/llm_models/model_client/adapter_base.py +362 -0
  432. src/llm_models/model_client/base_client.py +678 -0
  433. src/llm_models/model_client/embedding_rate_limit.py +55 -0
  434. src/llm_models/model_client/gemini_client.py +1379 -0
  435. src/llm_models/model_client/image_embedding_protocols.py +397 -0
  436. src/llm_models/model_client/openai_client.py +2200 -0
  437. src/llm_models/model_client/openai_responses_client.py +817 -0
  438. src/llm_models/model_client/plugin_client.py +307 -0
  439. src/llm_models/openai_compat.py +165 -0
  440. src/llm_models/payload_content/__init__.py +51 -0
  441. src/llm_models/payload_content/context_item.py +699 -0
  442. src/llm_models/payload_content/context_protocol.py +243 -0
  443. src/llm_models/payload_content/native_tool.py +18 -0
  444. src/llm_models/payload_content/resp_format.py +239 -0
  445. src/llm_models/payload_content/tool_option.py +547 -0
  446. src/llm_models/request_snapshot.py +1311 -0
  447. src/llm_models/utils.py +276 -0
  448. src/llm_models/utils_model.py +1604 -0
  449. src/main.py +300 -0
  450. src/maisaka/attention_drift.py +116 -0
  451. src/maisaka/builtin_tool/__init__.py +236 -0
  452. src/maisaka/builtin_tool/context.py +530 -0
  453. src/maisaka/builtin_tool/fetch_history.py +62 -0
  454. src/maisaka/builtin_tool/provider.py +74 -0
  455. src/maisaka/builtin_tool/query_image_memory.py +103 -0
  456. src/maisaka/builtin_tool/query_memory.py +335 -0
  457. src/maisaka/builtin_tool/query_person_profile.py +152 -0
  458. src/maisaka/builtin_tool/read_tool_result.py +142 -0
  459. src/maisaka/builtin_tool/reply.py +695 -0
  460. src/maisaka/builtin_tool/send_emoji.py +543 -0
  461. src/maisaka/builtin_tool/show_emoji_list.py +76 -0
  462. src/maisaka/builtin_tool/subagent.py +549 -0
  463. src/maisaka/builtin_tool/switch_chat.py +78 -0
  464. src/maisaka/builtin_tool/tool_search.py +92 -0
  465. src/maisaka/builtin_tool/view_forward_message.py +153 -0
  466. src/maisaka/builtin_tool/wait.py +77 -0
  467. src/maisaka/chat_loop_service.py +1579 -0
  468. src/maisaka/context/__init__.py +1 -0
  469. src/maisaka/context/clear_context.py +42 -0
  470. src/maisaka/context/emoji_candidates.py +36 -0
  471. src/maisaka/context/history.py +384 -0
  472. src/maisaka/context/image_attachment.py +52 -0
  473. src/maisaka/context/message_adapter.py +126 -0
  474. src/maisaka/context/message_id_alias.py +52 -0
  475. src/maisaka/context/messages.py +825 -0
  476. src/maisaka/context/planner_messages.py +199 -0
  477. src/maisaka/context/post_processor.py +204 -0
  478. src/maisaka/context/usage.py +141 -0
  479. src/maisaka/display/__init__.py +25 -0
  480. src/maisaka/display/display_utils.py +144 -0
  481. src/maisaka/display/preview_path_utils.py +64 -0
  482. src/maisaka/display/prompt_cli_renderer.py +1110 -0
  483. src/maisaka/display/prompt_preview_logger.py +603 -0
  484. src/maisaka/display/runtime_mixin.py +709 -0
  485. src/maisaka/display/stage_status_board.py +129 -0
  486. src/maisaka/focus/__init__.py +10 -0
  487. src/maisaka/focus/manager.py +442 -0
  488. src/maisaka/focus/runtime_mixin.py +753 -0
  489. src/maisaka/jargon_context_matcher.py +363 -0
  490. src/maisaka/memory/__init__.py +1 -0
  491. src/maisaka/memory/heuristic_injector.py +393 -0
  492. src/maisaka/memory/image_injector.py +81 -0
  493. src/maisaka/memory/mid_term.py +995 -0
  494. src/maisaka/memory/person_profile.py +280 -0
  495. src/maisaka/mode_policy.py +28 -0
  496. src/maisaka/monitor/__init__.py +1 -0
  497. src/maisaka/monitor/event_store.py +351 -0
  498. src/maisaka/monitor/events.py +795 -0
  499. src/maisaka/monitor/message_payload.py +172 -0
  500. src/maisaka/monitor/planner_delta.py +77 -0
  501. src/maisaka/monitor/tool_media.py +58 -0
  502. src/maisaka/planner_reply_guard.py +69 -0
  503. src/maisaka/reasoning_engine.py +2186 -0
  504. src/maisaka/reply_effect/__init__.py +18 -0
  505. src/maisaka/reply_effect/image_utils.py +100 -0
  506. src/maisaka/reply_effect/judge.py +382 -0
  507. src/maisaka/reply_effect/models.py +185 -0
  508. src/maisaka/reply_effect/path_utils.py +24 -0
  509. src/maisaka/reply_effect/quote_utils.py +32 -0
  510. src/maisaka/reply_effect/scoring.py +205 -0
  511. src/maisaka/reply_effect/storage.py +380 -0
  512. src/maisaka/reply_effect/tracker.py +568 -0
  513. src/maisaka/runtime.py +2218 -0
  514. src/maisaka/subagent_tasks.py +171 -0
  515. src/maisaka/tool_result_condenser.py +143 -0
  516. src/maisaka/tool_result_store.py +57 -0
  517. src/maisaka/turn_trigger/__init__.py +9 -0
  518. src/maisaka/turn_trigger/dynamic_gate.py +211 -0
  519. src/maisaka/turn_trigger/gates.py +252 -0
  520. src/maisaka/turn_trigger/idle_backoff.py +93 -0
  521. src/maisaka/turn_trigger/reply_likelihood.py +88 -0
  522. src/maisaka/turn_trigger/scheduler.py +113 -0
  523. src/maisaka/utils/__init__.py +1 -0
  524. src/maisaka/utils/tool_post_execution.py +76 -0
  525. src/maisaka/utils/tool_record_payload.py +155 -0
  526. src/maisaka/visual/__init__.py +1 -0
  527. src/maisaka/visual/chat_history_refresher.py +303 -0
  528. src/maisaka/visual/message_limiter.py +69 -0
  529. src/maisaka/visual/mode_utils.py +33 -0
  530. src/manager/async_task_manager.py +193 -0
  531. src/manager/local_store_manager.py +126 -0
  532. src/mcp_module/__init__.py +9 -0
  533. src/mcp_module/config.py +174 -0
  534. src/mcp_module/connection.py +726 -0
  535. src/mcp_module/hooks.py +20 -0
  536. src/mcp_module/host_llm_bridge.py +654 -0
  537. src/mcp_module/manager.py +680 -0
  538. src/mcp_module/models.py +437 -0
  539. src/mcp_module/provider.py +62 -0
  540. src/mcp_module/service.py +308 -0
  541. src/mcp_module/stdio_filter.py +177 -0
  542. src/person_info/__init__.py +0 -0
  543. src/person_info/person_info.py +600 -0
  544. src/platform_io/__init__.py +39 -0
  545. src/platform_io/adapter_policy.py +839 -0
  546. src/platform_io/avatar.py +197 -0
  547. src/platform_io/dedupe.py +133 -0
  548. src/platform_io/drivers/__init__.py +11 -0
  549. src/platform_io/drivers/base.py +104 -0
  550. src/platform_io/drivers/legacy_driver.py +92 -0
  551. src/platform_io/drivers/plugin_driver.py +213 -0
  552. src/platform_io/manager.py +716 -0
  553. src/platform_io/outbound_tracker.py +286 -0
  554. src/platform_io/registry.py +70 -0
  555. src/platform_io/route_key_factory.py +174 -0
  556. src/platform_io/routing.py +141 -0
  557. src/platform_io/types.py +265 -0
  558. src/plugin_runtime/__init__.py +60 -0
  559. src/plugin_runtime/avatar_provider.py +64 -0
  560. src/plugin_runtime/capabilities/__init__.py +11 -0
  561. src/plugin_runtime/capabilities/components.py +977 -0
  562. src/plugin_runtime/capabilities/core.py +868 -0
  563. src/plugin_runtime/capabilities/data.py +1415 -0
  564. src/plugin_runtime/capabilities/registry.py +116 -0
  565. src/plugin_runtime/capabilities/render.py +131 -0
  566. src/plugin_runtime/compat_policy.py +47 -0
  567. src/plugin_runtime/component_query.py +1119 -0
  568. src/plugin_runtime/dependency_pipeline.py +547 -0
  569. src/plugin_runtime/docker_layout_migration.py +275 -0
  570. src/plugin_runtime/hook_catalog.py +52 -0
  571. src/plugin_runtime/hook_payloads.py +197 -0
  572. src/plugin_runtime/hook_schema_utils.py +31 -0
  573. src/plugin_runtime/host/__init__.py +1 -0
  574. src/plugin_runtime/host/api_registry.py +353 -0
  575. src/plugin_runtime/host/authorization.py +67 -0
  576. src/plugin_runtime/host/capability_service.py +91 -0
  577. src/plugin_runtime/host/circuit_breaker.py +243 -0
  578. src/plugin_runtime/host/component_registry.py +1336 -0
  579. src/plugin_runtime/host/component_timeout.py +32 -0
  580. src/plugin_runtime/host/event_dispatcher.py +228 -0
  581. src/plugin_runtime/host/hook_dispatcher.py +711 -0
  582. src/plugin_runtime/host/hook_spec_registry.py +190 -0
  583. src/plugin_runtime/host/logger_bridge.py +64 -0
  584. src/plugin_runtime/host/message_gateway.py +116 -0
  585. src/plugin_runtime/host/message_utils.py +572 -0
  586. src/plugin_runtime/host/reply_extension_schema.py +65 -0
  587. src/plugin_runtime/host/reply_extensions.py +204 -0
  588. src/plugin_runtime/host/rpc_server.py +509 -0
  589. src/plugin_runtime/host/supervisor.py +2269 -0
  590. src/plugin_runtime/integration.py +2063 -0
  591. src/plugin_runtime/local_sdk.py +147 -0
  592. src/plugin_runtime/protocol/__init__.py +1 -0
  593. src/plugin_runtime/protocol/codec.py +71 -0
  594. src/plugin_runtime/protocol/envelope.py +600 -0
  595. src/plugin_runtime/protocol/errors.py +77 -0
  596. src/plugin_runtime/runner/__init__.py +1 -0
  597. src/plugin_runtime/runner/log_handler.py +239 -0
  598. src/plugin_runtime/runner/manifest_validator.py +1517 -0
  599. src/plugin_runtime/runner/plugin_loader.py +711 -0
  600. src/plugin_runtime/runner/plugin_paths.py +59 -0
  601. src/plugin_runtime/runner/rpc_client.py +336 -0
  602. src/plugin_runtime/runner/runner_main.py +2670 -0
  603. src/plugin_runtime/tool_provider.py +58 -0
  604. src/plugin_runtime/transport/__init__.py +1 -0
  605. src/plugin_runtime/transport/base.py +116 -0
  606. src/plugin_runtime/transport/factory.py +57 -0
  607. src/plugin_runtime/transport/named_pipe.py +206 -0
  608. src/plugin_runtime/transport/tcp.py +62 -0
  609. src/plugin_runtime/transport/uds.py +133 -0
  610. src/plugin_runtime/update_compatibility_notice.py +303 -0
  611. src/plugin_runtime/upload_store.py +173 -0
  612. src/plugin_runtime/webui_schema.py +571 -0
  613. src/plugins/__init__.py +1 -0
  614. src/plugins/built_in/plugin_management/_manifest.json +48 -0
  615. src/plugins/built_in/plugin_management/plugin.py +665 -0
  616. src/prompt/prompt_manager.py +440 -0
  617. src/runtime.py +688 -0
  618. src/services/__init__.py +7 -0
  619. src/services/bot_account_service.py +327 -0
  620. src/services/database_service.py +203 -0
  621. src/services/embedding_service.py +271 -0
  622. src/services/expression_vector_service.py +106 -0
  623. src/services/html_render_service.py +945 -0
  624. src/services/image_path_maintenance_service.py +454 -0
  625. src/services/image_writeback_journal.py +98 -0
  626. src/services/llm_cache_stats.py +1521 -0
  627. src/services/llm_service.py +799 -0
  628. src/services/memory_flow_service.py +1019 -0
  629. src/services/memory_service.py +528 -0
  630. src/services/message_service.py +295 -0
  631. src/services/message_word_frequency_service.py +595 -0
  632. src/services/news_service.py +123 -0
  633. src/services/person_fact_reverification.py +90 -0
  634. src/services/person_fact_verifier.py +79 -0
  635. src/services/send_service.py +1483 -0
  636. src/services/service_task_resolver.py +59 -0
  637. src/services/statistics_aggregation_service.py +349 -0
  638. src/services/statistics_service.py +850 -0
  639. src/services/telemetry_stats_service.py +294 -0
  640. src/services/tool_record_cleanup_service.py +205 -0
  641. src/webui/app.py +374 -0
  642. src/webui/config_schema.py +481 -0
  643. src/webui/core/__init__.py +32 -0
  644. src/webui/core/auth.py +153 -0
  645. src/webui/core/rate_limiter.py +247 -0
  646. src/webui/core/security.py +361 -0
  647. src/webui/dependencies.py +70 -0
  648. src/webui/logs_ws.py +195 -0
  649. src/webui/middleware/__init__.py +17 -0
  650. src/webui/middleware/anti_crawler.py +824 -0
  651. src/webui/middleware/compression.py +88 -0
  652. src/webui/routers/__init__.py +33 -0
  653. src/webui/routers/avatar.py +250 -0
  654. src/webui/routers/bot_accounts.py +103 -0
  655. src/webui/routers/chat/__init__.py +18 -0
  656. src/webui/routers/chat/routes.py +1715 -0
  657. src/webui/routers/chat/serializers.py +248 -0
  658. src/webui/routers/chat/service.py +1489 -0
  659. src/webui/routers/config.py +1964 -0
  660. src/webui/routers/data_transfer.py +769 -0
  661. src/webui/routers/emoji/__init__.py +3 -0
  662. src/webui/routers/emoji/routes.py +1230 -0
  663. src/webui/routers/emoji/schemas.py +182 -0
  664. src/webui/routers/emoji/support.py +143 -0
  665. src/webui/routers/expression.py +2298 -0
  666. src/webui/routers/jargon.py +1319 -0
  667. src/webui/routers/mcp.py +99 -0
  668. src/webui/routers/memory.py +5589 -0
  669. src/webui/routers/model.py +910 -0
  670. src/webui/routers/news.py +23 -0
  671. src/webui/routers/person.py +427 -0
  672. src/webui/routers/plugin/__init__.py +31 -0
  673. src/webui/routers/plugin/catalog.py +218 -0
  674. src/webui/routers/plugin/config_routes.py +592 -0
  675. src/webui/routers/plugin/icon_routes.py +71 -0
  676. src/webui/routers/plugin/management.py +908 -0
  677. src/webui/routers/plugin/marketplace.py +116 -0
  678. src/webui/routers/plugin/progress.py +172 -0
  679. src/webui/routers/plugin/release_install.py +313 -0
  680. src/webui/routers/plugin/releases.py +181 -0
  681. src/webui/routers/plugin/runtime_routes.py +243 -0
  682. src/webui/routers/plugin/schemas.py +131 -0
  683. src/webui/routers/plugin/stats_proxy.py +127 -0
  684. src/webui/routers/plugin/support.py +366 -0
  685. src/webui/routers/plugin/webui_extensions.py +346 -0
  686. src/webui/routers/plugin/zip_install.py +125 -0
  687. src/webui/routers/reasoning_process.py +2326 -0
  688. src/webui/routers/reply_effects.py +926 -0
  689. src/webui/routers/search.py +249 -0
  690. src/webui/routers/self_update.py +194 -0
  691. src/webui/routers/statistics.py +61 -0
  692. src/webui/routers/system.py +1790 -0
  693. src/webui/routers/user_emoji.py +168 -0
  694. src/webui/routers/websocket/__init__.py +7 -0
  695. src/webui/routers/websocket/auth.py +104 -0
  696. src/webui/routers/websocket/manager.py +373 -0
  697. src/webui/routers/websocket/plugin_runtime.py +54 -0
  698. src/webui/routers/websocket/unified.py +761 -0
  699. src/webui/routes.py +416 -0
  700. src/webui/schemas/__init__.py +18 -0
  701. src/webui/schemas/news.py +24 -0
  702. src/webui/schemas/statistics.py +173 -0
  703. src/webui/services/__init__.py +1 -0
  704. src/webui/services/ai_search_agent.py +509 -0
  705. src/webui/services/ai_search_documents.py +329 -0
  706. src/webui/services/ai_search_grounding.py +103 -0
  707. src/webui/services/ai_search_local_config.py +129 -0
  708. src/webui/services/ai_search_models.py +98 -0
  709. src/webui/services/git_mirror_service.py +1024 -0
  710. src/webui/services/plugin_market_service.py +56 -0
  711. src/webui/utils/__init__.py +1 -0
  712. src/webui/utils/http_client.py +27 -0
  713. src/webui/utils/network_security.py +133 -0
  714. src/webui/utils/toml_utils.py +124 -0
  715. src/webui/version_compatibility.py +180 -0
  716. src/webui/webui_server.py +422 -0
@@ -0,0 +1,1640 @@
1
+ {
2
+ "plugin_id": "a_memorix",
3
+ "plugin_info": {
4
+ "name": "A_Memorix",
5
+ "version": "2.0.0",
6
+ "description": "长期记忆与认知增强子系统,支持常用配置可视化与原始 TOML 兜底编辑。",
7
+ "author": "A_Dawn"
8
+ },
9
+ "_note": "未在本 Schema 展示的高级键仍然有效,请通过源码模式或原始 TOML 编辑。",
10
+ "layout": {
11
+ "type": "tabs",
12
+ "tabs": [
13
+ {
14
+ "id": "basic",
15
+ "title": "基础",
16
+ "sections": [
17
+ "plugin",
18
+ "embedding"
19
+ ],
20
+ "order": 1
21
+ },
22
+ {
23
+ "id": "stability",
24
+ "title": "稳定性",
25
+ "sections": [
26
+ "embedding.fallback",
27
+ "embedding.paragraph_vector_backfill"
28
+ ],
29
+ "order": 2
30
+ },
31
+ {
32
+ "id": "retrieval",
33
+ "title": "检索",
34
+ "sections": [
35
+ "retrieval",
36
+ "retrieval.search.smart_fallback",
37
+ "retrieval.relation_vectorization",
38
+ "retrieval.vector_pools",
39
+ "retrieval.sparse",
40
+ "threshold",
41
+ "filter",
42
+ "filter.retrieval.chat_stream",
43
+ "filter.retrieval.chat_summary",
44
+ "filter.retrieval.episode"
45
+ ],
46
+ "order": 3
47
+ },
48
+ {
49
+ "id": "memory",
50
+ "title": "记忆",
51
+ "sections": [
52
+ "episode",
53
+ "person_profile",
54
+ "memory"
55
+ ],
56
+ "order": 4
57
+ },
58
+ {
59
+ "id": "operations",
60
+ "title": "运维",
61
+ "sections": [
62
+ "advanced",
63
+ "web.import",
64
+ "web.import.timeout",
65
+ "web.tuning"
66
+ ],
67
+ "order": 5
68
+ }
69
+ ]
70
+ },
71
+ "sections": {
72
+ "plugin": {
73
+ "name": "plugin",
74
+ "title": "子系统状态",
75
+ "description": "控制 A_Memorix 是否在宿主中启用。",
76
+ "icon": null,
77
+ "collapsed": false,
78
+ "order": 1,
79
+ "fields": {
80
+ "enabled": {
81
+ "name": "enabled",
82
+ "type": "boolean",
83
+ "default": false,
84
+ "description": "是否启用 A_Memorix",
85
+ "label": "启用 A_Memorix",
86
+ "ui_type": "switch",
87
+ "required": false,
88
+ "hidden": false,
89
+ "disabled": false,
90
+ "order": 1,
91
+ "hint": "默认关闭以简化首次配置;开启前请先配置可用的 embedding 模型。关闭后 A_Memorix 不会参与长期记忆写入、检索与运维。",
92
+ "choices": null
93
+ }
94
+ }
95
+ },
96
+ "embedding": {
97
+ "name": "embedding",
98
+ "title": "Embedding",
99
+ "description": "控制向量写入与检索的核心嵌入配置。",
100
+ "icon": null,
101
+ "collapsed": false,
102
+ "order": 3,
103
+ "fields": {
104
+ "model_name": {
105
+ "name": "model_name",
106
+ "type": "string",
107
+ "default": "auto",
108
+ "description": "Embedding 模型选择",
109
+ "label": "模型选择",
110
+ "ui_type": "text",
111
+ "required": false,
112
+ "hidden": false,
113
+ "disabled": false,
114
+ "order": 1,
115
+ "hint": "默认 auto,会按宿主环境自动选择可用 embedding 模型。",
116
+ "placeholder": "auto",
117
+ "choices": null
118
+ },
119
+ "dimension_request_mode": {
120
+ "name": "dimension_request_mode",
121
+ "type": "string",
122
+ "default": "explicit",
123
+ "description": "是否在请求中携带向量维度参数",
124
+ "label": "维度请求模式",
125
+ "ui_type": "select",
126
+ "required": false,
127
+ "hidden": false,
128
+ "disabled": false,
129
+ "order": 3,
130
+ "hint": "explicit 仅在显式指定 dimensions 时传递;always 总是传递;never 始终不传。",
131
+ "choices": [
132
+ "explicit",
133
+ "always",
134
+ "never"
135
+ ],
136
+ "advanced": true
137
+ },
138
+ "batch_size": {
139
+ "name": "batch_size",
140
+ "type": "integer",
141
+ "default": 32,
142
+ "description": "单批请求大小",
143
+ "label": "批大小",
144
+ "ui_type": "number",
145
+ "required": false,
146
+ "hidden": false,
147
+ "disabled": false,
148
+ "order": 4,
149
+ "hint": "批量过大可能放大模型或网络波动。",
150
+ "min": 1,
151
+ "max": 1024,
152
+ "step": 1,
153
+ "choices": null
154
+ },
155
+ "max_concurrent": {
156
+ "name": "max_concurrent",
157
+ "type": "integer",
158
+ "default": 5,
159
+ "description": "最大并发数",
160
+ "label": "最大并发",
161
+ "ui_type": "number",
162
+ "required": false,
163
+ "hidden": false,
164
+ "disabled": false,
165
+ "order": 5,
166
+ "hint": "用于限制并行 embedding 请求数量。",
167
+ "min": 1,
168
+ "max": 128,
169
+ "step": 1,
170
+ "choices": null
171
+ },
172
+ "enable_cache": {
173
+ "name": "enable_cache",
174
+ "type": "boolean",
175
+ "default": false,
176
+ "description": "是否启用缓存",
177
+ "label": "启用向量缓存",
178
+ "ui_type": "switch",
179
+ "required": false,
180
+ "hidden": false,
181
+ "disabled": false,
182
+ "order": 6,
183
+ "hint": "适合重复写入较多的场景,默认关闭以保持路径更直观。",
184
+ "choices": null
185
+ }
186
+ }
187
+ },
188
+ "embedding.fallback": {
189
+ "name": "embedding.fallback",
190
+ "title": "Embedding 回退",
191
+ "description": "控制 embedding 异常或退化时的兜底策略。",
192
+ "icon": null,
193
+ "collapsed": false,
194
+ "order": 4,
195
+ "fields": {
196
+ "enabled": {
197
+ "name": "enabled",
198
+ "type": "boolean",
199
+ "default": true,
200
+ "description": "是否启用回退机制",
201
+ "label": "启用回退",
202
+ "ui_type": "switch",
203
+ "required": false,
204
+ "hidden": false,
205
+ "disabled": false,
206
+ "order": 1,
207
+ "hint": "建议保持开启,避免 embedding 波动直接阻塞导入或检索。",
208
+ "choices": null
209
+ },
210
+ "probe_interval_seconds": {
211
+ "name": "probe_interval_seconds",
212
+ "type": "integer",
213
+ "default": 180,
214
+ "description": "探测间隔秒数",
215
+ "label": "探测间隔(秒)",
216
+ "ui_type": "number",
217
+ "required": false,
218
+ "hidden": false,
219
+ "disabled": false,
220
+ "order": 2,
221
+ "hint": "回退期间定期探测 embedding 是否恢复。",
222
+ "min": 10,
223
+ "max": 86400,
224
+ "step": 1,
225
+ "choices": null
226
+ }
227
+ }
228
+ },
229
+ "embedding.paragraph_vector_backfill": {
230
+ "name": "embedding.paragraph_vector_backfill",
231
+ "title": "段落向量回填",
232
+ "description": "控制 metadata-only 写入后的向量回填任务。",
233
+ "icon": null,
234
+ "collapsed": false,
235
+ "order": 5,
236
+ "fields": {
237
+ "enabled": {
238
+ "name": "enabled",
239
+ "type": "boolean",
240
+ "default": true,
241
+ "description": "是否启用回填任务",
242
+ "label": "启用向量回填",
243
+ "ui_type": "switch",
244
+ "required": false,
245
+ "hidden": false,
246
+ "disabled": false,
247
+ "order": 1,
248
+ "hint": "建议与 metadata-only 写入配合使用。",
249
+ "choices": null
250
+ },
251
+ "batch_size": {
252
+ "name": "batch_size",
253
+ "type": "integer",
254
+ "default": 64,
255
+ "description": "单批回填数量",
256
+ "label": "回填批大小",
257
+ "ui_type": "number",
258
+ "required": false,
259
+ "hidden": false,
260
+ "disabled": false,
261
+ "order": 3,
262
+ "hint": "批量越大,单轮补写越快,但对 embedding 服务压力也越高。",
263
+ "min": 1,
264
+ "max": 2048,
265
+ "step": 1,
266
+ "choices": null
267
+ },
268
+ "max_retry": {
269
+ "name": "max_retry",
270
+ "type": "integer",
271
+ "default": 5,
272
+ "description": "最大重试次数",
273
+ "label": "最大重试次数",
274
+ "ui_type": "number",
275
+ "required": false,
276
+ "hidden": false,
277
+ "disabled": false,
278
+ "order": 4,
279
+ "hint": "失败回填的重试上限。",
280
+ "min": 0,
281
+ "max": 100,
282
+ "step": 1,
283
+ "choices": null
284
+ }
285
+ }
286
+ },
287
+ "retrieval": {
288
+ "name": "retrieval",
289
+ "title": "主检索参数",
290
+ "description": "控制向量、关系与最终合并的主检索范围。",
291
+ "icon": null,
292
+ "collapsed": false,
293
+ "order": 6,
294
+ "fields": {
295
+ "top_k_paragraphs": {
296
+ "name": "top_k_paragraphs",
297
+ "type": "integer",
298
+ "default": 20,
299
+ "description": "段落候选数",
300
+ "label": "段落候选数",
301
+ "ui_type": "number",
302
+ "required": false,
303
+ "hidden": false,
304
+ "disabled": false,
305
+ "order": 1,
306
+ "hint": "向量检索阶段保留的段落候选数量。",
307
+ "min": 1,
308
+ "max": 2000,
309
+ "step": 1,
310
+ "choices": null
311
+ },
312
+ "top_k_relations": {
313
+ "name": "top_k_relations",
314
+ "type": "integer",
315
+ "default": 10,
316
+ "description": "关系候选数",
317
+ "label": "关系候选数",
318
+ "ui_type": "number",
319
+ "required": false,
320
+ "hidden": false,
321
+ "disabled": false,
322
+ "order": 2,
323
+ "hint": "图谱关系回收的候选条数。",
324
+ "min": 1,
325
+ "max": 2000,
326
+ "step": 1,
327
+ "choices": null
328
+ },
329
+ "top_k_final": {
330
+ "name": "top_k_final",
331
+ "type": "integer",
332
+ "default": 10,
333
+ "description": "最终返回条数",
334
+ "label": "最终条数",
335
+ "ui_type": "number",
336
+ "required": false,
337
+ "hidden": false,
338
+ "disabled": false,
339
+ "order": 3,
340
+ "hint": "最终返回给调用方的默认最大条数。",
341
+ "min": 1,
342
+ "max": 2000,
343
+ "step": 1,
344
+ "choices": null
345
+ },
346
+ "enable_ppr": {
347
+ "name": "enable_ppr",
348
+ "type": "boolean",
349
+ "default": true,
350
+ "description": "是否启用 PPR",
351
+ "label": "启用 PPR",
352
+ "ui_type": "switch",
353
+ "required": false,
354
+ "hidden": false,
355
+ "disabled": false,
356
+ "order": 5,
357
+ "hint": "图扩散召回有助于补足关系链,但会增加检索时延。",
358
+ "choices": null
359
+ },
360
+ "ppr_timeout_seconds": {
361
+ "name": "ppr_timeout_seconds",
362
+ "type": "number",
363
+ "default": 1.5,
364
+ "description": "PPR 超时",
365
+ "label": "PPR 超时(秒)",
366
+ "ui_type": "number",
367
+ "required": false,
368
+ "hidden": false,
369
+ "disabled": false,
370
+ "order": 7,
371
+ "hint": "控制单次 PPR 图召回的最长执行时间。",
372
+ "min": 0.1,
373
+ "max": 60,
374
+ "step": 0.1,
375
+ "choices": null
376
+ },
377
+ "enable_parallel": {
378
+ "name": "enable_parallel",
379
+ "type": "boolean",
380
+ "default": true,
381
+ "description": "是否启用并行检索",
382
+ "label": "启用并行检索",
383
+ "ui_type": "switch",
384
+ "required": false,
385
+ "hidden": false,
386
+ "disabled": false,
387
+ "order": 9,
388
+ "hint": "允许多路候选召回并发执行。",
389
+ "choices": null
390
+ }
391
+ }
392
+ },
393
+ "retrieval.search.smart_fallback": {
394
+ "name": "retrieval.search.smart_fallback",
395
+ "title": "智能兜底检索",
396
+ "description": "控制检索结果不足时是否启用智能兜底补召回。",
397
+ "icon": null,
398
+ "collapsed": false,
399
+ "order": 6.1,
400
+ "fields": {
401
+ "enabled": {
402
+ "name": "enabled",
403
+ "type": "boolean",
404
+ "default": true,
405
+ "description": "是否启用智能兜底检索",
406
+ "label": "启用智能兜底",
407
+ "ui_type": "switch",
408
+ "required": false,
409
+ "hidden": false,
410
+ "disabled": false,
411
+ "order": 1,
412
+ "hint": "结果过少时尝试补充召回,通常能降低空结果率。",
413
+ "choices": null
414
+ }
415
+ }
416
+ },
417
+ "retrieval.sparse": {
418
+ "name": "retrieval.sparse",
419
+ "title": "稀疏检索",
420
+ "description": "控制 BM25/FTS5 稀疏检索的开关与候选规模。",
421
+ "icon": null,
422
+ "collapsed": false,
423
+ "order": 9,
424
+ "fields": {
425
+ "enabled": {
426
+ "name": "enabled",
427
+ "type": "boolean",
428
+ "default": true,
429
+ "description": "是否启用稀疏检索",
430
+ "label": "启用稀疏检索",
431
+ "ui_type": "switch",
432
+ "required": false,
433
+ "hidden": false,
434
+ "disabled": false,
435
+ "order": 1,
436
+ "hint": "适合关键词明确、短文本或 embedding 退化场景。",
437
+ "choices": null
438
+ },
439
+ "mode": {
440
+ "name": "mode",
441
+ "type": "string",
442
+ "default": "auto",
443
+ "description": "稀疏检索模式",
444
+ "label": "检索模式",
445
+ "ui_type": "select",
446
+ "required": false,
447
+ "hidden": false,
448
+ "disabled": false,
449
+ "order": 3,
450
+ "hint": "auto 为默认;fallback_only 适合 embedding 降级时读路径兜底。",
451
+ "choices": [
452
+ "auto",
453
+ "fallback_only",
454
+ "hybrid"
455
+ ]
456
+ },
457
+ "tokenizer_mode": {
458
+ "name": "tokenizer_mode",
459
+ "type": "string",
460
+ "default": "jieba",
461
+ "description": "分词模式",
462
+ "label": "分词模式",
463
+ "ui_type": "select",
464
+ "required": false,
465
+ "hidden": false,
466
+ "disabled": false,
467
+ "order": 4,
468
+ "hint": "中文场景优先用 jieba;未安装时会自动退化为 char n-gram。",
469
+ "choices": [
470
+ "jieba",
471
+ "mixed",
472
+ "char_2gram"
473
+ ]
474
+ },
475
+ "candidate_k": {
476
+ "name": "candidate_k",
477
+ "type": "integer",
478
+ "default": 80,
479
+ "description": "段落候选数",
480
+ "label": "段落候选数",
481
+ "ui_type": "number",
482
+ "required": false,
483
+ "hidden": false,
484
+ "disabled": false,
485
+ "order": 5,
486
+ "hint": "稀疏检索阶段保留的段落候选数量。",
487
+ "min": 1,
488
+ "max": 5000,
489
+ "step": 1,
490
+ "choices": null
491
+ },
492
+ "relation_candidate_k": {
493
+ "name": "relation_candidate_k",
494
+ "type": "integer",
495
+ "default": 60,
496
+ "description": "关系候选数",
497
+ "label": "关系候选数",
498
+ "ui_type": "number",
499
+ "required": false,
500
+ "hidden": false,
501
+ "disabled": false,
502
+ "order": 6,
503
+ "hint": "用于关系检索或图谱回收的稀疏候选规模。",
504
+ "min": 1,
505
+ "max": 5000,
506
+ "step": 1,
507
+ "choices": null
508
+ }
509
+ }
510
+ },
511
+ "threshold": {
512
+ "name": "threshold",
513
+ "title": "阈值过滤",
514
+ "description": "控制检索结果的动态阈值与最小保留条数。",
515
+ "icon": null,
516
+ "collapsed": false,
517
+ "order": 10,
518
+ "fields": {
519
+ "min_results": {
520
+ "name": "min_results",
521
+ "type": "integer",
522
+ "default": 4,
523
+ "description": "最小结果数",
524
+ "label": "最少保留条数",
525
+ "ui_type": "number",
526
+ "required": false,
527
+ "hidden": false,
528
+ "disabled": false,
529
+ "order": 4,
530
+ "hint": "避免阈值过严导致返回结果过少。",
531
+ "min": 1,
532
+ "max": 200,
533
+ "step": 1,
534
+ "choices": null
535
+ }
536
+ }
537
+ },
538
+ "filter": {
539
+ "name": "filter",
540
+ "title": "聊天过滤",
541
+ "description": "控制 respect_filter=true 时允许读写的聊天流范围。",
542
+ "icon": null,
543
+ "collapsed": false,
544
+ "order": 11,
545
+ "fields": {
546
+ "enabled": {
547
+ "name": "enabled",
548
+ "type": "boolean",
549
+ "default": true,
550
+ "description": "是否启用过滤",
551
+ "label": "启用聊天过滤",
552
+ "ui_type": "switch",
553
+ "required": false,
554
+ "hidden": false,
555
+ "disabled": false,
556
+ "order": 1,
557
+ "hint": "关闭后 respect_filter=true 将不再限制聊天流范围。",
558
+ "choices": null
559
+ },
560
+ "mode": {
561
+ "name": "mode",
562
+ "type": "string",
563
+ "default": "blacklist",
564
+ "description": "过滤模式",
565
+ "label": "过滤模式",
566
+ "ui_type": "select",
567
+ "required": false,
568
+ "hidden": false,
569
+ "disabled": false,
570
+ "order": 2,
571
+ "hint": "blacklist 为黑名单;whitelist 为仅允许列表中的聊天流。",
572
+ "choices": [
573
+ "blacklist",
574
+ "whitelist"
575
+ ]
576
+ },
577
+ "chats": {
578
+ "name": "chats",
579
+ "type": "array",
580
+ "default": [],
581
+ "description": "聊天流列表",
582
+ "label": "聊天流列表",
583
+ "ui_type": "list",
584
+ "required": false,
585
+ "hidden": false,
586
+ "disabled": false,
587
+ "order": 3,
588
+ "hint": "示例:group:123、user:456、stream:abc。",
589
+ "item_type": "string",
590
+ "min_items": 0,
591
+ "max_items": 500,
592
+ "placeholder": "group:123",
593
+ "choices": null
594
+ }
595
+ }
596
+ },
597
+ "episode": {
598
+ "name": "episode",
599
+ "title": "Episode 生成",
600
+ "description": "控制段落聚合、分段与 Episode 重建相关参数。",
601
+ "icon": null,
602
+ "collapsed": false,
603
+ "order": 10,
604
+ "fields": {
605
+ "enabled": {
606
+ "name": "enabled",
607
+ "type": "boolean",
608
+ "default": true,
609
+ "description": "是否启用 Episode",
610
+ "label": "启用 Episode",
611
+ "ui_type": "switch",
612
+ "required": false,
613
+ "hidden": false,
614
+ "disabled": false,
615
+ "order": 1,
616
+ "hint": "关闭后不再自动维护 Episode 级记忆。",
617
+ "choices": null
618
+ },
619
+ "generation_enabled": {
620
+ "name": "generation_enabled",
621
+ "type": "boolean",
622
+ "default": true,
623
+ "description": "是否启用自动生成",
624
+ "label": "启用自动生成",
625
+ "ui_type": "switch",
626
+ "required": false,
627
+ "hidden": false,
628
+ "disabled": false,
629
+ "order": 2,
630
+ "hint": "关闭后只保留已存在的 Episode,不再新增。",
631
+ "choices": null
632
+ },
633
+ "source_poll_interval_seconds": {
634
+ "name": "source_poll_interval_seconds",
635
+ "type": "number",
636
+ "default": 1,
637
+ "description": "来源级重建任务轮询间隔秒数",
638
+ "label": "来源任务轮询间隔",
639
+ "ui_type": "number",
640
+ "required": false,
641
+ "hidden": false,
642
+ "disabled": false,
643
+ "order": 3,
644
+ "hint": "控制 Episode 后台工作线程检查来源 revision outbox 的频率。",
645
+ "min": 0.1,
646
+ "max": 60,
647
+ "step": 0.1,
648
+ "choices": null
649
+ },
650
+ "source_batch_size": {
651
+ "name": "source_batch_size",
652
+ "type": "integer",
653
+ "default": 20,
654
+ "description": "单轮领取的来源任务数",
655
+ "label": "来源任务批量",
656
+ "ui_type": "number",
657
+ "required": false,
658
+ "hidden": false,
659
+ "disabled": false,
660
+ "order": 4,
661
+ "hint": "每个来源会构建一个完整且可原子发布的 Episode 快照。",
662
+ "min": 1,
663
+ "max": 500,
664
+ "step": 1,
665
+ "choices": null
666
+ },
667
+ "max_paragraphs_per_call": {
668
+ "name": "max_paragraphs_per_call",
669
+ "type": "integer",
670
+ "default": 20,
671
+ "description": "单次最大段落数",
672
+ "label": "单次最大段落数",
673
+ "ui_type": "number",
674
+ "required": false,
675
+ "hidden": false,
676
+ "disabled": false,
677
+ "order": 5,
678
+ "hint": "限制单次 Episode 生成时参与的段落数量。",
679
+ "min": 1,
680
+ "max": 500,
681
+ "step": 1,
682
+ "choices": null
683
+ },
684
+ "max_chars_per_call": {
685
+ "name": "max_chars_per_call",
686
+ "type": "integer",
687
+ "default": 6000,
688
+ "description": "单次最大字符数",
689
+ "label": "单次最大字符数",
690
+ "ui_type": "number",
691
+ "required": false,
692
+ "hidden": false,
693
+ "disabled": false,
694
+ "order": 6,
695
+ "hint": "控制单次送入 Episode 生成的文本体量。",
696
+ "min": 100,
697
+ "max": 200000,
698
+ "step": 100,
699
+ "choices": null
700
+ },
701
+ "source_time_window_hours": {
702
+ "name": "source_time_window_hours",
703
+ "type": "number",
704
+ "default": 24,
705
+ "description": "时间窗口小时数",
706
+ "label": "时间窗口(小时)",
707
+ "ui_type": "number",
708
+ "required": false,
709
+ "hidden": false,
710
+ "disabled": false,
711
+ "order": 7,
712
+ "hint": "控制同一时间片内段落聚合的范围。",
713
+ "min": 0,
714
+ "max": 168,
715
+ "step": 1,
716
+ "choices": null
717
+ },
718
+ "segmentation_model": {
719
+ "name": "segmentation_model",
720
+ "type": "string",
721
+ "default": "auto",
722
+ "description": "分段模型选择",
723
+ "label": "分段模型",
724
+ "ui_type": "text",
725
+ "required": false,
726
+ "hidden": false,
727
+ "disabled": false,
728
+ "order": 8,
729
+ "hint": "支持 auto,也可填 utils/replyer/planner/tool_use 或具体模型名。",
730
+ "placeholder": "auto",
731
+ "choices": null
732
+ },
733
+ "source_max_retry": {
734
+ "name": "source_max_retry",
735
+ "type": "integer",
736
+ "default": 3,
737
+ "description": "每个来源版本的最大尝试次数,包含首次尝试",
738
+ "label": "来源任务最大尝试次数",
739
+ "ui_type": "number",
740
+ "required": false,
741
+ "hidden": false,
742
+ "disabled": false,
743
+ "order": 9,
744
+ "hint": "失败任务按来源记录错误并继续尝试,达到上限后停止领取。",
745
+ "min": 1,
746
+ "max": 100,
747
+ "step": 1,
748
+ "choices": null
749
+ },
750
+ "source_lease_seconds": {
751
+ "name": "source_lease_seconds",
752
+ "type": "number",
753
+ "default": 1800,
754
+ "description": "来源任务租约时长秒数",
755
+ "label": "来源任务租约时长",
756
+ "ui_type": "number",
757
+ "required": false,
758
+ "hidden": false,
759
+ "disabled": false,
760
+ "order": 10,
761
+ "hint": "工作线程异常退出后,租约到期即可由其他线程接管。",
762
+ "min": 1,
763
+ "max": 86400,
764
+ "step": 1,
765
+ "choices": null
766
+ },
767
+ "source_max_wait_seconds": {
768
+ "name": "source_max_wait_seconds",
769
+ "type": "number",
770
+ "default": 60,
771
+ "description": "来源持续写入时的最大防抖等待秒数",
772
+ "label": "最大防抖等待",
773
+ "ui_type": "number",
774
+ "required": false,
775
+ "hidden": false,
776
+ "disabled": false,
777
+ "order": 11,
778
+ "hint": "突发写入优先合并,但不会无限推迟来源构建。",
779
+ "min": 0,
780
+ "max": 3600,
781
+ "step": 1,
782
+ "choices": null
783
+ }
784
+ }
785
+ },
786
+ "person_profile": {
787
+ "name": "person_profile",
788
+ "title": "人物画像",
789
+ "description": "控制画像刷新频率与证据采样范围。",
790
+ "icon": null,
791
+ "collapsed": false,
792
+ "order": 11,
793
+ "fields": {
794
+ "enabled": {
795
+ "name": "enabled",
796
+ "type": "boolean",
797
+ "default": true,
798
+ "description": "是否启用画像",
799
+ "label": "启用人物画像",
800
+ "ui_type": "switch",
801
+ "required": false,
802
+ "hidden": false,
803
+ "disabled": false,
804
+ "order": 1,
805
+ "hint": "关闭后不再自动刷新人物画像与证据快照。",
806
+ "choices": null
807
+ },
808
+ "refresh_interval_minutes": {
809
+ "name": "refresh_interval_minutes",
810
+ "type": "integer",
811
+ "default": 30,
812
+ "description": "刷新间隔分钟数",
813
+ "label": "刷新间隔(分钟)",
814
+ "ui_type": "number",
815
+ "required": false,
816
+ "hidden": false,
817
+ "disabled": false,
818
+ "order": 2,
819
+ "hint": "控制画像自动刷新周期。",
820
+ "min": 1,
821
+ "max": 10080,
822
+ "step": 1,
823
+ "choices": null
824
+ },
825
+ "active_window_hours": {
826
+ "name": "active_window_hours",
827
+ "type": "number",
828
+ "default": 72,
829
+ "description": "活跃窗口小时数",
830
+ "label": "活跃窗口(小时)",
831
+ "ui_type": "number",
832
+ "required": false,
833
+ "hidden": false,
834
+ "disabled": false,
835
+ "order": 3,
836
+ "hint": "只在最近窗口内有活动的人物上触发刷新。",
837
+ "min": 1,
838
+ "max": 8760,
839
+ "step": 1,
840
+ "choices": null
841
+ },
842
+ "max_refresh_per_cycle": {
843
+ "name": "max_refresh_per_cycle",
844
+ "type": "integer",
845
+ "default": 50,
846
+ "description": "单轮最大刷新数",
847
+ "label": "单轮最大刷新数",
848
+ "ui_type": "number",
849
+ "required": false,
850
+ "hidden": false,
851
+ "disabled": false,
852
+ "order": 4,
853
+ "hint": "限制单轮画像刷新时最多处理的人物数量。",
854
+ "min": 1,
855
+ "max": 1000,
856
+ "step": 1,
857
+ "choices": null
858
+ },
859
+ "top_k_evidence": {
860
+ "name": "top_k_evidence",
861
+ "type": "integer",
862
+ "default": 12,
863
+ "description": "证据条数",
864
+ "label": "证据条数",
865
+ "ui_type": "number",
866
+ "required": false,
867
+ "hidden": false,
868
+ "disabled": false,
869
+ "order": 5,
870
+ "hint": "生成画像时默认采样的证据条数。",
871
+ "min": 1,
872
+ "max": 200,
873
+ "step": 1,
874
+ "choices": null
875
+ }
876
+ }
877
+ },
878
+ "memory": {
879
+ "name": "memory",
880
+ "title": "记忆演化",
881
+ "description": "控制记忆衰减、冻结与裁剪。",
882
+ "icon": null,
883
+ "collapsed": false,
884
+ "order": 12,
885
+ "fields": {
886
+ "enabled": {
887
+ "name": "enabled",
888
+ "type": "boolean",
889
+ "default": true,
890
+ "description": "是否启用记忆演化",
891
+ "label": "启用记忆演化",
892
+ "ui_type": "switch",
893
+ "required": false,
894
+ "hidden": false,
895
+ "disabled": false,
896
+ "order": 1,
897
+ "hint": "关闭后不再自动衰减、裁剪或冻结记忆状态。",
898
+ "choices": null
899
+ },
900
+ "half_life_hours": {
901
+ "name": "half_life_hours",
902
+ "type": "number",
903
+ "default": 24,
904
+ "description": "关系保留强度的半衰期小时数",
905
+ "label": "半衰期",
906
+ "ui_type": "number",
907
+ "required": false,
908
+ "hidden": false,
909
+ "disabled": false,
910
+ "order": 2,
911
+ "hint": "按墙钟时间确定性计算,与维护执行次数无关。",
912
+ "min": 0.1,
913
+ "max": 87600,
914
+ "step": 0.1,
915
+ "choices": null
916
+ },
917
+ "prune_threshold": {
918
+ "name": "prune_threshold",
919
+ "type": "number",
920
+ "default": 0.1,
921
+ "description": "关系进入冻结状态的保留强度阈值",
922
+ "label": "冻结阈值",
923
+ "ui_type": "number",
924
+ "required": false,
925
+ "hidden": false,
926
+ "disabled": false,
927
+ "order": 3,
928
+ "hint": "达到阈值后只移除结构投影,不删除原始段落证据。",
929
+ "min": 0.01,
930
+ "max": 0.99,
931
+ "step": 0.01,
932
+ "choices": null
933
+ },
934
+ "revive_threshold": {
935
+ "name": "revive_threshold",
936
+ "type": "number",
937
+ "default": 0.15,
938
+ "description": "冻结关系恢复活跃的强度阈值",
939
+ "label": "恢复阈值",
940
+ "ui_type": "number",
941
+ "required": false,
942
+ "hidden": false,
943
+ "disabled": false,
944
+ "order": 4,
945
+ "hint": "应高于冻结阈值,形成迟滞区间并避免状态抖动。",
946
+ "min": 0.01,
947
+ "max": 1,
948
+ "step": 0.01,
949
+ "choices": null
950
+ },
951
+ "freeze_duration_hours": {
952
+ "name": "freeze_duration_hours",
953
+ "type": "number",
954
+ "default": 24,
955
+ "description": "冻结后进入归档的等待时长",
956
+ "label": "冻结时长",
957
+ "ui_type": "number",
958
+ "required": false,
959
+ "hidden": false,
960
+ "disabled": false,
961
+ "order": 5,
962
+ "hint": "归档仍保留完整删除快照和恢复能力。",
963
+ "min": 0,
964
+ "max": 87600,
965
+ "step": 0.1,
966
+ "choices": null
967
+ },
968
+ "access_reinforcement_alpha": {
969
+ "name": "access_reinforcement_alpha",
970
+ "type": "number",
971
+ "default": 0.05,
972
+ "description": "最终采用结果带来的饱和加强系数",
973
+ "label": "访问加强系数",
974
+ "ui_type": "number",
975
+ "required": false,
976
+ "hidden": false,
977
+ "disabled": false,
978
+ "order": 6,
979
+ "hint": "候选命中本身不会加强,避免检索自反馈。",
980
+ "min": 0,
981
+ "max": 1,
982
+ "step": 0.01,
983
+ "choices": null
984
+ },
985
+ "access_reinforcement_cooldown_minutes": {
986
+ "name": "access_reinforcement_cooldown_minutes",
987
+ "type": "number",
988
+ "default": 60,
989
+ "description": "同一关系两次访问加强之间的最短分钟数",
990
+ "label": "访问加强冷却时间",
991
+ "ui_type": "number",
992
+ "required": false,
993
+ "hidden": false,
994
+ "disabled": false,
995
+ "order": 7,
996
+ "hint": "冷却期内仍记录访问次数,但不改变保留强度;0表示不限制。",
997
+ "min": 0,
998
+ "max": 525600,
999
+ "step": 1,
1000
+ "choices": null
1001
+ },
1002
+ "explicit_reinforcement_alpha": {
1003
+ "name": "explicit_reinforcement_alpha",
1004
+ "type": "number",
1005
+ "default": 0.5,
1006
+ "description": "显式加强或新证据的饱和加强系数",
1007
+ "label": "显式加强系数",
1008
+ "ui_type": "number",
1009
+ "required": false,
1010
+ "hidden": false,
1011
+ "disabled": false,
1012
+ "order": 8,
1013
+ "hint": "采用 R'=R+α(1-R),保留强度始终不超过1。",
1014
+ "min": 0,
1015
+ "max": 1,
1016
+ "step": 0.01,
1017
+ "choices": null
1018
+ },
1019
+ "weaken_alpha": {
1020
+ "name": "weaken_alpha",
1021
+ "type": "number",
1022
+ "default": 0.5,
1023
+ "description": "显式弱化事件的比例系数",
1024
+ "label": "弱化系数",
1025
+ "ui_type": "number",
1026
+ "required": false,
1027
+ "hidden": false,
1028
+ "disabled": false,
1029
+ "order": 9,
1030
+ "hint": "弱化与证据置信度相互独立。",
1031
+ "min": 0,
1032
+ "max": 1,
1033
+ "step": 0.01,
1034
+ "choices": null
1035
+ },
1036
+ "lifecycle_batch_size": {
1037
+ "name": "lifecycle_batch_size",
1038
+ "type": "integer",
1039
+ "default": 1000,
1040
+ "description": "单轮处理的到期关系数量",
1041
+ "label": "生命周期批量",
1042
+ "ui_type": "number",
1043
+ "required": false,
1044
+ "hidden": false,
1045
+ "disabled": false,
1046
+ "order": 10,
1047
+ "hint": "维护只扫描 next_lifecycle_at 到期索引。",
1048
+ "min": 1,
1049
+ "max": 100000,
1050
+ "step": 1,
1051
+ "choices": null
1052
+ }
1053
+ }
1054
+ },
1055
+ "advanced": {
1056
+ "name": "advanced",
1057
+ "title": "高级运行时",
1058
+ "description": "控制自动保存与调试开关。",
1059
+ "icon": null,
1060
+ "collapsed": false,
1061
+ "order": 13,
1062
+ "fields": {
1063
+ "debug": {
1064
+ "name": "debug",
1065
+ "type": "boolean",
1066
+ "default": false,
1067
+ "description": "是否启用调试",
1068
+ "label": "启用调试日志",
1069
+ "ui_type": "switch",
1070
+ "required": false,
1071
+ "hidden": false,
1072
+ "disabled": false,
1073
+ "order": 3,
1074
+ "hint": "开启后会输出更多运行时诊断信息。",
1075
+ "choices": null
1076
+ }
1077
+ }
1078
+ },
1079
+ "web.import": {
1080
+ "name": "web.import",
1081
+ "title": "导入中心",
1082
+ "description": "控制导入任务队列、文件大小与并发参数。",
1083
+ "icon": null,
1084
+ "collapsed": false,
1085
+ "order": 14,
1086
+ "fields": {
1087
+ "enabled": {
1088
+ "name": "enabled",
1089
+ "type": "boolean",
1090
+ "default": true,
1091
+ "description": "是否启用导入中心",
1092
+ "label": "启用导入中心",
1093
+ "ui_type": "switch",
1094
+ "required": false,
1095
+ "hidden": false,
1096
+ "disabled": false,
1097
+ "advanced": true,
1098
+ "order": 1,
1099
+ "hint": "关闭后相关导入任务接口会被拒绝。",
1100
+ "choices": null
1101
+ },
1102
+ "max_files_per_task": {
1103
+ "name": "max_files_per_task",
1104
+ "type": "integer",
1105
+ "default": 200,
1106
+ "description": "单任务最大文件数",
1107
+ "label": "单任务最大文件数",
1108
+ "ui_type": "number",
1109
+ "required": false,
1110
+ "hidden": false,
1111
+ "disabled": false,
1112
+ "order": 3,
1113
+ "hint": "防止一次性提交过多文件导致任务过大。",
1114
+ "min": 1,
1115
+ "max": 10000,
1116
+ "step": 1,
1117
+ "choices": null
1118
+ },
1119
+ "max_file_size_mb": {
1120
+ "name": "max_file_size_mb",
1121
+ "type": "integer",
1122
+ "default": 20,
1123
+ "description": "单文件大小上限",
1124
+ "label": "单文件大小上限(MB)",
1125
+ "ui_type": "number",
1126
+ "required": false,
1127
+ "hidden": false,
1128
+ "disabled": false,
1129
+ "order": 4,
1130
+ "hint": "大文件可先拆分后导入,以减少失败重试成本。",
1131
+ "min": 1,
1132
+ "max": 4096,
1133
+ "step": 1,
1134
+ "choices": null
1135
+ },
1136
+ "max_paste_chars": {
1137
+ "name": "max_paste_chars",
1138
+ "type": "integer",
1139
+ "default": 200000,
1140
+ "description": "粘贴字符数上限",
1141
+ "label": "粘贴字符上限",
1142
+ "ui_type": "number",
1143
+ "required": false,
1144
+ "hidden": false,
1145
+ "disabled": false,
1146
+ "order": 5,
1147
+ "hint": "限制直接粘贴导入时的最大文本长度。",
1148
+ "min": 100,
1149
+ "max": 5000000,
1150
+ "step": 100,
1151
+ "choices": null
1152
+ },
1153
+ "default_narrative_window_size": {
1154
+ "name": "default_narrative_window_size",
1155
+ "type": "integer",
1156
+ "default": 1600,
1157
+ "description": "默认叙事抽取窗口字符数",
1158
+ "label": "默认叙事抽取窗口",
1159
+ "ui_type": "number",
1160
+ "required": false,
1161
+ "hidden": false,
1162
+ "disabled": false,
1163
+ "order": 8,
1164
+ "hint": "控制 narrative/聊天日志导入时单个 LLM 抽取分块的目标窗口长度。",
1165
+ "min": 200,
1166
+ "max": 3200,
1167
+ "step": 100,
1168
+ "choices": null,
1169
+ "advanced": true
1170
+ },
1171
+ "default_narrative_overlap": {
1172
+ "name": "default_narrative_overlap",
1173
+ "type": "integer",
1174
+ "default": 400,
1175
+ "description": "默认叙事窗口重叠字符数",
1176
+ "label": "默认叙事重叠字符",
1177
+ "ui_type": "number",
1178
+ "required": false,
1179
+ "hidden": false,
1180
+ "disabled": false,
1181
+ "order": 9,
1182
+ "hint": "控制 narrative/聊天日志相邻抽取分块保留多少重叠上下文。",
1183
+ "min": 0,
1184
+ "max": 1600,
1185
+ "step": 50,
1186
+ "choices": null,
1187
+ "advanced": true
1188
+ },
1189
+ "default_factual_target_size": {
1190
+ "name": "default_factual_target_size",
1191
+ "type": "integer",
1192
+ "default": 1200,
1193
+ "description": "默认事实分块目标字符数",
1194
+ "label": "默认事实分块目标",
1195
+ "ui_type": "number",
1196
+ "required": false,
1197
+ "hidden": false,
1198
+ "disabled": false,
1199
+ "order": 10,
1200
+ "hint": "控制 factual 策略结构感知切分时的目标分块长度。",
1201
+ "min": 200,
1202
+ "max": 3200,
1203
+ "step": 100,
1204
+ "choices": null,
1205
+ "advanced": true
1206
+ }
1207
+ }
1208
+ },
1209
+ "web.tuning": {
1210
+ "name": "web.tuning",
1211
+ "title": "调优中心",
1212
+ "description": "控制检索调优任务的队列与默认策略。",
1213
+ "icon": null,
1214
+ "collapsed": false,
1215
+ "order": 16,
1216
+ "fields": {
1217
+ "enabled": {
1218
+ "name": "enabled",
1219
+ "type": "boolean",
1220
+ "default": true,
1221
+ "description": "是否启用调优中心",
1222
+ "label": "启用调优中心",
1223
+ "ui_type": "switch",
1224
+ "required": false,
1225
+ "hidden": false,
1226
+ "disabled": false,
1227
+ "order": 1,
1228
+ "hint": "关闭后调优任务接口不可用。",
1229
+ "choices": null
1230
+ },
1231
+ "poll_interval_ms": {
1232
+ "name": "poll_interval_ms",
1233
+ "type": "integer",
1234
+ "default": 1200,
1235
+ "description": "轮询间隔毫秒数",
1236
+ "label": "轮询间隔(毫秒)",
1237
+ "ui_type": "number",
1238
+ "required": false,
1239
+ "hidden": false,
1240
+ "disabled": false,
1241
+ "order": 3,
1242
+ "hint": "控制前端或宿主轮询调优任务状态的频率。",
1243
+ "min": 200,
1244
+ "max": 60000,
1245
+ "step": 100,
1246
+ "choices": null
1247
+ },
1248
+ "default_intensity": {
1249
+ "name": "default_intensity",
1250
+ "type": "string",
1251
+ "default": "standard",
1252
+ "description": "默认调优强度",
1253
+ "label": "默认调优强度",
1254
+ "ui_type": "select",
1255
+ "required": false,
1256
+ "hidden": false,
1257
+ "disabled": false,
1258
+ "order": 4,
1259
+ "hint": "quick 更快,deep 更彻底,standard 为默认折中。",
1260
+ "choices": [
1261
+ "quick",
1262
+ "standard",
1263
+ "deep"
1264
+ ]
1265
+ },
1266
+ "default_objective": {
1267
+ "name": "default_objective",
1268
+ "type": "string",
1269
+ "default": "precision_priority",
1270
+ "description": "默认调优目标",
1271
+ "label": "默认调优目标",
1272
+ "ui_type": "select",
1273
+ "required": false,
1274
+ "hidden": false,
1275
+ "disabled": false,
1276
+ "order": 5,
1277
+ "hint": "precision_priority 偏准确率,recall_priority 偏召回率。",
1278
+ "choices": [
1279
+ "precision_priority",
1280
+ "balanced",
1281
+ "recall_priority"
1282
+ ]
1283
+ },
1284
+ "default_top_k_eval": {
1285
+ "name": "default_top_k_eval",
1286
+ "type": "integer",
1287
+ "default": 20,
1288
+ "description": "默认评估 top-k",
1289
+ "label": "默认评估 Top-K",
1290
+ "ui_type": "number",
1291
+ "required": false,
1292
+ "hidden": false,
1293
+ "disabled": false,
1294
+ "order": 6,
1295
+ "hint": "调优评估时默认观察的候选深度。",
1296
+ "min": 1,
1297
+ "max": 1000,
1298
+ "step": 1,
1299
+ "choices": null
1300
+ },
1301
+ "default_sample_size": {
1302
+ "name": "default_sample_size",
1303
+ "type": "integer",
1304
+ "default": 24,
1305
+ "description": "默认样本数",
1306
+ "label": "默认样本数",
1307
+ "ui_type": "number",
1308
+ "required": false,
1309
+ "hidden": false,
1310
+ "disabled": false,
1311
+ "order": 7,
1312
+ "hint": "单轮调优默认采样的问题数量。",
1313
+ "min": 1,
1314
+ "max": 1000,
1315
+ "step": 1,
1316
+ "choices": null
1317
+ }
1318
+ }
1319
+ },
1320
+ "web.import.timeout": {
1321
+ "name": "web.import.timeout",
1322
+ "title": "导入超时",
1323
+ "description": "控制 Web Import 中 LLM 调用、迁移/转换子进程与预检步骤的等待时间。",
1324
+ "icon": null,
1325
+ "collapsed": false,
1326
+ "order": 15,
1327
+ "fields": {
1328
+ "llm_call_seconds": {
1329
+ "name": "llm_call_seconds",
1330
+ "type": "number",
1331
+ "default": 240,
1332
+ "description": "单次 LLM 抽取调用超时时间,0 表示不额外限制。",
1333
+ "label": "LLM 单次调用超时(秒)",
1334
+ "ui_type": "number",
1335
+ "required": false,
1336
+ "hidden": false,
1337
+ "disabled": false,
1338
+ "order": 1,
1339
+ "hint": "大量导入时用于避免单个上游请求长时间挂起。",
1340
+ "min": 0,
1341
+ "max": 3600,
1342
+ "step": 1,
1343
+ "choices": null
1344
+ },
1345
+ "convert_preflight_seconds": {
1346
+ "name": "convert_preflight_seconds",
1347
+ "type": "number",
1348
+ "default": 20,
1349
+ "description": "LPMM 转换依赖预检的超时时间。",
1350
+ "label": "转换预检超时(秒)",
1351
+ "ui_type": "number",
1352
+ "required": false,
1353
+ "hidden": false,
1354
+ "disabled": false,
1355
+ "order": 5,
1356
+ "hint": "依赖环境较慢时可以适当调大。",
1357
+ "min": 0.1,
1358
+ "max": 600,
1359
+ "step": 0.1,
1360
+ "choices": null
1361
+ }
1362
+ }
1363
+ },
1364
+ "filter.retrieval.chat_stream": {
1365
+ "name": "filter.retrieval.chat_stream",
1366
+ "title": "普通聊天流跨聊天流检索过滤",
1367
+ "description": "按群组、私聊用户或聊天流裁剪跨聊天流的普通 paragraph/relation 检索命中。",
1368
+ "icon": null,
1369
+ "collapsed": true,
1370
+ "order": 12,
1371
+ "fields": {
1372
+ "enabled": {
1373
+ "name": "enabled",
1374
+ "type": "boolean",
1375
+ "default": false,
1376
+ "description": "是否启用该类型的跨聊天流检索结果后置过滤。",
1377
+ "label": "启用跨聊天流过滤",
1378
+ "ui_type": "switch",
1379
+ "required": false,
1380
+ "hidden": false,
1381
+ "disabled": false,
1382
+ "order": 1,
1383
+ "hint": "仅影响其他聊天流来源的已召回结果,不影响本聊天流读取自身记忆、写入、摘要生成、Episode 生成或人物画像。",
1384
+ "choices": null
1385
+ },
1386
+ "mode": {
1387
+ "name": "mode",
1388
+ "type": "string",
1389
+ "default": "blacklist",
1390
+ "description": "过滤模式",
1391
+ "label": "过滤模式",
1392
+ "ui_type": "select",
1393
+ "required": false,
1394
+ "hidden": false,
1395
+ "disabled": false,
1396
+ "order": 2,
1397
+ "hint": "blacklist 为移除列表中的跨聊天流来源;whitelist 为仅保留列表中的跨聊天流来源。本聊天流来源会直接保留。",
1398
+ "choices": [
1399
+ "blacklist",
1400
+ "whitelist"
1401
+ ]
1402
+ },
1403
+ "chats": {
1404
+ "name": "chats",
1405
+ "type": "array",
1406
+ "default": [],
1407
+ "description": "聊天流列表",
1408
+ "label": "聊天流列表",
1409
+ "ui_type": "list",
1410
+ "required": false,
1411
+ "hidden": false,
1412
+ "disabled": false,
1413
+ "order": 3,
1414
+ "hint": "示例:group:123、user:456、private:456、stream:abc;裸字符串会匹配 stream/group/user 任一 token。只对其他聊天流来源生效。",
1415
+ "item_type": "string",
1416
+ "min_items": 0,
1417
+ "max_items": 500,
1418
+ "placeholder": "group:123",
1419
+ "choices": null
1420
+ }
1421
+ }
1422
+ },
1423
+ "filter.retrieval.chat_summary": {
1424
+ "name": "filter.retrieval.chat_summary",
1425
+ "title": "聊天总结跨聊天流检索过滤",
1426
+ "description": "按群组、私聊用户或聊天流裁剪跨聊天流的 chat_summary 来源检索命中。",
1427
+ "icon": null,
1428
+ "collapsed": true,
1429
+ "order": 13,
1430
+ "fields": {
1431
+ "enabled": {
1432
+ "name": "enabled",
1433
+ "type": "boolean",
1434
+ "default": false,
1435
+ "description": "是否启用该类型的跨聊天流检索结果后置过滤。",
1436
+ "label": "启用跨聊天流过滤",
1437
+ "ui_type": "switch",
1438
+ "required": false,
1439
+ "hidden": false,
1440
+ "disabled": false,
1441
+ "order": 1,
1442
+ "hint": "仅影响其他聊天流来源的已召回结果,不影响本聊天流读取自身记忆、写入、摘要生成、Episode 生成或人物画像。",
1443
+ "choices": null
1444
+ },
1445
+ "mode": {
1446
+ "name": "mode",
1447
+ "type": "string",
1448
+ "default": "blacklist",
1449
+ "description": "过滤模式",
1450
+ "label": "过滤模式",
1451
+ "ui_type": "select",
1452
+ "required": false,
1453
+ "hidden": false,
1454
+ "disabled": false,
1455
+ "order": 2,
1456
+ "hint": "blacklist 为移除列表中的跨聊天流来源;whitelist 为仅保留列表中的跨聊天流来源。本聊天流来源会直接保留。",
1457
+ "choices": [
1458
+ "blacklist",
1459
+ "whitelist"
1460
+ ]
1461
+ },
1462
+ "chats": {
1463
+ "name": "chats",
1464
+ "type": "array",
1465
+ "default": [],
1466
+ "description": "聊天流列表",
1467
+ "label": "聊天流列表",
1468
+ "ui_type": "list",
1469
+ "required": false,
1470
+ "hidden": false,
1471
+ "disabled": false,
1472
+ "order": 3,
1473
+ "hint": "示例:group:123、user:456、private:456、stream:abc;裸字符串会匹配 stream/group/user 任一 token。只对其他聊天流来源生效。",
1474
+ "item_type": "string",
1475
+ "min_items": 0,
1476
+ "max_items": 500,
1477
+ "placeholder": "group:123",
1478
+ "choices": null
1479
+ }
1480
+ }
1481
+ },
1482
+ "filter.retrieval.episode": {
1483
+ "name": "filter.retrieval.episode",
1484
+ "title": "Episode 跨聊天流检索过滤",
1485
+ "description": "按群组、私聊用户或聊天流裁剪跨聊天流的 Episode 检索命中。",
1486
+ "icon": null,
1487
+ "collapsed": true,
1488
+ "order": 14,
1489
+ "fields": {
1490
+ "enabled": {
1491
+ "name": "enabled",
1492
+ "type": "boolean",
1493
+ "default": false,
1494
+ "description": "是否启用该类型的跨聊天流检索结果后置过滤。",
1495
+ "label": "启用跨聊天流过滤",
1496
+ "ui_type": "switch",
1497
+ "required": false,
1498
+ "hidden": false,
1499
+ "disabled": false,
1500
+ "order": 1,
1501
+ "hint": "仅影响其他聊天流来源的已召回结果,不影响本聊天流读取自身记忆、写入、摘要生成、Episode 生成或人物画像。",
1502
+ "choices": null
1503
+ },
1504
+ "mode": {
1505
+ "name": "mode",
1506
+ "type": "string",
1507
+ "default": "blacklist",
1508
+ "description": "过滤模式",
1509
+ "label": "过滤模式",
1510
+ "ui_type": "select",
1511
+ "required": false,
1512
+ "hidden": false,
1513
+ "disabled": false,
1514
+ "order": 2,
1515
+ "hint": "blacklist 为移除列表中的跨聊天流来源;whitelist 为仅保留列表中的跨聊天流来源。本聊天流来源会直接保留。",
1516
+ "choices": [
1517
+ "blacklist",
1518
+ "whitelist"
1519
+ ]
1520
+ },
1521
+ "chats": {
1522
+ "name": "chats",
1523
+ "type": "array",
1524
+ "default": [],
1525
+ "description": "聊天流列表",
1526
+ "label": "聊天流列表",
1527
+ "ui_type": "list",
1528
+ "required": false,
1529
+ "hidden": false,
1530
+ "disabled": false,
1531
+ "order": 3,
1532
+ "hint": "示例:group:123、user:456、private:456、stream:abc;裸字符串会匹配 stream/group/user 任一 token。只对其他聊天流来源生效。",
1533
+ "item_type": "string",
1534
+ "min_items": 0,
1535
+ "max_items": 500,
1536
+ "placeholder": "group:123",
1537
+ "choices": null
1538
+ }
1539
+ }
1540
+ },
1541
+ "retrieval.relation_vectorization": {
1542
+ "name": "retrieval.relation_vectorization",
1543
+ "title": "关系向量化",
1544
+ "description": "控制关系是否写入向量库,以及历史关系向量的回填任务。",
1545
+ "icon": null,
1546
+ "collapsed": false,
1547
+ "order": 7,
1548
+ "fields": {
1549
+ "write_on_import": {
1550
+ "name": "write_on_import",
1551
+ "type": "boolean",
1552
+ "default": true,
1553
+ "description": "导入时是否写入关系向量",
1554
+ "label": "导入时写入关系向量",
1555
+ "ui_type": "switch",
1556
+ "required": false,
1557
+ "hidden": false,
1558
+ "disabled": false,
1559
+ "order": 3,
1560
+ "hint": "开启后,导入摘要、网页或迁移数据时会同步为关系写入向量。",
1561
+ "choices": null
1562
+ }
1563
+ }
1564
+ },
1565
+ "retrieval.vector_pools": {
1566
+ "name": "retrieval.vector_pools",
1567
+ "title": "向量池检索",
1568
+ "description": "控制是否启用段落向量池与图谱向量池分离检索,以及双池检索的候选数和权重。",
1569
+ "icon": null,
1570
+ "collapsed": false,
1571
+ "order": 8,
1572
+ "fields": {
1573
+ "paragraph_top_k": {
1574
+ "name": "paragraph_top_k",
1575
+ "type": "integer",
1576
+ "default": 20,
1577
+ "description": "段落向量池候选数",
1578
+ "label": "段落池候选数",
1579
+ "ui_type": "number",
1580
+ "required": false,
1581
+ "hidden": false,
1582
+ "disabled": false,
1583
+ "order": 2,
1584
+ "hint": "dual 模式下从段落向量池召回的候选数量。",
1585
+ "choices": null,
1586
+ "min": 1,
1587
+ "max": 1000
1588
+ },
1589
+ "graph_top_k": {
1590
+ "name": "graph_top_k",
1591
+ "type": "integer",
1592
+ "default": 40,
1593
+ "description": "图谱向量池候选数",
1594
+ "label": "图谱池候选数",
1595
+ "ui_type": "number",
1596
+ "required": false,
1597
+ "hidden": false,
1598
+ "disabled": false,
1599
+ "order": 3,
1600
+ "hint": "dual 模式下从关系和实体图谱池召回的候选数量。",
1601
+ "choices": null,
1602
+ "min": 1,
1603
+ "max": 1000
1604
+ },
1605
+ "graph_expand_paragraph_k": {
1606
+ "name": "graph_expand_paragraph_k",
1607
+ "type": "integer",
1608
+ "default": 80,
1609
+ "description": "图谱证据展开段落上限",
1610
+ "label": "图谱展开段落上限",
1611
+ "ui_type": "number",
1612
+ "required": false,
1613
+ "hidden": false,
1614
+ "disabled": false,
1615
+ "order": 4,
1616
+ "hint": "限制关系和实体命中映射回段落后的总展开规模。",
1617
+ "choices": null,
1618
+ "min": 1,
1619
+ "max": 10000
1620
+ },
1621
+ "relation_intent.graph_top_k": {
1622
+ "name": "relation_intent.graph_top_k",
1623
+ "type": "integer",
1624
+ "default": 80,
1625
+ "description": "关系意图命中时的图谱池候选数",
1626
+ "label": "关系意图图谱候选数",
1627
+ "ui_type": "number",
1628
+ "required": false,
1629
+ "hidden": false,
1630
+ "disabled": false,
1631
+ "order": 12,
1632
+ "hint": "查询被判断为关系意图时使用。",
1633
+ "choices": null,
1634
+ "min": 1,
1635
+ "max": 1000
1636
+ }
1637
+ }
1638
+ }
1639
+ }
1640
+ }