MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / main

Function main

scripts/cold_start.py:78–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def main():
79 # Default input if not provided
80 default_input = "多模态推理方向,关注多模态方向的论文"
81
82 user_input = sys.argv[1] if len(sys.argv) > 1 else default_input
83
84 print("=" * 60)
85 print("Cold Start - Generating Initial Profile")
86 print("=" * 60)
87 print(f"\nUser input: {user_input}\n")
88
89 # Generate profile
90 profile = generate_profile(user_input)
91
92 # Initialize database (creates tables if not exist)
93 init_db()
94
95 # Store profile
96 profile_id = create_profile(profile["user_id"], profile)
97
98 if profile_id:
99 print(f"\n[OK] Profile created successfully!")
100 print(f"\n--- Profile Summary ---")
101 print(f"User ID: {profile['user_id']}")
102 print(f"Version: {profile['version']}")
103 print(f"\nCore Directions:")
104 for direction, weight in profile['core_directions'].items():
105 print(f" - {direction}: {weight}")
106 print(f"\nMust-read keywords: {profile['must_read']['keywords']}")
107 else:
108 print(f"\n[WARN] Profile already exists for user_001")
109 print("To update, use: /show-profile or modify directly")
110
111
112if __name__ == "__main__":

Callers 1

cold_start.pyFile · 0.70

Calls 3

init_dbFunction · 0.90
create_profileFunction · 0.90
generate_profileFunction · 0.85

Tested by

no test coverage detected