Skip to content

Structural Tag Parser#303

Closed
zanderjiang wants to merge 1 commit into
mlc-ai:mainfrom
zanderjiang:fc_parser
Closed

Structural Tag Parser#303
zanderjiang wants to merge 1 commit into
mlc-ai:mainfrom
zanderjiang:fc_parser

Conversation

@zanderjiang

Copy link
Copy Markdown
Contributor

This PR implements a parser for the structural tag LLM outputs. It takes the LLM output string, as well as the triggers list as input, and returns the parsed string in format (non-tag-text, list of (start_tag, parsed_json_dict, end_tag)), it can parse any custom tag and xml style tag output. It will ignore invalid structural tags (invalid tag format, invalid json for function calling tags, missing end tag, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant