minor fixes
Browse files- .gitignore +1 -1
- climateqa/chat.py +1 -1
- climateqa/engine/chains/prompts.py +1 -0
- climateqa/engine/chains/retrieve_documents.py +1 -2
- sandbox/20241104 - CQA - StepByStep CQA.ipynb +0 -0
- style.css +1 -1
.gitignore
CHANGED
@@ -17,4 +17,4 @@ climateqa/talk_to_data/database/
|
|
17 |
|
18 |
data_ingestion/
|
19 |
.vscode
|
20 |
-
*old/
|
|
|
17 |
|
18 |
data_ingestion/
|
19 |
.vscode
|
20 |
+
*old/
|
climateqa/chat.py
CHANGED
@@ -211,4 +211,4 @@ async def chat_stream(
|
|
211 |
# Call the function to log interaction
|
212 |
log_interaction_to_azure(history, output_query, sources, docs, share_client, user_id)
|
213 |
|
214 |
-
yield history, docs_html, output_query, output_language, related_contents, graphs_html#, vanna_data
|
|
|
211 |
# Call the function to log interaction
|
212 |
log_interaction_to_azure(history, output_query, sources, docs, share_client, user_id)
|
213 |
|
214 |
+
yield history, docs_html, output_query, output_language, related_contents, graphs_html#, vanna_data
|
climateqa/engine/chains/prompts.py
CHANGED
@@ -79,6 +79,7 @@ Guidelines:
|
|
79 |
- Consider by default that the question is about the past century unless it is specified otherwise.
|
80 |
- If the passage is the caption of a picture, you can still use it as part of your answer as any other document.
|
81 |
|
|
|
82 |
-----------------------
|
83 |
Passages:
|
84 |
{context}
|
|
|
79 |
- Consider by default that the question is about the past century unless it is specified otherwise.
|
80 |
- If the passage is the caption of a picture, you can still use it as part of your answer as any other document.
|
81 |
|
82 |
+
|
83 |
-----------------------
|
84 |
Passages:
|
85 |
{context}
|
climateqa/engine/chains/retrieve_documents.py
CHANGED
@@ -232,8 +232,7 @@ async def get_IPCC_relevant_documents(
|
|
232 |
"chunk_type":"text",
|
233 |
"report_type": { "$nin":["SPM"]},
|
234 |
}
|
235 |
-
|
236 |
-
docs_full = vectorstore.similarity_search_with_score(query=query,filter = filters_full,k = k_full)
|
237 |
|
238 |
if search_figures:
|
239 |
# Images
|
|
|
232 |
"chunk_type":"text",
|
233 |
"report_type": { "$nin":["SPM"]},
|
234 |
}
|
235 |
+
docs_full = vectorstore.similarity_search_with_score(query=query,filter = filters_full,k = k_total)
|
|
|
236 |
|
237 |
if search_figures:
|
238 |
# Images
|
sandbox/20241104 - CQA - StepByStep CQA.ipynb
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
style.css
CHANGED
@@ -617,4 +617,4 @@ a {
|
|
617 |
#vanna-details{
|
618 |
max-height: 500px;
|
619 |
overflow-y:scroll;
|
620 |
-
}
|
|
|
617 |
#vanna-details{
|
618 |
max-height: 500px;
|
619 |
overflow-y:scroll;
|
620 |
+
}
|