|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
""" Prompts and templates used by the Swarms Chatbot """
|
|
|
|
from langchain.prompts.prompt import PromptTemplate
|
|
|
|
from langchain.prompts.prompt import PromptTemplate
|
|
|
|
|
|
|
|
|
|
|
|
B_INST, E_INST = "[INST]", "[/INST]"
|
|
|
|
B_INST, E_INST = "[INST]", "[/INST]"
|
|
|
@ -75,4 +76,4 @@ _SUMMARIZER_INST_TEMPLATE = (
|
|
|
|
|
|
|
|
|
|
|
|
SUMMARY_PROMPT = PromptTemplate.from_template(
|
|
|
|
SUMMARY_PROMPT = PromptTemplate.from_template(
|
|
|
|
template=(_SUMMARIZER_SYS_TEMPLATE + "\n" + _SUMMARIZER_INST_TEMPLATE).strip()
|
|
|
|
template=(_SUMMARIZER_SYS_TEMPLATE + "\n" + _SUMMARIZER_INST_TEMPLATE).strip()
|
|
|
|
)
|
|
|
|
)
|
|
|
|