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

Function _weight_for_relation

agents/wiki-agent/ingest/from_feedback.py:106–113  ·  view source on GitHub ↗
(relation: str)

Source from the content-addressed store, hash-verified

104
105
106def _weight_for_relation(relation: str) -> float:
107 if relation == "read":
108 return 1.5
109 if relation == "interested_in":
110 return 1.0
111 if relation == "skipped":
112 return -0.5
113 return 0.0
114
115
116def _ensure_feedback_paper_node(

Callers 1

ingest_feedback_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected