Download src/llms/tools/incorrect_question.py from kbl2810/test: direct link, hf CLI and curl.
- Browser
- Download file 2.09 kB
-
https://huggingface.co/spaces/kbl2810/test/resolve/main/src/llms/tools/incorrect_question.py
- Command line
-
hf download hf://spaces/kbl2810/test/src/llms/tools/incorrect_question.py
-
curl -L -o incorrect_question.py https://huggingface.co/spaces/kbl2810/test/resolve/main/src/llms/tools/incorrect_question.py
2.09 kB
| GEN_INCORRECT_WORD_QUESTION_TOOL = { | |
| "type": "function", | |
| "function": { | |
| "name": "gen_find_error_questions", | |
| "description": "Generate a list of 'Find the Error' English questions with indexed words.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "questions": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "content": { | |
| "type": "string", | |
| "description": "The erroneous sentence with indexed words. Example: 'He(1) go(2) to(3) school(4).'" | |
| }, | |
| "choices": { | |
| "type": "array", | |
| "items": {"type": "string"}, | |
| "description": "List of indexed words from the sentence to choose from." | |
| }, | |
| "answer": { | |
| "type": "array", | |
| "items": {"type": "string"}, | |
| "description": "The incorrect word(s) with index. Example: ['go(2)']" | |
| }, | |
| "explanation": { | |
| "type": "string", | |
| "description": "The full CORRECT version of the sentence without indices. Example: 'He goes to school.'" | |
| }, | |
| "tags": { | |
| "type": "array", | |
| "items": {"type": "string"}, | |
| "description": "Error types (e.g., 'verb tense', 'subject-verb agreement')." | |
| } | |
| }, | |
| "required": ["content", "choices", "answer", "explanation", "tags"] | |
| } | |
| } | |
| }, | |
| "required": ["questions"] | |
| } | |
| } | |
| } |