mtyrrell commited on
Commit
f95af38
1 Parent(s): da06ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -29,7 +29,7 @@ Context: {join(documents)}\n\nQuestion: {query}\n\nAnswer:""",
29
  )
30
 
31
  # Create a list of options for the dropdown
32
- country_options = ['Angola','Botswana','Lesotho','Malawi','Mozambique','Namibia','South Africa','Zambia','Zimbabwe']
33
 
34
  # List of examples
35
  examples = [
@@ -72,8 +72,8 @@ def run_query(input_text):
72
  # Setup retriever, pulling from local faiss datastore
73
  retriever = EmbeddingRetriever(
74
  document_store=FAISSDocumentStore.load(
75
- index_path="./cpv_test_2.faiss",
76
- config_path="./cpv_test_2.json",
77
  ),
78
  embedding_model="sentence-transformers/multi-qa-mpnet-base-dot-v1",
79
  model_format="sentence_transformers",
@@ -91,7 +91,7 @@ pipe.add_node(component=pn, name="prompt_node", inputs=["Query"])
91
  # Guiding text
92
  st.title('Climate Policy Documents: Vulnerabilities Analysis Q&A (test)')
93
  st.markdown('This tool seeks to provide an interface for quering national climate policy documents (NDCs, LTS etc.). The current version is powered by chatGPT (3.5) and limited to 9 Southern African countries (Angola, Botswana, Eswatini, Lesotho, Malawi, Mozambique, Namibia, South Africa, Zambia, Zimbabwe). The intended use case is to allow users to interact with the documents and obtain valuable insights on various vulnerable groups affected by climate change.')
94
-
95
 
96
 
97
  # Dropdown selectbox
 
29
  )
30
 
31
  # Create a list of options for the dropdown
32
+ country_options = ['Angola','Botswana','Lesotho','Kenya','Malawi','Mozambique','Namibia','South Africa','Zambia','Zimbabwe']
33
 
34
  # List of examples
35
  examples = [
 
72
  # Setup retriever, pulling from local faiss datastore
73
  retriever = EmbeddingRetriever(
74
  document_store=FAISSDocumentStore.load(
75
+ index_path="./cpv_southern_africa_kenya.faiss",
76
+ config_path="./cpv_southern_africa_kenya.json",
77
  ),
78
  embedding_model="sentence-transformers/multi-qa-mpnet-base-dot-v1",
79
  model_format="sentence_transformers",
 
91
  # Guiding text
92
  st.title('Climate Policy Documents: Vulnerabilities Analysis Q&A (test)')
93
  st.markdown('This tool seeks to provide an interface for quering national climate policy documents (NDCs, LTS etc.). The current version is powered by chatGPT (3.5) and limited to 9 Southern African countries (Angola, Botswana, Eswatini, Lesotho, Malawi, Mozambique, Namibia, South Africa, Zambia, Zimbabwe). The intended use case is to allow users to interact with the documents and obtain valuable insights on various vulnerable groups affected by climate change.')
94
+ st.markdown('**DISCLAIMER:** This prototype tool based on LLMs (Language Models) is provided "as is" for experimental and exploratory purposes only, and should not be used for critical or production applications. Users are advised that the tool may contain errors, bugs, or limitations and should be used with caution and awareness of potential risks, and the developers make no warranties or guarantees regarding its performance, reliability, or suitability for any specific purpose.')
95
 
96
 
97
  # Dropdown selectbox