prashantmatlani commited on
Commit
02f9e98
·
1 Parent(s): 8092c56

updated jung prompt

Browse files
Files changed (2) hide show
  1. agents/jung_agent.py +4 -1
  2. core/llm_client.py +1 -1
agents/jung_agent.py CHANGED
@@ -32,7 +32,9 @@ def jung_agent(state):
32
  #context = retrieve("jung", user_input)
33
  context = build_context("jung", user_input)
34
 
35
- print("\n📚 RETRIEVED CONTEXT:\n", context[:500])
 
 
36
 
37
  """
38
  # trigger web search only when agent has no info from pre-trained daa
@@ -264,6 +266,7 @@ def jung_agent(state):
264
 
265
  ### Self-evaluation ###
266
  - Ensure you've based your responses on the provided JUNGIAN KNOWLEDGE -> {context}
 
267
  - Self-evaluate and refine your final response by going through, and cross-checking your final response using, all the above instructions at least once
268
 
269
 
 
32
  #context = retrieve("jung", user_input)
33
  context = build_context("jung", user_input)
34
 
35
+ #print("\n📚 RETRIEVED CONTEXT:\n", context[:500])
36
+ #print(f"\n📚 RETRIEVED CONTEXT ({len(context)}):\n{context[:500]}")
37
+ print(f"\n📚 RETRIEVED CONTEXT ({len(context)}):\n{context}")
38
 
39
  """
40
  # trigger web search only when agent has no info from pre-trained daa
 
266
 
267
  ### Self-evaluation ###
268
  - Ensure you've based your responses on the provided JUNGIAN KNOWLEDGE -> {context}
269
+ - Be careful to not include your paraphrasing or meta-talk about your understanding of the context in your response; rather
270
  - Self-evaluate and refine your final response by going through, and cross-checking your final response using, all the above instructions at least once
271
 
272
 
core/llm_client.py CHANGED
@@ -20,7 +20,7 @@ GROQ_API_KEY = os.getenv("GROQ_API_KEY")
20
  if not GROQ_API_KEY:
21
  raise ValueError("❌ GROQ_API_KEY not set in environment variables")
22
  """
23
- HF_TOKEN = os.getenv("HF_TOKEN")
24
 
25
  if not HF_TOKEN:
26
  raise ValueError("❌ HF_TOKEN not set in environment variables")
 
20
  if not GROQ_API_KEY:
21
  raise ValueError("❌ GROQ_API_KEY not set in environment variables")
22
  """
23
+ HF_TOKEN = os.getenv("HF_WR")
24
 
25
  if not HF_TOKEN:
26
  raise ValueError("❌ HF_TOKEN not set in environment variables")