aquibmoin commited on
Commit
a78168a
Β·
verified Β·
1 Parent(s): d986127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -175,7 +175,7 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", max_tok
175
  yield "πŸ”„ Connecting with Pinecone...", None, None, None, None, None, None
176
 
177
  pc_index_name = "scdd-index"
178
- yield f"Using Pinecone index: **{index_name}**βœ… ", None, None, None, None, None, None
179
 
180
  yield "πŸ”Ž Retrieving relevant context from Pinecone...", None, None, None, None, None, None
181
  # Retrieve relevant context using Pinecone
@@ -184,7 +184,7 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", max_tok
184
  cleaned_context_list = [clean_retrieved_context(chunk) for chunk in relevant_context]
185
 
186
 
187
- yield "Context Retrieved successfully βœ… ", None, None, None, None, None, None, None
188
 
189
  keywords = extract_keywords_with_gpt(context, client)
190
 
@@ -193,7 +193,7 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", max_tok
193
  # Fetch NASA ADS references using the user context
194
  references = fetch_nasa_ads_references(ads_query)
195
 
196
- yield "ADS references retrieved... βœ… ", None, None, None, None, None, None, None
197
 
198
 
199
  yield "πŸ”„ Generating structured response using GPT-4o...", None, None, None, None, None, None
 
175
  yield "πŸ”„ Connecting with Pinecone...", None, None, None, None, None, None
176
 
177
  pc_index_name = "scdd-index"
178
+ yield f"Using Pinecone index: **{pc_index_name}**βœ… ", None, None, None, None, None, None
179
 
180
  yield "πŸ”Ž Retrieving relevant context from Pinecone...", None, None, None, None, None, None
181
  # Retrieve relevant context using Pinecone
 
184
  cleaned_context_list = [clean_retrieved_context(chunk) for chunk in relevant_context]
185
 
186
 
187
+ yield "Context Retrieved successfully βœ… ", None, None, None, None, None, None
188
 
189
  keywords = extract_keywords_with_gpt(context, client)
190
 
 
193
  # Fetch NASA ADS references using the user context
194
  references = fetch_nasa_ads_references(ads_query)
195
 
196
+ yield "ADS references retrieved... βœ… ", None, None, None, None, None, None
197
 
198
 
199
  yield "πŸ”„ Generating structured response using GPT-4o...", None, None, None, None, None, None