Spaces:
Sleeping
Sleeping
James MacQuillan
commited on
Commit
·
1adeb8a
1
Parent(s):
e33a6b6
push
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def search(query):
|
|
150 |
return all_results
|
151 |
|
152 |
def process_query(user_input, history):
|
153 |
-
|
154 |
docs = vectorstore.similarity_search(user_input, k=5)
|
155 |
|
156 |
# Retrieve and concatenate results
|
@@ -180,7 +180,7 @@ def process_query(user_input, history):
|
|
180 |
|
181 |
# Format results as a JSON string for model input
|
182 |
search_results_str = json.dumps(search_results)
|
183 |
-
|
184 |
# Step 3: Generate a response using the search results
|
185 |
response = client.chat_completion(
|
186 |
model="Qwen/Qwen2.5-72B-Instruct",
|
@@ -189,7 +189,7 @@ def process_query(user_input, history):
|
|
189 |
stream=True
|
190 |
)
|
191 |
|
192 |
-
yield "Analyzing the
|
193 |
|
194 |
# Stream final response
|
195 |
final_response = ""
|
|
|
150 |
return all_results
|
151 |
|
152 |
def process_query(user_input, history):
|
153 |
+
yield 'locating vectorstore 🛠️'
|
154 |
docs = vectorstore.similarity_search(user_input, k=5)
|
155 |
|
156 |
# Retrieve and concatenate results
|
|
|
180 |
|
181 |
# Format results as a JSON string for model input
|
182 |
search_results_str = json.dumps(search_results)
|
183 |
+
yield 'thinking...'
|
184 |
# Step 3: Generate a response using the search results
|
185 |
response = client.chat_completion(
|
186 |
model="Qwen/Qwen2.5-72B-Instruct",
|
|
|
189 |
stream=True
|
190 |
)
|
191 |
|
192 |
+
yield "Analyzing the data and getting ready to respond 📊"
|
193 |
|
194 |
# Stream final response
|
195 |
final_response = ""
|