Upload app.py
Browse files
app.py
CHANGED
|
@@ -78,8 +78,9 @@ retriever = prepare_retriever()
|
|
| 78 |
# Burada modelden gelen bilgiyi nasıl kullanacağını belirtiyoruz.
|
| 79 |
|
| 80 |
prompt_template = """
|
| 81 |
-
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
Bilgiler:
|
| 85 |
{context}
|
|
@@ -90,6 +91,7 @@ Soru:
|
|
| 90 |
Cevap:
|
| 91 |
"""
|
| 92 |
|
|
|
|
| 93 |
PROMPT = PromptTemplate(
|
| 94 |
template=prompt_template,
|
| 95 |
input_variables=["context", "question"]
|
|
|
|
| 78 |
# Burada modelden gelen bilgiyi nasıl kullanacağını belirtiyoruz.
|
| 79 |
|
| 80 |
prompt_template = """
|
| 81 |
+
Aşağıda bir öğrenci sana bir ders sorusu soruyor. Lütfen ona açık, anlaşılır ve sade bir şekilde cevap ver.
|
| 82 |
+
Cevap verirken sadece gerekli bilgiyi ver, ama eğer gerekiyorsa küçük bir örnek veya açıklama ile öğrencinin konuyu anlamasına yardımcı ol.
|
| 83 |
+
Cevapların çok uzun olmasın ama öğretici olsun.
|
| 84 |
|
| 85 |
Bilgiler:
|
| 86 |
{context}
|
|
|
|
| 91 |
Cevap:
|
| 92 |
"""
|
| 93 |
|
| 94 |
+
|
| 95 |
PROMPT = PromptTemplate(
|
| 96 |
template=prompt_template,
|
| 97 |
input_variables=["context", "question"]
|