forked from open-webui/open-webui
fix: backslash rag content issue
This commit is contained in:
parent
cd92cf0da5
commit
072b499a50
1 changed files with 2 additions and 3 deletions
|
@ -91,9 +91,8 @@ def query_collection(
|
|||
|
||||
|
||||
def rag_template(template: str, context: str, query: str):
|
||||
template = re.sub(r"\[context\]", context, template)
|
||||
template = re.sub(r"\[query\]", query, template)
|
||||
|
||||
template = template.replace("[context]", context)
|
||||
template = template.replace("[query]", query)
|
||||
return template
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue