mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
Merge pull request #1734 from darlanalves/env-docs-dir
feat: allow a docs directory coming from env
This commit is contained in:
commit
ddf06329a5
@ -220,7 +220,7 @@ Path(CACHE_DIR).mkdir(parents=True, exist_ok=True)
|
|||||||
# Docs DIR
|
# Docs DIR
|
||||||
####################################
|
####################################
|
||||||
|
|
||||||
DOCS_DIR = f"{DATA_DIR}/docs"
|
DOCS_DIR = os.getenv("DOCS_DIR", f"{DATA_DIR}/docs")
|
||||||
Path(DOCS_DIR).mkdir(parents=True, exist_ok=True)
|
Path(DOCS_DIR).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
@ -476,7 +476,7 @@ When answer to user:
|
|||||||
- If you don't know when you are not sure, ask for clarification.
|
- If you don't know when you are not sure, ask for clarification.
|
||||||
Avoid mentioning that you obtained the information from the context.
|
Avoid mentioning that you obtained the information from the context.
|
||||||
And answer according to the language of the user's question.
|
And answer according to the language of the user's question.
|
||||||
|
|
||||||
Given the context information, answer the query.
|
Given the context information, answer the query.
|
||||||
Query: [query]"""
|
Query: [query]"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user