Wajahat698 commited on
Commit
643608e
·
verified ·
1 Parent(s): b1d2201

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -13
app.py CHANGED
@@ -394,20 +394,14 @@ Replace vague phrases with specific details:
394
 
395
  Before submitting, verify:
396
  **When query is to find trust builders never mention heuristic and creative techniques**
397
- 1. **No generic terms** used (e.g., "leading", "world-class", "cutting-edge").
398
  2. **No approximations** (e.g., "about", "around", "approximately").
399
  3. **No ranges** (e.g., "10-20 million")—use **exact figures**.
400
- 4. **No future predictions** unless citing announced plans.
401
- 5. **No unverified claims**.
402
- 6. **No missing specific details** from the mandatory checklist.
403
- 7. **No repeated information**.
404
- 8. **No prohibited terms included in the copy. For searching it can be used.**.
405
- 9. ** DONOT INCLUDE heuristic and creative techniques in Trustbuilder queries**
406
- 10.** Follow mentioned relevant content type and formatting**
407
- 11.** never mention list of trustbuilder used when query is to find trust builders.only included where mentioned below**
408
 
409
-
410
- ### CRITICAL INSTRUCTIONS
411
 
412
  - **Avoid Prohibited Terms**:
413
  - Do **not** mention "trust," "trust buckets," or any category names like "Development," "Stability," "Competence," "Relationship," "Vision" in the final copy.
@@ -626,7 +620,7 @@ prompt_template = ChatPromptTemplate.from_messages([
626
  ])
627
 
628
  # Create Langchain Agent
629
- llm = ChatOpenAI(model="gpt-4o", temperature=0.6)
630
  llm_with_tools = llm.bind_tools(tools)
631
 
632
  # Define the agent pipeline
@@ -871,7 +865,7 @@ if prompt :
871
  # Generate response using the agent executor
872
  output = agent_executor.invoke({
873
 
874
- "input": f" {prompt}Give correct source links search and then give & Include $Dollar amounts, and names,names of people, places and programs.Please when providing source links that should be accurate search and it and them embed it only in list if trustbuilders not in the main content.Aim to humanize the text—use natural, approachable language that avoids flowery or overly formal expressions.When query is related to newsletters give always heuristics and creative techniques",
875
 
876
 
877
  "chat_history": st.session_state.chat_history
 
394
 
395
  Before submitting, verify:
396
  **When query is to find trust builders never mention heuristic and creative techniques**
397
+ 1. **No generic terms** used (e.g., "leading", "world-class", "cutting-edge","beacon of hope","realm").
398
  2. **No approximations** (e.g., "about", "around", "approximately").
399
  3. **No ranges** (e.g., "10-20 million")—use **exact figures**.
400
+ 4. **No missing specific details** from the mandatory checklist.
401
+ 5. **No prohibited terms included in the copy. For searching it can be used.**.
402
+ 6. ** DONOT INCLUDE heuristic and creative techniques in Trustbuilder queries**
 
 
 
 
 
403
 
404
+ ###CRITICAL MANDATORY INSTRUCTIONS
 
405
 
406
  - **Avoid Prohibited Terms**:
407
  - Do **not** mention "trust," "trust buckets," or any category names like "Development," "Stability," "Competence," "Relationship," "Vision" in the final copy.
 
620
  ])
621
 
622
  # Create Langchain Agent
623
+ llm = ChatOpenAI(model="gpt-4o", temperature=0.5)
624
  llm_with_tools = llm.bind_tools(tools)
625
 
626
  # Define the agent pipeline
 
865
  # Generate response using the agent executor
866
  output = agent_executor.invoke({
867
 
868
+ "input": f" {prompt}.Give correct source links for points and then also Include $Dollar amounts, and names,names of people, places and programs.Please when providing source links that should be accurate search and it and them embed it only in list if trustbuilders not in the main content.Aim to humanize the text—use natural, approachable language that strictly avoids flowery or overly formal expressions.When query is related to newsletters give always heuristics and creative techniques",
869
 
870
 
871
  "chat_history": st.session_state.chat_history