TheoLvs commited on
Commit
6c0b6e5
1 Parent(s): 8161832

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def chat(
104
  messages.pop()
105
  else:
106
  sources = "No climate science report was used to provide this answer."
107
- complete_response = "**No relevant passages found in the climate science reports, for a sourced answer you may want to try a more specific question (specifying your question on climate issues). The answer below will be tailored about climate change, but not sourced on the IPCC, please take the following results with caution.**.\n\n"
108
 
109
  messages.append({"role": "assistant", "content": complete_response})
110
  timestamp = str(datetime.now().timestamp())
@@ -378,6 +378,7 @@ If you have any questions or feature requests, please feel free to reach us out
378
 
379
  ## 💻 Developers
380
  For developers, the methodology used is detailed below :
 
381
  - Extract individual paragraphs from scientific reports (e.g., IPCC, IPBES) using OCR techniques and open sources algorithms
382
  - Use Haystack to compute semantically representative embeddings for each paragraph using a sentence transformers model (https://huggingface.co/sentence-transformers/multi-qa-mpnet-base-dot-v1). 
383
  - Store all the embeddings in a FAISS Flat index. 
 
104
  messages.pop()
105
  else:
106
  sources = "No climate science report was used to provide this answer."
107
+ complete_response = "**⚠️ No relevant passages found in the climate science reports, for a sourced answer you may want to try a more specific question (specifying your question on climate issues). The answer will probably reasonable, but not sourced on the IPCC, please use the following results with caution.**\n\n"
108
 
109
  messages.append({"role": "assistant", "content": complete_response})
110
  timestamp = str(datetime.now().timestamp())
 
378
 
379
  ## 💻 Developers
380
  For developers, the methodology used is detailed below :
381
+
382
  - Extract individual paragraphs from scientific reports (e.g., IPCC, IPBES) using OCR techniques and open sources algorithms
383
  - Use Haystack to compute semantically representative embeddings for each paragraph using a sentence transformers model (https://huggingface.co/sentence-transformers/multi-qa-mpnet-base-dot-v1). 
384
  - Store all the embeddings in a FAISS Flat index.