cack / prompt.py
ujalaarshad17's picture
Upload 8 files
a16eb78 verified
raw
history blame contribute delete
441 Bytes
from langchain_core.prompts import ChatPromptTemplate
system_prompt = (
"You are a helpful assistant"
"If you dont know the answer , just say you dont know the answer."
"\n\n"
"Only use the following context to answer the question"
"{context}"
)
prompt = ChatPromptTemplate(
[
("system",system_prompt),
('human',"{input}"),
]
)