alfraser commited on
Commit
c6fe718
·
1 Parent(s): 38dd285

Updated the config to make the trimming less aggressive

Browse files
Files changed (1) hide show
  1. config/architectures.json +1 -1
config/architectures.json CHANGED
@@ -27,7 +27,7 @@
27
  {"class": "InputRequestScreener"},
28
  {"class": "RetrievalAugmentor", "params": {"vector_store": "01_all_products"}},
29
  {"class": "HFInferenceEndpoint", "params": {"endpoint_url": "https://yl89ru8gdr1wkbej.eu-west-1.aws.endpoints.huggingface.cloud","model_name": "Unmodified Meta Llama 2 chat", "system_prompt": "You are a helpful domestic appliance advisor. Please answer the following customer question, answering only from the facts provided. Answer based on the background provided, do not make things up, and say if you cannot answer.", "max_new_tokens": 1000}},
30
- {"class": "ResponseTrimmer", "params": {"regexes": ["^.*information provided[0-9A-Za-z,]*? ", "^.*background[0-9A-Za-z,]*? "]}},
31
  {"class": "OutputResponseScreener"}
32
  ],
33
  "img": "architecture_rag.jpg"
 
27
  {"class": "InputRequestScreener"},
28
  {"class": "RetrievalAugmentor", "params": {"vector_store": "01_all_products"}},
29
  {"class": "HFInferenceEndpoint", "params": {"endpoint_url": "https://yl89ru8gdr1wkbej.eu-west-1.aws.endpoints.huggingface.cloud","model_name": "Unmodified Meta Llama 2 chat", "system_prompt": "You are a helpful domestic appliance advisor. Please answer the following customer question, answering only from the facts provided. Answer based on the background provided, do not make things up, and say if you cannot answer.", "max_new_tokens": 1000}},
30
+ {"class": "ResponseTrimmer", "params": {"regexes": ["^.{0,20}information provided[0-9A-Za-z,]*? ", "^.{0,20}background[0-9A-Za-z,]*? "]}},
31
  {"class": "OutputResponseScreener"}
32
  ],
33
  "img": "architecture_rag.jpg"