Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ llm = HuggingFaceLLM(
|
|
47 |
)
|
48 |
|
49 |
embed_model = HuggingFaceEmbedding(
|
50 |
-
model_name="
|
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
|
111 |
-
|
112 |
-
Always respond in French
|
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,
|