Download src/llms/tools/paragraph.py from kbl2810/test: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/spaces/kbl2810/test/resolve/main/src/llms/tools/paragraph.py
- Command line
-
hf download hf://spaces/kbl2810/test/src/llms/tools/paragraph.py
-
curl -L -o paragraph.py https://huggingface.co/spaces/kbl2810/test/resolve/main/src/llms/tools/paragraph.py
1.51 kB
| GEN_QUESTION_FOR_PARAGRAPH_OUTPUT_TOOL = { | |
| "type": "function", | |
| "function": { | |
| "name": "parse_paragraph_questions", | |
| "description": ( | |
| "Parse the generated reading comprehension questions from a paragraph into structured JSON." | |
| ), | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "list_questions": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "question": { | |
| "type": "string", | |
| "description": "The text of the generated single-choice question." | |
| }, | |
| "choices": { | |
| "type": "array", | |
| "items": {"type": "string"}, | |
| "description": "List of answer options." | |
| }, | |
| "answer": { | |
| "type": "string", | |
| "description": "The correct answer." | |
| } | |
| }, | |
| "required": ["question", "choices", "answer"] | |
| }, | |
| "description": "List of generated questions with choices and answers." | |
| } | |
| }, | |
| "required": ["list_questions"] | |
| } | |
| } | |
| } | |