pragneshbarik commited on
Commit
20b4ac9
1 Parent(s): c54ec59

added error logs

Browse files
Files changed (2) hide show
  1. config.yaml +3 -3
  2. middlewares/utils.py +2 -3
config.yaml CHANGED
@@ -8,10 +8,10 @@ PROMPT_ENGINEERING_DICT:
8
  Please provide me with a specific topic or question, and I'll do my
9
  best to provide you with detailed and accurate information.
10
 
11
- PRE_CONTEXT: NOW YOU ARE SEARCHING THE WEB, AND HERE ARE THE CHUNKS RETRIEVED FROM THE WEB, YOU ALSO HAVE ACCESS TO INVENTORY DATABASE IN JSON FORMAT.
12
  POST_CONTEXT: ""
13
- PRE_PROMPT: NOW ACCORDING TO THE CONTEXT RETRIEVED FROM THE GENERATE THE CONTENT FOR THE FOLLOWING SUBJECT
14
- POST_PROMPT: PRIORITIZE DATA, FACTS AND STATISTICS OVER PERSONAL EXPERIENCES AND OPINIONS, FOCUS MORE ON STATISTICS AND DATA.
15
 
16
  CHAT_BOTS:
17
  Nous Hermes 2: NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO
 
8
  Please provide me with a specific topic or question, and I'll do my
9
  best to provide you with detailed and accurate information.
10
 
11
+ PRE_CONTEXT: NOW YOU ARE SEARCHING THE WEB, AND HERE ARE THE CHUNKS RETRIEVED FROM THE WEB, YOU ALSO HAVE ACCESS TO INVENTORY DATASET IN JSON FORMAT.
12
  POST_CONTEXT: ""
13
+ PRE_PROMPT: ""
14
+ POST_PROMPT: "".
15
 
16
  CHAT_BOTS:
17
  Nous Hermes 2: NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO
middlewares/utils.py CHANGED
@@ -1,5 +1,5 @@
1
  from sentence_transformers import CrossEncoder
2
- from pprint import pprint, pformat
3
  from notion_client import Client
4
  import json
5
  import math
@@ -172,10 +172,9 @@ def gen_augmented_prompt_via_websearch(
172
  {context}
173
 
174
  {notion_data}
 
175
  {post_context}
176
 
177
-
178
-
179
  {pre_prompt}
180
 
181
  {prompt}
 
1
  from sentence_transformers import CrossEncoder
2
+ from pprint import pformat
3
  from notion_client import Client
4
  import json
5
  import math
 
172
  {context}
173
 
174
  {notion_data}
175
+
176
  {post_context}
177
 
 
 
178
  {pre_prompt}
179
 
180
  {prompt}