cnhkmcp 2.1.3__py3-none-any.whl → 2.1.5__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 (194) hide show
  1. cnhkmcp/__init__.py +126 -0
  2. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/README.md +38 -0
  3. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/ace.log +0 -0
  4. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/config.json +6 -0
  5. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/ace_lib.py +1514 -0
  6. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/fetch_all_datasets.py +157 -0
  7. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/fetch_all_documentation.py +132 -0
  8. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/fetch_all_operators.py +99 -0
  9. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/helpful_functions.py +180 -0
  10. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/icon.ico +0 -0
  11. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/icon.png +0 -0
  12. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_10_Steps_to_Start_on_BRAIN_documentation.json +14 -0
  13. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Intermediate_Pack_-_Improve_your_Alpha_2_2_documentation.json +174 -0
  14. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Intermediate_Pack_-_Understand_Results_1_2_documentation.json +167 -0
  15. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Introduction_to_Alphas_documentation.json +145 -0
  16. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_Introduction_to_BRAIN_Expression_Language_documentation.json +107 -0
  17. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001_WorldQuant_Challenge_documentation.json +56 -0
  18. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/001__Read_this_First_-_Starter_Pack_documentation.json +404 -0
  19. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002_How_to_choose_the_Simulation_Settings_documentation.json +268 -0
  20. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002_Simulate_your_first_Alpha_documentation.json +88 -0
  21. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__Alpha_Examples_for_Beginners_documentation.json +254 -0
  22. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__Alpha_Examples_for_Bronze_Users_documentation.json +114 -0
  23. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__Alpha_Examples_for_Silver_Users_documentation.json +79 -0
  24. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/002__How_BRAIN_works_documentation.json +184 -0
  25. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/003_Clear_these_tests_before_submitting_an_Alpha_documentation.json +388 -0
  26. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/003_Parameters_in_the_Simulation_results_documentation.json +243 -0
  27. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Group_Data_Fields_documentation.json +69 -0
  28. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_How_to_use_the_Data_Explorer_documentation.json +142 -0
  29. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Model77_dataset_documentation.json +14 -0
  30. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Sentiment1_dataset_documentation.json +14 -0
  31. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Understanding_Data_in_BRAIN_Key_Concepts_and_Tips_documentation.json +182 -0
  32. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/004_Vector_Data_Fields_documentation.json +30 -0
  33. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Crowding_Risk-Neutralized_Alphas_documentation.json +64 -0
  34. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_D0_documentation.json +66 -0
  35. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Double_Neutralization_documentation.json +53 -0
  36. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Fast_D1_Documentation_documentation.json +304 -0
  37. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Investability_Constrained_Metrics_documentation.json +129 -0
  38. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Must-read_posts_How_to_improve_your_Alphas_documentation.json +14 -0
  39. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Neutralization_documentation.json +29 -0
  40. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_RAM_Risk-Neutralized_Alphas_documentation.json +64 -0
  41. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Risk_Neutralization_Default_setting_documentation.json +75 -0
  42. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Risk_Neutralized_Alphas_documentation.json +171 -0
  43. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/005_Statistical_Risk-Neutralized_Alphas_documentation.json +51 -0
  44. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_EUR_TOP2500_Universe_documentation.json +35 -0
  45. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_GLB_TOPDIV3000_Universe_documentation.json +48 -0
  46. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Getting_Started_China_Research_for_Consultants_Gold_documentation.json +142 -0
  47. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Getting_started_on_Illiquid_Universes_Gold_documentation.json +46 -0
  48. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Getting_started_with_USA_TOPSP500_universe_Gold_documentation.json +62 -0
  49. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_Global_Alphas_Gold_documentation.json +66 -0
  50. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/006_India_Alphas_documentation.json +35 -0
  51. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Dos_and_Don_ts_documentation.json +35 -0
  52. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Features_documentation.json +239 -0
  53. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Simulation_Features_documentation.json +149 -0
  54. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Consultant_Submission_Tests_documentation.json +363 -0
  55. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Finding_Consultant_Alphas_documentation.json +333 -0
  56. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Power_Pool_Alphas_documentation.json +14 -0
  57. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Research_Advisory_Program_documentation.json +35 -0
  58. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Starting_Guide_for_Research_Consultants_documentation.json +14 -0
  59. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Visualization_Tool_documentation.json +99 -0
  60. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007_Your_Advisor_-_Kunqi_Jiang_documentation.json +53 -0
  61. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007__Brain_Genius_documentation.json +288 -0
  62. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/007__Single_Dataset_Alphas_documentation.json +41 -0
  63. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Advisory_Theme_Calendar_documentation.json +14 -0
  64. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Multiplier_Rules_documentation.json +14 -0
  65. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Overview_of_Themes_documentation.json +14 -0
  66. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/008_Theme_Calendar_documentation.json +14 -0
  67. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Combo_Expression_documentation.json +272 -0
  68. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Global_SuperAlphas_documentation.json +14 -0
  69. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Helpful_Tips_documentation.json +58 -0
  70. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_Selection_Expression_documentation.json +1546 -0
  71. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_SuperAlpha_Operators_documentation.json +890 -0
  72. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_SuperAlpha_Results_documentation.json +83 -0
  73. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/009_What_is_a_SuperAlpha_documentation.json +261 -0
  74. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/010_BRAIN_API_documentation.json +515 -0
  75. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/010_Documentation_for_ACE_API_Library_Gold_documentation.json +27 -0
  76. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/010__Understanding_simulation_limits_documentation.json +210 -0
  77. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/arithmetic_operators.json +209 -0
  78. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/cross_sectional_operators.json +98 -0
  79. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/group_operators.json +121 -0
  80. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/logical_operators.json +145 -0
  81. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/reduce_operators.json +156 -0
  82. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/special_operators.json +35 -0
  83. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/test.txt +1 -0
  84. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/time_series_operators.json +386 -0
  85. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/transformational_operators.json +61 -0
  86. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/vector_operators.json +38 -0
  87. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/main.py +576 -0
  88. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/process_knowledge_base.py +281 -0
  89. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/rag_engine.py +408 -0
  90. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/requirements.txt +7 -0
  91. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/run.bat +3 -0
  92. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/vector_db/_manifest.json +302 -0
  93. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/vector_db/_meta.json +1 -0
  94. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/vector_db/chroma.sqlite3 +0 -0
  95. cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242//321/211/320/266/320/246/321/206/320/274/320/261/321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/231/320/243/321/205/342/225/235/320/220/321/206/320/230/320/241.py +265 -0
  96. cnhkmcp/untracked/APP/.gitignore +32 -0
  97. cnhkmcp/untracked/APP/MODULAR_STRUCTURE.md +112 -0
  98. cnhkmcp/untracked/APP/README.md +309 -0
  99. cnhkmcp/untracked/APP/Tranformer/Transformer.py +4989 -0
  100. cnhkmcp/untracked/APP/Tranformer/ace.log +0 -0
  101. cnhkmcp/untracked/APP/Tranformer/ace_lib.py +1514 -0
  102. cnhkmcp/untracked/APP/Tranformer/helpful_functions.py +180 -0
  103. cnhkmcp/untracked/APP/Tranformer/output/Alpha_candidates.json +7187 -0
  104. cnhkmcp/untracked/APP/Tranformer/output/Alpha_candidates_/321/207/320/264/342/225/221/321/204/342/225/233/320/233.json +654 -0
  105. cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_error.json +1 -0
  106. cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_success.json +47312 -0
  107. cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_/321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/320/237/320/277/321/207/320/253/342/224/244/321/206/320/236/320/265/321/210/342/225/234/342/225/234/321/205/320/225/320/265Machine_lib.json +22 -0
  108. cnhkmcp/untracked/APP/Tranformer/parsetab.py +60 -0
  109. cnhkmcp/untracked/APP/Tranformer/template_summary.txt +3182 -0
  110. cnhkmcp/untracked/APP/Tranformer/transformer_config.json +7 -0
  111. cnhkmcp/untracked/APP/Tranformer/validator.py +889 -0
  112. cnhkmcp/untracked/APP/ace.log +69 -0
  113. cnhkmcp/untracked/APP/ace_lib.py +1514 -0
  114. cnhkmcp/untracked/APP/blueprints/__init__.py +6 -0
  115. cnhkmcp/untracked/APP/blueprints/feature_engineering.py +347 -0
  116. cnhkmcp/untracked/APP/blueprints/idea_house.py +221 -0
  117. cnhkmcp/untracked/APP/blueprints/inspiration_house.py +432 -0
  118. cnhkmcp/untracked/APP/blueprints/paper_analysis.py +570 -0
  119. cnhkmcp/untracked/APP/custom_templates/templates.json +1257 -0
  120. cnhkmcp/untracked/APP/give_me_idea/BRAIN_Alpha_Template_Expert_SystemPrompt.md +400 -0
  121. cnhkmcp/untracked/APP/give_me_idea/ace_lib.py +1514 -0
  122. cnhkmcp/untracked/APP/give_me_idea/alpha_data_specific_template_master.py +252 -0
  123. cnhkmcp/untracked/APP/give_me_idea/fetch_all_datasets.py +157 -0
  124. cnhkmcp/untracked/APP/give_me_idea/fetch_all_operators.py +99 -0
  125. cnhkmcp/untracked/APP/give_me_idea/helpful_functions.py +180 -0
  126. cnhkmcp/untracked/APP/give_me_idea/what_is_Alpha_template.md +11 -0
  127. cnhkmcp/untracked/APP/helpful_functions.py +180 -0
  128. cnhkmcp/untracked/APP/hkSimulator/ace_lib.py +1501 -0
  129. cnhkmcp/untracked/APP/hkSimulator/autosimulator.py +447 -0
  130. cnhkmcp/untracked/APP/hkSimulator/helpful_functions.py +180 -0
  131. cnhkmcp/untracked/APP/mirror_config.txt +20 -0
  132. cnhkmcp/untracked/APP/operaters.csv +129 -0
  133. cnhkmcp/untracked/APP/requirements.txt +53 -0
  134. cnhkmcp/untracked/APP/run_app.bat +28 -0
  135. cnhkmcp/untracked/APP/run_app.sh +34 -0
  136. cnhkmcp/untracked/APP/setup_tsinghua.bat +39 -0
  137. cnhkmcp/untracked/APP/setup_tsinghua.sh +43 -0
  138. cnhkmcp/untracked/APP/simulator/alpha_submitter.py +404 -0
  139. cnhkmcp/untracked/APP/simulator/simulator_wqb.py +618 -0
  140. cnhkmcp/untracked/APP/ssrn-3332513.pdf +109188 -19
  141. cnhkmcp/untracked/APP/static/brain.js +589 -0
  142. cnhkmcp/untracked/APP/static/decoder.js +1540 -0
  143. cnhkmcp/untracked/APP/static/feature_engineering.js +1729 -0
  144. cnhkmcp/untracked/APP/static/idea_house.js +937 -0
  145. cnhkmcp/untracked/APP/static/inspiration.js +465 -0
  146. cnhkmcp/untracked/APP/static/inspiration_house.js +868 -0
  147. cnhkmcp/untracked/APP/static/paper_analysis.js +390 -0
  148. cnhkmcp/untracked/APP/static/script.js +3082 -0
  149. cnhkmcp/untracked/APP/static/simulator.js +597 -0
  150. cnhkmcp/untracked/APP/static/styles.css +3127 -0
  151. cnhkmcp/untracked/APP/static/usage_widget.js +508 -0
  152. cnhkmcp/untracked/APP/templates/alpha_inspector.html +511 -0
  153. cnhkmcp/untracked/APP/templates/feature_engineering.html +960 -0
  154. cnhkmcp/untracked/APP/templates/idea_house.html +564 -0
  155. cnhkmcp/untracked/APP/templates/index.html +932 -0
  156. cnhkmcp/untracked/APP/templates/inspiration_house.html +861 -0
  157. cnhkmcp/untracked/APP/templates/paper_analysis.html +91 -0
  158. cnhkmcp/untracked/APP/templates/simulator.html +343 -0
  159. cnhkmcp/untracked/APP/templates/transformer_web.html +580 -0
  160. cnhkmcp/untracked/APP/usage.md +351 -0
  161. cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/ace_lib.py +1514 -0
  162. cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/brain_alpha_inspector.py +712 -0
  163. cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/helpful_functions.py +180 -0
  164. cnhkmcp/untracked/APP//321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/231/320/243/321/205/342/225/235/320/220/321/206/320/230/320/241.py +2460 -0
  165. cnhkmcp/untracked/__init__.py +0 -0
  166. cnhkmcp/untracked/arXiv_API_Tool_Manual.md +490 -0
  167. cnhkmcp/untracked/arxiv_api.py +229 -0
  168. cnhkmcp/untracked/back_up/forum_functions.py +998 -0
  169. cnhkmcp/untracked/back_up/platform_functions.py +2886 -0
  170. cnhkmcp/untracked/brain-consultant.md +31 -0
  171. cnhkmcp/untracked/forum_functions.py +407 -0
  172. cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/forum_functions.py +407 -0
  173. cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/platform_functions.py +2601 -0
  174. cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/user_config.json +31 -0
  175. cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272//321/210/320/276/320/271AI/321/210/320/277/342/225/227/321/210/342/224/220/320/251/321/204/342/225/225/320/272/321/206/320/246/320/227/321/206/320/261/320/263/321/206/320/255/320/265/321/205/320/275/320/266/321/204/342/225/235/320/252/321/204/342/225/225/320/233/321/210/342/225/234/342/225/234/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270.md +101 -0
  176. cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272//321/211/320/225/320/235/321/207/342/225/234/320/276/321/205/320/231/320/235/321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/230/320/241_/321/205/320/276/320/231/321/210/320/263/320/225/321/205/342/224/220/320/225/321/210/320/266/320/221/321/204/342/225/233/320/255/321/210/342/225/241/320/246/321/205/320/234/320/225.py +190 -0
  177. cnhkmcp/untracked/platform_functions.py +2601 -0
  178. cnhkmcp/untracked/sample_mcp_config.json +11 -0
  179. cnhkmcp/untracked/user_config.json +31 -0
  180. cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/320/237/320/222/321/210/320/220/320/223/321/206/320/246/320/227/321/206/320/261/320/263_BRAIN_Alpha_Test_Requirements_and_Tips.md +202 -0
  181. cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_Alpha_explaination_workflow.md +56 -0
  182. cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_BRAIN_6_Tips_Datafield_Exploration_Guide.md +194 -0
  183. cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_BRAIN_Alpha_Improvement_Workflow.md +101 -0
  184. cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_Dataset_Exploration_Expert_Manual.md +436 -0
  185. cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_daily_report_workflow.md +128 -0
  186. cnhkmcp/untracked//321/211/320/225/320/235/321/207/342/225/234/320/276/321/205/320/231/320/235/321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/230/320/241_/321/205/320/276/320/231/321/210/320/263/320/225/321/205/342/224/220/320/225/321/210/320/266/320/221/321/204/342/225/233/320/255/321/210/342/225/241/320/246/321/205/320/234/320/225.py +192 -0
  187. {cnhkmcp-2.1.3.dist-info → cnhkmcp-2.1.5.dist-info}/METADATA +1 -1
  188. cnhkmcp-2.1.5.dist-info/RECORD +192 -0
  189. cnhkmcp-2.1.5.dist-info/top_level.txt +1 -0
  190. cnhkmcp-2.1.3.dist-info/RECORD +0 -6
  191. cnhkmcp-2.1.3.dist-info/top_level.txt +0 -1
  192. {cnhkmcp-2.1.3.dist-info → cnhkmcp-2.1.5.dist-info}/WHEEL +0 -0
  193. {cnhkmcp-2.1.3.dist-info → cnhkmcp-2.1.5.dist-info}/entry_points.txt +0 -0
  194. {cnhkmcp-2.1.3.dist-info → cnhkmcp-2.1.5.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,351 @@
1
+ # 使用说明(usage.md)
2
+
3
+ 本文档面向本仓库的本地 Flask Web APP,聚焦“如何在网页上使用各功能 + 每个功能的目的”。不包含 bug 修复与代码改动建议。
4
+
5
+ ---
6
+
7
+ ## 1. 启动与访问
8
+
9
+ 1. 在 `APP/` 目录启动:
10
+ - Windows:双击 `run_app.bat`(或在终端运行它)
11
+ - 或直接运行:`python 运行打开我.py`
12
+ 2. 浏览器打开:`http://localhost:5000/`
13
+
14
+ > 说明:项目内的 `README.md` 可能仍写 `python app.py`,但本工作区实际入口脚本是 `运行打开我.py`。
15
+
16
+ ---
17
+
18
+ ## 2. 几个重要概念(你会频繁用到)
19
+
20
+ - **模板占位符**:在表达式里用形如 `<xxx/>` 的占位符,后续通过弹窗为每个模板配置一组可替换的值。
21
+ - **两种生成方式**:
22
+ - `full_iteration`:枚举所有组合
23
+ - `random_iteration`:在组合空间中抽样
24
+ - **Settings(回测设置)追加**:在“Results”页点 `Append Expression with Settings`,生成可供回测器使用的 JSON:`expressions_with_settings.json`。
25
+ - **浏览器存储**:
26
+ - BRAIN 的 `session_id` 会存到浏览器 `localStorage`(键名类似 `brain_session_id`)
27
+ - Deepseek/Kimi 的 API Key 等通常存到 `sessionStorage`
28
+ - 关闭标签页/浏览器后,`sessionStorage` 可能会丢失,需要重新填。
29
+
30
+ ---
31
+
32
+ ## 3. 快速上手(最常用的一条完整链路)
33
+
34
+ 目标:从“模板表达式”生成一批可回测的 Alpha 表达式,并用 Web 回测器批量回测。
35
+
36
+ 1. 进入首页(`/`),在 **Expression Editor** 里编辑表达式(可包含 `<xxx/>` 模板)。
37
+ 2. 右侧 **Detected Templates** 会自动识别模板;点击模板会弹出配置窗口:
38
+ - 普通模板:在弹窗里用英文逗号分隔输入候选值
39
+ - 若出现 `Choose from BRAIN`:可从 BRAIN 拉取 Operators 或 DataFields(需要先连接 BRAIN)
40
+ 3. 点击右侧 `Next: Decode Templates →` 进入 **Decode Templates**:
41
+ - 点 `full_iteration` 生成全量
42
+ - 或点 `random_iteration` 并设置 `Count`
43
+ 4. 进入 **Results**:
44
+ - 点 `Download All Expression in txt`:下载纯文本表达式列表
45
+ - 点 `Append Expression with Settings`:填写/选择 settings 后下载 `expressions_with_settings.json`
46
+ 5. 回到首页点 `🚀 打开回测器`,在弹窗选择 **Web 界面**(会打开 `/simulator`):
47
+ - 上传 `expressions_with_settings.json`
48
+ - 填入 BRAIN 账号密码
49
+ - 点 `🔗 Test Connection`(可选但建议)
50
+ - 点 `🚀 Start Simulation` 开始批量回测
51
+ 6. 在右侧日志区查看运行进度;必要时可 `⏹️ Stop`。
52
+
53
+ ---
54
+
55
+ ## 4. 首页(`/`):模板解码器
56
+
57
+ ### 4.1 顶部快捷入口(目的与用法)
58
+
59
+ - `Connect to BRAIN`
60
+ - 功能:让模板配置时能“从 BRAIN 选择 Operators/DataFields”,并把 operators 缓存在浏览器里供其它页面使用。
61
+ - 用法:点击后弹出登录框,输入 `Username / Password`,点 `Connect`。
62
+ - 若触发额外验证:页面会出现 `Complete Authentication`(或类似)按钮/提示,按提示在新窗口完成验证后回到页面。
63
+
64
+ - `🚀 打开回测器`
65
+ - 功能:批量回测表达式。
66
+ - 用法:点击后会弹窗让你选择:
67
+ - **命令行界面**:启动 `simulator/simulator_wqb.py`(在新终端窗口运行)
68
+ - **Web 界面**:打开 `/simulator`(推荐)
69
+
70
+ - `📤 Alpha_Submitter提交器`
71
+ - 功能:打开提交相关的命令行工具。
72
+ - 用法:点击后会在新终端窗口运行 `simulator/alpha_submitter.py`。
73
+
74
+ - `🚀 Open Simulator_hk`
75
+ - 功能:打开港股相关的命令行回测工具。
76
+ - 用法:点击后会在新终端窗口运行 `hkSimulator/autosimulator.py`。
77
+
78
+ - `七十二变`
79
+ - 功能:基于“种子 Alpha”自动生成大量变体(模板和/或表达式)。
80
+ - 用法:点击后弹窗让你选择:
81
+ - **命令行界面**:启动 `Tranformer/Transformer.py`(新终端窗口)
82
+ - **Web 界面**:打开 `/transformer-web`(推荐)
83
+
84
+ - `🌉 缘分一道桥`
85
+ - 功能:把一批 Alpha 跨 Region/Universe/Delay 寻找可用字段组合,并生成待回测表达式。
86
+ - 用法:点击进入 `/alpha_inspector`。
87
+
88
+ - `AI创意工坊`:进入 `/inspiration-house/`(Operator 建议/打分)。
89
+ - `论文分析`:进入 `/paper-analysis/`(上传论文,Deepseek 分析关键词/摘要/公式)。
90
+ - `数据字段指南`:进入 `/feature-engineering/`(多步 DataField 探索建议)。
91
+
92
+ ### 4.2 模板空间(“模板管理/导入导出/接 72 变”)
93
+
94
+ 在首页的“模板空间”里,你会看到:
95
+
96
+ - 示例模板按钮:如 `Vector数据处理模板`、`单字段深度处理` 等。
97
+ - 用户自建模板:通过 `Save Current Template` 保存当前编辑器内容。
98
+ - 72 变模板:通过“加载72变生成的模板”导入。
99
+
100
+ 可用按钮:
101
+ - `Save Current Template`:保存当前编辑器内容到本地存储。
102
+ - `Overwrite Existing`:覆盖已存在的同名模板。
103
+
104
+ ### 4.3 找灵感 (Alpha Inspiration Master)
105
+
106
+ 位于编辑器工具栏的 `💡 找灵感` 按钮,提供基于 LLM (如 Kimi/Moonshot) 的 Alpha 灵感生成功能。
107
+
108
+ **功能流程:**
109
+ 1. **前置条件**:需先登录 BRAIN(点击 `Connect to BRAIN`)。
110
+ 2. **打开工具**:点击编辑器上方的 `💡 找灵感` 按钮,打开配置弹窗。
111
+ 3. **配置 LLM**:
112
+ - 填入 Base URL (默认 Moonshot API)
113
+ - 填入 API Key
114
+ - 选择模型 (如 `kimi-k2-turbo-preview`)
115
+ 4. **选择数据**:
116
+ - 选择 Region / Universe / Delay
117
+ - 搜索并选择一个 Dataset (如 `analyst10`)
118
+ - 系统会自动拉取该 Dataset 的字段信息和 BRAIN 的 Operators。
119
+ 5. **生成灵感**:
120
+ - 点击 `Generate Alpha Templates`。
121
+ - LLM 会根据字段含义和算子文档,推荐一批 Alpha 模板。
122
+ 6. **使用结果**:
123
+ - 生成的模板可以直接复制到编辑器中使用,或下载保存。
124
+
125
+ ---
126
+
127
+ ## 5. 进阶功能页
128
+ - `只展示用户自建模板`:切换模板按钮区的显示范围。
129
+ - `📤 导出用户自建模板`:导出自建模板为 JSON 文件。
130
+ - `📥 导入用户自建模板`:导入之前导出的 JSON。
131
+ - `🤖 加载72变生成的模板`:选择 72 变下载的 `Alpha_candidates.json`(或类似结构文件),把“模板候选”加入模板空间。
132
+ - `📄 载入72变生成的表达式`:导入“表达式列表 JSON”。
133
+ - 常见来源:72 变 Web 下载的 `Alpha_generated_expressions_success.json`
134
+ - 页面也支持载入“JSON 数组(每项为字符串表达式)”的文件
135
+
136
+ ### 4.4 Expression Editor(编辑器页)
137
+
138
+ 功能:编写/粘贴带模板的表达式,并进行基础语法检查与模板检测。
139
+
140
+ 常用操作:
141
+
142
+ - `Clear`:清空编辑器。
143
+ - `Save Current Template`:把当前编辑器内容保存为“用户自建模板”。
144
+ - `Overwrite Existing`:覆盖已有模板(用于更新同名模板)。
145
+
146
+ 右侧信息栏:
147
+
148
+ - `Detected Templates`:自动列出识别到的 `<xxx/>` 模板。
149
+ - `Grammar Rules`:展示此编辑器的语法规则(如分号、注释等)。
150
+
151
+ ### 4.5 Decode Templates(解码页)
152
+
153
+ 功能:把模板的候选值做组合,生成最终表达式列表。
154
+
155
+ - `full_iteration`:生成所有组合。
156
+ - `random_iteration`:抽样生成;右侧 `Count` 输入抽样数量。
157
+
158
+ ### 4.6 Results(结果页)
159
+
160
+ 功能:查看/下载生成的表达式,并将表达式与 settings 组合成回测 JSON。
161
+
162
+ - `Download All Expression in txt`:下载表达式纯文本。
163
+ - `Append Expression with Settings`:打开 settings 配置表。
164
+ - 常见字段:`region / universe / delay / decay / neutralization ...`
165
+ - 配置完成后会下载:`expressions_with_settings.json`
166
+
167
+ ---
168
+
169
+ ## 5. Web 回测器(`/simulator`)
170
+
171
+ 功能:把 `expressions_with_settings.json` 批量发送到 BRAIN 做 simulation,并在页面查看日志。
172
+
173
+ ### 5.1 需要准备什么
174
+
175
+ - 文件:`expressions_with_settings.json`(通常来自首页 Results 页的 settings 追加功能)
176
+ - 账号:WorldQuant BRAIN 用户名密码
177
+
178
+ ### 5.2 页面字段与按钮
179
+
180
+ - `📁 Expressions JSON File`:上传 JSON(提示:`Select expressions_with_settings.json file`)
181
+ - `👤 BRAIN Username / 🔒 BRAIN Password`
182
+ - `🎯 Starting Position`:从第 N 条表达式开始(0-based)
183
+ - `⚡ Concurrent Simulations`:并发回测数量
184
+ - `🔀 Random Shuffle`:随机打乱表达式顺序
185
+ - `🎛️ Multi-Simulation Mode`:多表达式合并回测槽位(展开后设置 `📊 Alphas per Slot`)
186
+ - `🔗 Test Connection`:测试登录/连接
187
+ - `🚀 Start Simulation`:开始
188
+ - `⏹️ Stop`:停止
189
+
190
+ ### 5.3 日志查看
191
+
192
+ 右侧 `📊 Simulation Logs & Status`:
193
+
194
+ - 可用 `📁 Select Log File` 下拉选择历史日志
195
+ - `🔄 Refresh` 刷新日志列表
196
+ - 中央日志窗口持续输出运行信息
197
+
198
+ ---
199
+
200
+ ## 6. 七十二变(Transformer)Web(`/transformer-web`)
201
+
202
+ 功能:输入“种子 Alpha ID”,结合 LLM + BRAIN 信息,生成模板/表达式的变体,并提供下载。
203
+
204
+ ### 6.1 基本步骤
205
+
206
+ 1. 在 `Configuration` 区填写 LLM 参数:
207
+ - `LLM Model Name`(默认 `kimi-k2-turbo-preview`)
208
+ - `LLM API Key`
209
+ - `LLM Base URL`(默认 `https://api.moonshot.cn/v1`)
210
+ 2. 点击 `Test LLM Connection`,显示成功后继续。
211
+ 3. 填写 BRAIN 账号:`BRAIN Username / BRAIN Password`,点 `Login & Fetch Options`。
212
+ 4. 填写/调整 `Template Summary`(可点 `📂 Load from File` 导入 txt/md)。
213
+ 5. 填 `Alpha ID`,设置 `Datafield Top N`。
214
+ 6. 可选:选择目标 `region / delay / universe`,以及“目标数据类别(可多选)”。
215
+ - **Data Type**:默认为 `MATRIX`。若选择 `VECTOR`,会弹出警告提示,需确认原型 Alpha 正确使用了 vector operator。
216
+ 7. 点 `Run Transformer`,右侧 `Output Log` 会滚动输出。
217
+ 8. 生成结束后,页面出现下载区:
218
+ - `Download Alpha_candidates.json`:模板文件(可回首页“加载72变生成的模板”再精细化改)
219
+ - `Download Alpha_generated_expressions_success.json`:可用表达式列表(可回首页“载入72变生成的表达式”或进入回测器)
220
+ - `Download Alpha_generated_expressions_error.json`:被过滤/报错的表达式(用于排查模板质量)
221
+
222
+ ---
223
+
224
+ ## 7. 缘分一道桥(`/alpha_inspector`)
225
+
226
+ 功能:批量获取 Alpha(按日期范围或指定 ID),分析字段在不同 Region/Universe/Delay 的可用性,生成新的表达式,并提供“下载待回测/排队回测”。
227
+
228
+ ### 7.1 使用步骤
229
+
230
+ 1. 进入页面后先在“登录 BRAIN”区输入用户名(邮箱)与密码,点 `登录`。
231
+ 2. 在“选择模式”里选择:
232
+ - `按日期范围`:填开始/结束日期(页面提示不建议超过 30 天)
233
+ - `指定 Alpha ID`:在文本框里输入多个 ID(逗号/空格/换行分隔)
234
+ 3. 点击 `获取 Alpha 并分析`。
235
+ 4. 结果区会展示 Alpha 列表(可展开查看详情)。
236
+ 5. 需要批量回测时:
237
+ - 点 `下载所有待回测Alpha`:把待回测表达式下载到本地
238
+ - 或点 `一键全部排队回测`:在本页串行排队回测(页面提示:中途关闭页面会中断队列)
239
+
240
+ ---
241
+
242
+ ## 8. AI创意工坊(`/inspiration-house/`)
243
+
244
+ 功能:基于你的“研究目标 + 当前表达式”,对大量 operator 做 AI 评价/打分,给出“加哪些 operator 更可能改进目标”的建议。
245
+
246
+ ### 8.1 先配置模型
247
+
248
+ - 在 `API Configuration`:
249
+ - `AI Model Provider`:Deepseek / Kimi
250
+ - `API Key`
251
+ - `Model Name`(示例:`deepseek-chat` 或 `kimi-k2-0711-preview`)
252
+ - `Worker Configuration`(`batchSize`):批处理大小
253
+ - 点 `Test & Save Configuration`
254
+
255
+ ### 8.2 设置目标与表达式
256
+
257
+ - `🎯 Quant Research Target`:点 `Edit Target`,填写你的目标(例如降低换手、提高 Sharpe、降低回撤等)
258
+ - `📝 Current Expression`:
259
+ - 输入表达式
260
+ - 或点 `Load from BRAIN`(从已连接的 BRAIN 缓存/接口获取)
261
+
262
+ ### 8.3 开始评价与导出
263
+
264
+ - 点 `Start AI Evaluation`
265
+ - 可用筛选:Min/Max Score、只看高分/中分/低分
266
+ - `Export Results` 导出结果
267
+
268
+ > 建议:先在首页 `Connect to BRAIN`,让 operator 列表更完整。
269
+
270
+ ---
271
+
272
+ ## 9. 论文分析(`/paper-analysis/`)
273
+
274
+ 功能:上传论文文件,用 Deepseek 做关键词/摘要/公式(页面里称 Formulas)提取与整理。
275
+
276
+ 使用步骤:
277
+
278
+ 1. 在 `Deepseek API Configuration` 输入 `API Key`,点 `Save API Key`(会测试连接)。
279
+ 2. 在 `Upload Paper` 上传文件(支持:PDF/TXT/DOC/DOCX/RTF/LaTeX/Markdown)。
280
+ 3. 在 `Analysis Options` 勾选需要的内容:
281
+ - `Extract Mathematical Formulas`
282
+ - `Extract Keywords`
283
+ - `Generate Summary`
284
+ 4. 点 `Analyze Paper`。
285
+ 5. 在结果区切换 `Keywords / Summary / Formulas` 查看。
286
+ 6. 点 `Export Results` 导出。
287
+
288
+ ---
289
+
290
+ ## 10. 数据字段指南(Feature Engineering)(`/feature-engineering/`)
291
+
292
+ 功能:以“多步 pipeline”的方式,让 AI 给出 DataField 探索/加工/组合的推荐方案;支持编辑 system prompt、导出 pipeline。
293
+
294
+ 使用步骤:
295
+
296
+ 1. 在 `API Configuration` 配置 Deepseek/Kimi:Provider、API Key、Model Name,点 `Test & Save Configuration`。
297
+ 2. 在 `Start New Feature Engineering Pipeline`:
298
+ - 点 `Load Question Template` 生成模板
299
+ - 在 `Question Template` 中填入你当前 datafield、描述、EDA 观察等
300
+ - 如需:点 `Edit System Prompt` 调整提示词(也可 `Load Default Prompt`)
301
+ 3. 点 `Get AI Recommendations`。
302
+ 4. 在 `AI Recommendations` 区查看推荐选项:
303
+ - `Clear & Start Over`:清空并重新开始
304
+ - `Export Pipeline`:导出 pipeline
305
+
306
+ ---
307
+
308
+ ## 11. 外部账号与 Key:去哪里申请、在哪填、怎么验证
309
+
310
+ > 网址/入口可能随平台更新而变化;若打不开,以平台官网的“API / 开发者 / Keys”入口为准。
311
+
312
+ ### 11.1 WorldQuant BRAIN(账号)
313
+
314
+ - 去哪申请:WorldQuant BRAIN 官网注册账号。
315
+ - 在哪填:
316
+ - 首页 `Connect to BRAIN`
317
+ - Web 回测器 `/simulator`
318
+ - 72 变 `/transformer-web`
319
+ - 缘分一道桥 `/alpha_inspector`
320
+ - 怎么验证:各页面都有登录/连接测试流程(如 `Connect`、`Test Connection`、`Login & Fetch Options`)。
321
+
322
+ ### 11.2 Deepseek(API Key)
323
+
324
+ - 去哪申请:Deepseek 开放平台/开发者平台创建 API Key。
325
+ - 在哪填:
326
+ - `/paper-analysis/`:`API Key` → `Save API Key`
327
+ - `/inspiration-house/`:Provider 选 `Deepseek`,填 `API Key` → `Test & Save Configuration`
328
+ - `/feature-engineering/`:Provider 选 `Deepseek`,填 `API Key` → `Test & Save Configuration`
329
+ - 怎么验证:上述页面的测试按钮会调用后端 `.../api/test-deepseek`。
330
+
331
+ ### 11.3 Kimi / Moonshot(API Key)
332
+
333
+ - 去哪申请:Moonshot/Kimi 开放平台创建 API Key。
334
+ - 在哪填:
335
+ - `/inspiration-house/`:Provider 选 `Kimi`
336
+ - `/feature-engineering/`:Provider 选 `Kimi`
337
+ - `/transformer-web`:`LLM API Key` + `LLM Base URL`(默认 `https://api.moonshot.cn/v1`)
338
+ - 怎么验证:
339
+ - `/inspiration-house/`、`/feature-engineering/`:`Test & Save Configuration`
340
+ - `/transformer-web`:`Test LLM Connection`
341
+
342
+ ---
343
+
344
+ ## 12. 常见使用建议(不涉及修复,仅帮助你更顺畅)
345
+
346
+ - 如果某页面提示缺少 operators/datafields:优先回首页 `Connect to BRAIN` 再刷新页面。
347
+ - 72 变生成后的三类文件,建议按用途回流:
348
+ - `Alpha_candidates.json` → 首页“加载72变生成的模板” → 再用解码器精细化
349
+ - `Alpha_generated_expressions_success.json` → 首页“载入72变生成的表达式”或直接去回测器
350
+ - `Alpha_generated_expressions_error.json` → 用于检查模板/提示词是否存在系统性错误
351
+ - API Key / Token 请勿写入仓库或公开分享;尽量只在本地浏览器会话中使用。