Spaces:
Runtime error
Runtime error
Create prompts.py
Browse files- 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 |
+
)
|