FelixPhilip commited on
Commit
526b6b7
·
1 Parent(s): e8254b1

Oracle weight assigning update

Browse files
Files changed (1) hide show
  1. Oracle/deepfundingoracle.py +11 -2
Oracle/deepfundingoracle.py CHANGED
@@ -256,8 +256,17 @@ def assign_base_weight(df, max_workers=32, llm_retries=3,llm_delay=2):
256
  "- Activity (days since last update)\n"
257
  "- Contributors\n\n"
258
  "Assign a weight (0-1) to each feature based on its importance in determining "
259
- "the influence of a repository. Provide the weights as a JSON object with "
260
- "keys as feature names and values as their weights. Ensure the response is strictly in valid JSON format."
 
 
 
 
 
 
 
 
 
261
  )
262
  fearure_weights= None
263
  for attempt in range(llm_retries):
 
256
  "- Activity (days since last update)\n"
257
  "- Contributors\n\n"
258
  "Assign a weight (0-1) to each feature based on its importance in determining "
259
+ "the influence of a repository. Output ONLY a valid JSON object with keys as feature names and values as their weights. "
260
+ "Do not include any explanation or extra text. Example:\n"
261
+ '{\n'
262
+ ' "stars": 0.3,\n'
263
+ ' "forks": 0.2,\n'
264
+ ' "watchers": 0.2,\n'
265
+ ' "open_issues": 0.1,\n'
266
+ ' "pulls": 0.1,\n'
267
+ ' "activity": 0.05,\n'
268
+ ' "contributors": 0.05\n'
269
+ '}\n'
270
  )
271
  fearure_weights= None
272
  for attempt in range(llm_retries):