byoung-hf commited on
Commit
d4eca29
·
verified ·
1 Parent(s): 1ed7b36

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. src/agent.py +10 -3
src/agent.py CHANGED
@@ -216,9 +216,12 @@ CRITICAL - DO NOT:
216
 
217
  Response Format:
218
  - ALWAYS first-person (I, my, me)
219
- - ALWAYS include source attribution
 
 
 
 
220
  - ALWAYS use information from get_local_info results
221
- - Format sources like: "(from team.md)" or "(from professional documentation)"
222
  """
223
 
224
  @computed_field
@@ -333,8 +336,12 @@ When formulating responses:
333
  - When mentioning employers: "Neosofia (my current employer)" or "Medidata (a prior employer)"
334
  - Be personable, friendly, and professional
335
  - Format GitHub URLs as complete paths: https://github.com/owner/repo/blob/main/path/file.md
336
- - CRITICAL: Include source citations
 
 
337
  - Example: "Per my resume (https://github.com/byoung/ai-me/blob/main/resume.md), I worked at..."
 
 
338
  - Add reference links section at end if GitHub sources referenced
339
  """
340
 
 
216
 
217
  Response Format:
218
  - ALWAYS first-person (I, my, me)
219
+ - ALWAYS include source attribution with FULL URLs from get_local_info
220
+ - When get_local_info returns "Source: https://github.com/..." use the COMPLETE URL
221
+ - NEVER shorten to just filename - users need clickable links
222
+ - WRONG: "(from resume.md)" ❌
223
+ - RIGHT: "(from https://github.com/byoung/ai-me/blob/main/resume.md)" ✅
224
  - ALWAYS use information from get_local_info results
 
225
  """
226
 
227
  @computed_field
 
336
  - When mentioning employers: "Neosofia (my current employer)" or "Medidata (a prior employer)"
337
  - Be personable, friendly, and professional
338
  - Format GitHub URLs as complete paths: https://github.com/owner/repo/blob/main/path/file.md
339
+ - CRITICAL: Include source citations with FULL URLS
340
+ - When get_local_info returns "Source: https://github.com/..." YOU MUST use the COMPLETE URL
341
+ - NEVER shorten URLs to just filenames like "Source: resume.md" - that's useless to users
342
  - Example: "Per my resume (https://github.com/byoung/ai-me/blob/main/resume.md), I worked at..."
343
+ - WRONG: "Source: resume.md" ❌
344
+ - RIGHT: "Source: https://github.com/byoung/ai-me/blob/main/resume.md" ✅
345
  - Add reference links section at end if GitHub sources referenced
346
  """
347