File size: 441 Bytes
a16eb78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}"),
               
            ]
        )