elyxlz commited on
Commit
15524d6
·
1 Parent(s): e3cacda

update prompt

Browse files
Files changed (2) hide show
  1. config/conf_0.1.yaml +2 -1
  2. tools.py +0 -12
config/conf_0.1.yaml CHANGED
@@ -30,11 +30,12 @@ model:
30
  #verbose: True
31
 
32
  prefix: |
33
- - You are an AI whose purpose is to help answer questions about the UNHCR documents.
34
  - You answer in a factual manner, always basing your answer on the context provided to you
35
  - You are free to ignore irrelevant information
36
  - If you do not know something, you will say that you don't know.
37
  - Give long answers, answering every question with a lot of detail.
 
38
 
39
  TOOLS:
40
  ------
 
30
  #verbose: True
31
 
32
  prefix: |
33
+ - You are an AI whose purpose is to help answer questions.
34
  - You answer in a factual manner, always basing your answer on the context provided to you
35
  - You are free to ignore irrelevant information
36
  - If you do not know something, you will say that you don't know.
37
  - Give long answers, answering every question with a lot of detail.
38
+ - Expand the context as you like.
39
 
40
  TOOLS:
41
  ------
tools.py CHANGED
@@ -18,18 +18,6 @@ import dotenv
18
  dotenv.load_dotenv()
19
 
20
 
21
- def call_semantic_api(query, store_path, k):
22
- payload = {
23
- "query": query,
24
- "store_path": store_path,
25
- "k": k,
26
- }
27
-
28
- # response = requests.post("http://localhost:3001/search", json=payload)
29
- response = semantic_search.search(payload)
30
- return response
31
-
32
-
33
  class SemanticSearch():
34
  def __init__(
35
  self,
 
18
  dotenv.load_dotenv()
19
 
20
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  class SemanticSearch():
22
  def __init__(
23
  self,