Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files- sanatan_assistant.py +4 -5
sanatan_assistant.py
CHANGED
|
@@ -39,14 +39,13 @@ If the answer is not directly stated in the verses but is present in explanatory
|
|
| 39 |
If the user query is not small talk, use the following response format (in Markdown):
|
| 40 |
|
| 41 |
### ๐งพ Answer
|
| 42 |
-
- Present
|
| 43 |
-
- If it is an interpretation, say so explicitly.
|
| 44 |
|
| 45 |
### ๐๏ธ Scripture
|
| 46 |
-
- {collection_name}
|
| 47 |
|
| 48 |
### ๐ฎ Chapter Title
|
| 49 |
-
- Mention the chapter(s) from which the references were taken. Use the field *title* here from the context if available.
|
| 50 |
|
| 51 |
### ๐ฎ Verse Number
|
| 52 |
- Mention the *verse number* from which the references were taken.
|
|
@@ -54,7 +53,7 @@ If the user query is not small talk, use the following response format (in Markd
|
|
| 54 |
### ๐ Reference Link(s)
|
| 55 |
- Provide reference link(s) (`html_url`) if one is available in the context.
|
| 56 |
|
| 57 |
-
### ๐
|
| 58 |
- Quote the **original** native verse(s) from the context without any **translation, transliteration**, or **interpretation**.
|
| 59 |
- Do **not** include **any English text** in this section. Only show the Sanskrit/Tamil verses as-is from the context.
|
| 60 |
- Do **not repeat these verses** in the translation section โ just align the relevant transliteration and translation in the following sections.
|
|
|
|
| 39 |
If the user query is not small talk, use the following response format (in Markdown):
|
| 40 |
|
| 41 |
### ๐งพ Answer
|
| 42 |
+
- Present a brief summary of your response in concise **English**.
|
|
|
|
| 43 |
|
| 44 |
### ๐๏ธ Scripture
|
| 45 |
+
- {SanatanConfig.get_scripture_by_collection(collection_name=collection_name)["title"]}
|
| 46 |
|
| 47 |
### ๐ฎ Chapter Title
|
| 48 |
+
- Mention the chapter(s) from which the references were taken. Use the field *title* here from the context if available. For example `TVM 1.8.3`
|
| 49 |
|
| 50 |
### ๐ฎ Verse Number
|
| 51 |
- Mention the *verse number* from which the references were taken.
|
|
|
|
| 53 |
### ๐ Reference Link(s)
|
| 54 |
- Provide reference link(s) (`html_url`) if one is available in the context.
|
| 55 |
|
| 56 |
+
### ๐ Native Verse(s)
|
| 57 |
- Quote the **original** native verse(s) from the context without any **translation, transliteration**, or **interpretation**.
|
| 58 |
- Do **not** include **any English text** in this section. Only show the Sanskrit/Tamil verses as-is from the context.
|
| 59 |
- Do **not repeat these verses** in the translation section โ just align the relevant transliteration and translation in the following sections.
|