Update app.py
Browse files
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: **{
|
| 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
|
| 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
|
| 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
|