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

Function generate_profile

scripts/cold_start.py:16–75  ·  view source on GitHub ↗

Generate initial profile from user input Args: user_input: User's research description Returns: Profile JSON

(user_input: str)

Source from the content-addressed store, hash-verified

14
15def generate_profile(user_input: str) -> dict:
16 """
17 Generate initial profile from user input
18
19 Args:
20 user_input: User's research description
21
22 Returns:
23 Profile JSON
24 """
25 now = datetime.now().isoformat()
26
27 # Parse user input and generate profile
28 # User said: "多模态推理的方向,关注多模态方向的论文"
29
30 profile = {
31 "user_id": "user_001",
32 "version": "0.1",
33 "created_at": now,
34 "updated_at": now,
35 "core_directions": {
36 "Multimodal Reasoning": 0.85,
37 "Multimodal Learning": 0.80,
38 "Vision-Language Models": 0.75,
39 "Cross-modal Understanding": 0.70
40 },
41 "methodology_preferences": {
42 "preference_data_driven_over_theory": True,
43 "preference_systematic_work_over_incremental": True,
44 "preference_open_source_code": True,
45 "preference_multimodal_application": True
46 },
47 "must_read": {
48 "authors": [],
49 "institutions": [],
50 "keywords": ["multimodal", "reasoning", "vision-language"]
51 },
52 "topic_weights": {
53 "multimodal-reasoning": 0.85,
54 "multimodal-learning": 0.80,
55 "vision-language": 0.75,
56 "cross-modal": 0.70
57 },
58 "author_heat": {},
59 "institution_heat": {},
60 "interest_vector": [0.0] * 768, # Will be updated from feedback
61 "taste_profile": {
62 "preferred_work_type": ["empirical", "multimodal", "reasoning"],
63 "dispreferred_work_type": ["single_modality", "incremental"]
64 },
65 "reading_history": [],
66 "behavior_logs_summary": {
67 "total_pushes": 0,
68 "total_selected": 0,
69 "total_skipped": 0,
70 "selection_rate": 0.0
71 }
72 }
73

Callers 1

mainFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected