Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ app.config['SECRET_KEY'] = SECRET_KEY
|
|
46 |
|
47 |
embed_model = HuggingFaceEmbeddings(model_name="Alibaba-NLP/gte-multilingual-base", model_kwargs={"trust_remote_code":True})
|
48 |
llm = ChatGroq(
|
49 |
-
model="llama-3.1-
|
50 |
temperature=0.0,
|
51 |
max_tokens=1024,
|
52 |
max_retries=2
|
@@ -80,11 +80,12 @@ User Instructions:
|
|
80 |
|
81 |
You are an Arabic AI Assistant focused on providing clear, concise responses.
|
82 |
Always answer truthfully. If the user query is irrelevant to the provided CONTEXT, respond stating the reason.
|
|
|
83 |
Generate responses in Arabic. Format any English words and numbers appropriately for clarity.
|
84 |
|
85 |
Round off numbers with decimal integers to two decimal integers.
|
86 |
|
87 |
-
Use
|
88 |
|
89 |
Provide detailed yet concise answers, covering all important aspects.
|
90 |
Remember, responding outside the CONTEXT may lead to the termination of the interaction.
|
@@ -141,3 +142,4 @@ def index_view():
|
|
141 |
# Main function to run the app
|
142 |
if __name__ == '__main__':
|
143 |
socketio.run(app, debug=True)
|
|
|
|
46 |
|
47 |
embed_model = HuggingFaceEmbeddings(model_name="Alibaba-NLP/gte-multilingual-base", model_kwargs={"trust_remote_code":True})
|
48 |
llm = ChatGroq(
|
49 |
+
model="llama-3.1-70b-versatile",
|
50 |
temperature=0.0,
|
51 |
max_tokens=1024,
|
52 |
max_retries=2
|
|
|
80 |
|
81 |
You are an Arabic AI Assistant focused on providing clear, concise responses.
|
82 |
Always answer truthfully. If the user query is irrelevant to the provided CONTEXT, respond stating the reason.
|
83 |
+
For general questions like greetings reply with formal greetings.
|
84 |
Generate responses in Arabic. Format any English words and numbers appropriately for clarity.
|
85 |
|
86 |
Round off numbers with decimal integers to two decimal integers.
|
87 |
|
88 |
+
Use numbered lists where applicable for better organization.
|
89 |
|
90 |
Provide detailed yet concise answers, covering all important aspects.
|
91 |
Remember, responding outside the CONTEXT may lead to the termination of the interaction.
|
|
|
142 |
# Main function to run the app
|
143 |
if __name__ == '__main__':
|
144 |
socketio.run(app, debug=True)
|
145 |
+
|