vip11017 commited on
Commit
27cf46e
·
1 Parent(s): 73962a1

added filter for welcome messages

Browse files
Files changed (1) hide show
  1. app/ingestion/rag_setup.py +2 -6
app/ingestion/rag_setup.py CHANGED
@@ -223,7 +223,7 @@ def build_welcome_message(ingest: ChatbotIngest) -> str:
223
  intro_msg = (
224
  f"Hello! 👋 I'm {chatbot_name}, your virtual assistant for {ingest.company_name}.\n"
225
  "I can help you with:\n"
226
- + "\n".join(f"- {p}" for p in purposes)
227
  + "\nPlease ask me anything or start with one of the suggested FAQs below."
228
  )
229
 
@@ -252,8 +252,4 @@ def store_demo_rag_config(chatbot_id, company_id, ingest: ChatbotIngest) -> None
252
  ]
253
  }
254
  result = demo_chatbot_configs.insert_one(demo_rag_dict)
255
- print(f"Inserted RAG config for {ingest.company_name}, _id={result.inserted_id}")
256
-
257
-
258
-
259
-
 
223
  intro_msg = (
224
  f"Hello! 👋 I'm {chatbot_name}, your virtual assistant for {ingest.company_name}.\n"
225
  "I can help you with:\n"
226
+ + "\n".join(f"- {p}" for p in purposes if p is not "Capture Leads(email, phone")
227
  + "\nPlease ask me anything or start with one of the suggested FAQs below."
228
  )
229
 
 
252
  ]
253
  }
254
  result = demo_chatbot_configs.insert_one(demo_rag_dict)
255
+ print(f"Inserted RAG config for {ingest.company_name}, _id={result.inserted_id}")