rak-301 commited on
Commit
bf24e15
·
verified ·
1 Parent(s): f736d69

Create prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +12 -0
prompts.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from langchain.prompts import PromptTemplate
2
+
3
+ coding_hints_template = """
4
+ You are a helpful chatbot, answer user queries
5
+ Question: {question}
6
+ Chat History: {chat_history}
7
+ Answer:"""
8
+
9
+ coding_hints_prompt_template = PromptTemplate(
10
+ input_variables=["chat_history", "question"],
11
+ template=coding_hints_template
12
+ )