Spaces:
Sleeping
Sleeping
Update options
Browse files- llm_call.py +14 -1
llm_call.py
CHANGED
|
@@ -123,13 +123,26 @@ class SermonGeminiPromptTemplate():
|
|
| 123 |
|
| 124 |
"""
|
| 125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
sermonPromptMenuGemini = {
|
| 127 |
'BUILD_INIT': custom_prompt_template_gemini,
|
| 128 |
'BUILD_EMPTY': custom_prompt_template_gemini_buildSermonStart,
|
| 129 |
'BUILD_FROM_IDEA': custom_prompt_template_gemini_buildSermonFronContext,
|
| 130 |
'BUILD_QUESTION': custom_prompt_template_gemini_buildSermonQuestion,
|
| 131 |
'BUILD_REFLECTIONS': custom_prompt_template_gemini_buildSermonReflections,
|
| 132 |
-
'BUILD_PREPARE_QUESTIONS': custom_prompt_template_gemini_buildSermonPrepare
|
|
|
|
| 133 |
}
|
| 134 |
|
| 135 |
def __init__(self ):
|
|
|
|
| 123 |
|
| 124 |
"""
|
| 125 |
|
| 126 |
+
custom_prompt_template_gemini_argumentQuestions = """
|
| 127 |
+
Usted es pastor evangélico que está preparando un sermón para su comunidad.
|
| 128 |
+
A partir de este texto:
|
| 129 |
+
|
| 130 |
+
\"{QUESTION_ANSWER}\"
|
| 131 |
+
|
| 132 |
+
Context: {context}
|
| 133 |
+
|
| 134 |
+
Argumentar con más información manteniendo el texto anterior. Use como fuente la Biblia u otros recursos religiosos.
|
| 135 |
+
Solo devuelve la respuesta útil a continuación y nada más y responde siempre en español. Gracias por su ayuda:
|
| 136 |
+
"""
|
| 137 |
+
|
| 138 |
sermonPromptMenuGemini = {
|
| 139 |
'BUILD_INIT': custom_prompt_template_gemini,
|
| 140 |
'BUILD_EMPTY': custom_prompt_template_gemini_buildSermonStart,
|
| 141 |
'BUILD_FROM_IDEA': custom_prompt_template_gemini_buildSermonFronContext,
|
| 142 |
'BUILD_QUESTION': custom_prompt_template_gemini_buildSermonQuestion,
|
| 143 |
'BUILD_REFLECTIONS': custom_prompt_template_gemini_buildSermonReflections,
|
| 144 |
+
'BUILD_PREPARE_QUESTIONS': custom_prompt_template_gemini_buildSermonPrepare,
|
| 145 |
+
'BUILD_ADD_INFORMATION_TO_QUEST_ANSWER': custom_prompt_template_gemini_argumentQuestions
|
| 146 |
}
|
| 147 |
|
| 148 |
def __init__(self ):
|