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