Feature: Add support for loading docs website (#293)
This commit is contained in:
@@ -28,7 +28,7 @@ DEFAULT_PROMPT_WITH_HISTORY = """
|
||||
Helpful Answer:
|
||||
""" # noqa:E501
|
||||
|
||||
CODE_DOCS_PAGE_DEFAULT_PROMPT = """
|
||||
DOCS_SITE_DEFAULT_PROMPT = """
|
||||
Use the following pieces of context to answer the query at the end.
|
||||
If you don't know the answer, just say that you don't know, don't try to make up an answer. Wherever possible, give complete code snippet. Dont make up any code snippet on your own.
|
||||
|
||||
@@ -41,7 +41,7 @@ CODE_DOCS_PAGE_DEFAULT_PROMPT = """
|
||||
|
||||
DEFAULT_PROMPT_TEMPLATE = Template(DEFAULT_PROMPT)
|
||||
DEFAULT_PROMPT_WITH_HISTORY_TEMPLATE = Template(DEFAULT_PROMPT_WITH_HISTORY)
|
||||
CODE_DOCS_PAGE_PROMPT_TEMPLATE = Template(CODE_DOCS_PAGE_DEFAULT_PROMPT)
|
||||
DOCS_SITE_PROMPT_TEMPLATE = Template(DOCS_SITE_DEFAULT_PROMPT)
|
||||
query_re = re.compile(r"\$\{*query\}*")
|
||||
context_re = re.compile(r"\$\{*context\}*")
|
||||
history_re = re.compile(r"\$\{*history\}*")
|
||||
|
||||
Reference in New Issue
Block a user