Spaces:
Sleeping
Sleeping
Update propit message
Browse files12 unmodified lines13141516171822 unmodified lines41424344454647484950515253545512 unmodified linesEMBED_MODEL= os.environ.get("EMBED_MODEL")GROQ_MODEL = os.environ.get("GROQ_MODEL")pc = Pinecone(api_key=PINECONE_API_KEY)index = pc.Index("customerserviceindex")22 unmodified lines# Construct the System Prompt# We use facts from the profile: Islamic banking, based in Mukalla [cite: 15, 6]prompt = f"""You are the official AI assistant for Hadhramout Bank (بنك حضرموت).Your tone is professional, helpful, and culturally respectful to the Yemeni community.Use ONLY the provided context to answer. If the information isn't there,kindly ask the customer to visit the main branch in Al Mukalla.Context:{context_text}Customer Question: {user_query}"""completion = groq_client.chat.completions.create(12 unmodified lines1314151617181922 unmodified lines4243444546474849505152535412 unmodified linesEMBED_MODEL= os.environ.get("EMBED_MODEL")GROQ_MODEL = os.environ.get("GROQ_MODEL")PROMPT = os.environ.get("PROMPT")pc = Pinecone(api_key=PINECONE_API_KEY)index = pc.Index("customerserviceindex")22 unmodified lines# Construct the System Prompt# We use facts from the profile: Islamic banking, based in Mukalla [cite: 15, 6]prompt = f"""{PROMPT}Message:{user_message}Retrieved Context:{retrieved_context}Final Answer:"""completion = groq_client.chat.completions.create(
app.py+6-7