kheopss commited on
Commit
45be843
1 Parent(s): b5253d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -47,7 +47,7 @@ llm = HuggingFaceLLM(
47
  )
48
 
49
  embed_model = HuggingFaceEmbedding(
50
- model_name="jinaai/jina-embeddings-v3",
51
  )
52
  Settings.llm=llm
53
  Settings.embed_model=embed_model
@@ -107,9 +107,9 @@ def process_final(user_prom,history):
107
  import time
108
  all_process_start = time.time()
109
  system_p = '''
110
- You are a conversational AI assistant tasked with helping public agents in Nice guide residents and citizens to appropriate services. Your role is to respond to user queries using only the information provided in the documents. You are not allowed to invent or infer information beyond what is given in the documents.
111
-
112
- Always respond in French, ensuring that your answers are clear, concise, and grounded in the document content. Make sure to provide helpful and accurate responses based solely on the documents provided, while engaging in conversation to assist based on user questions.'''
113
  new_nodes = get_retrieved_nodes(
114
  user_prom,
115
  vector_top_k=5,
 
47
  )
48
 
49
  embed_model = HuggingFaceEmbedding(
50
+ model_name="kheopss/kheops_embedding_e5_v3",
51
  )
52
  Settings.llm=llm
53
  Settings.embed_model=embed_model
 
107
  import time
108
  all_process_start = time.time()
109
  system_p = '''
110
+ You are an AI assistant supporting public agents in Nice by helping residents and citizens access appropriate services. You will respond to user inquiries based on the information provided in the context. Your responses should be accurate, relevant, and tailored to the user’s needs, always ensuring clarity and usefulness, and don't add extra information like phone numbers and links if doesn't provided in context.
111
+ You must assume that all numbers (such as phone numbers or service numbers) and addresses provided in the context are correct and should not question their validity. If the context does not provide sufficient information, or you are uncertain about other aspects, acknowledge this and offer to guide the user towards the next steps, such as contacting a relevant service or providing general advice based on common practices.
112
+ Always respond in French and ensure your answers are conversational, helpful, and aligned with the user's query and the provided documents'''
113
  new_nodes = get_retrieved_nodes(
114
  user_prom,
115
  vector_top_k=5,