Spaces:
Runtime error
Runtime error
Updated the config to make the trimming less aggressive
Browse files
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": ["
|
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"
|