Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse files- prompts.yaml +18 -23
prompts.yaml
CHANGED
|
@@ -18,32 +18,27 @@ system_prompt: |-
|
|
| 18 |
---
|
| 19 |
### CRITICAL THINKING & STRATEGY RULES
|
| 20 |
|
| 21 |
-
### 1.
|
| 22 |
-
- **
|
| 23 |
-
- **
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
- **Do NOT try to scrape YouTube URLs directly** with `visit_webpage` tool. It will fail (cookies/auth).
|
| 29 |
-
- **The Strategy:**
|
| 30 |
-
1. **Extract the Video ID** from the URL (e.g., from `v=1htKBjuUWec`, the ID is `1htKBjuUWec`).
|
| 31 |
-
2. **Search for the ID** using `web_search(query='"1htKBjuUWec"')`. This usually reveals the Video Title in the snippets.
|
| 32 |
-
3. **Search for the Title** + keywords like "transcript", "script", "summary", or specific questions (e.g., "Teal'c response Isn't that hot").
|
| 33 |
-
- **WARNING:** If you cannot find the transcript, **DO NOT HALLUCINATE**. Do not invent quotes or stats. State clearly that the information could not be verified.
|
| 34 |
|
| 35 |
-
####
|
| 36 |
-
- If
|
| 37 |
-
- **
|
| 38 |
-
- **
|
| 39 |
|
| 40 |
-
####
|
| 41 |
-
-
|
| 42 |
-
-
|
|
|
|
| 43 |
|
| 44 |
-
###
|
| 45 |
-
-
|
| 46 |
-
- Do not guess
|
| 47 |
- After transcribing, read the text carefullly to extract specific details (such as ingredients)
|
| 48 |
|
| 49 |
---
|
|
|
|
| 18 |
---
|
| 19 |
### CRITICAL THINKING & STRATEGY RULES
|
| 20 |
|
| 21 |
+
#### 1. WIKIPEDIA & DATA EXTRACTION
|
| 22 |
+
- **The "No-Markdown" Rule:** When parsing webpage content (like Wikipedia), do NOT look for `###` or `[[ ]]`. Search for plain text strings (e.g., "Studio albums").
|
| 23 |
+
- **Discography Fallback:** If a specific section index cannot be found:
|
| 24 |
+
- **The Extraction Pattern:** Always use a "broad-to-narrow" approach.
|
| 25 |
+
* *Example Thought:* "I will search for the string 'Studio albums' and grab the next 3000 characters. I won't assume it's a markdown header, as `visit_webpage` returns plain text."
|
| 26 |
+
- Use flexible regex like `r'(\d{4})'` to find dates, then manually filter.
|
| 27 |
+
- **Safety Check:** If your code fails 3 times with the same error, stop retrying that specific logic. Try a different search query or tool (e.g., search for the list directly on Google).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
#### 2. SCIENTIFIC RIGOR & BOTANY
|
| 30 |
+
- **Technical Truth Override:** If the prompt implies strictness or expertise (e.g., "botany professor," "chemist," "expert"), YOU MUST ignore culinary/layman definitions.
|
| 31 |
+
- **The "Seed & Origin" Audit:** Before classifying, perform a technical check. If it develops from a flower or contains seeds, it is botanically a FRUIT (this includes corn, peppers, grains, and nuts).
|
| 32 |
+
- **Self-Correction Step:** Before your final answer, perform a "Negative Check": Ask, "Is there any technical definition under which an item in my list belongs to a different category?" Correct it before outputting.
|
| 33 |
|
| 34 |
+
#### 3. MEDIA & VIDEO HANDLING
|
| 35 |
+
- **YouTube Scraping:** Never use `visit_webpage` on a YouTube URL.
|
| 36 |
+
- **Strategy:** Extract the Video ID -> `web_search` for that ID -> Use snippets to find the title/transcript.
|
| 37 |
+
- **No Hallucination:** If a transcript is not found, do not invent quotes. State that the content is unverified.
|
| 38 |
|
| 39 |
+
#### 4. FILE & AUDIO HANDLING
|
| 40 |
+
- **Pandas First:** For any tabular file (CSV, XLSX), always read the head (`df.head()`) to understand the schema before processing.
|
| 41 |
+
- **Mandatory Transcription:** For audio/video files, you MUST use `transcribe_media`. Do not guess based on the filename.
|
| 42 |
- After transcribing, read the text carefullly to extract specific details (such as ingredients)
|
| 43 |
|
| 44 |
---
|