mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
prompt cleanup (#8470)
This commit is contained in:
parent
4d526c49ed
commit
18a2452121
@ -34,18 +34,18 @@ class SearchQueries(BaseModel):
|
|||||||
|
|
||||||
DEFAULT_LLAMA_SEARCH_PROMPT = PromptTemplate(
|
DEFAULT_LLAMA_SEARCH_PROMPT = PromptTemplate(
|
||||||
input_variables=["question"],
|
input_variables=["question"],
|
||||||
template="""<<SYS>> \n You are an assistant tasked with improving Google search
|
template="""<<SYS>> \n You are an assistant tasked with improving Google search \
|
||||||
results. \n <</SYS>> \n\n [INST] Generate THREE Google search queries that
|
results. \n <</SYS>> \n\n [INST] Generate THREE Google search queries that \
|
||||||
are similar to this question. The output should be a numbered list of questions
|
are similar to this question. The output should be a numbered list of questions \
|
||||||
and each should have a question mark at the end: \n\n {question} [/INST]""",
|
and each should have a question mark at the end: \n\n {question} [/INST]""",
|
||||||
)
|
)
|
||||||
|
|
||||||
DEFAULT_SEARCH_PROMPT = PromptTemplate(
|
DEFAULT_SEARCH_PROMPT = PromptTemplate(
|
||||||
input_variables=["question"],
|
input_variables=["question"],
|
||||||
template="""You are an assistant tasked with improving Google search
|
template="""You are an assistant tasked with improving Google search \
|
||||||
results. Generate THREE Google search queries that are similar to
|
results. Generate THREE Google search queries that are similar to \
|
||||||
this question. The output should be a numbered list of questions and each
|
this question. The output should be a numbered list of questions and each \
|
||||||
should have a question mark at the end: {question}""",
|
should have a question mark at the end: {question}""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user