Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature initial response parsers #165

Merged
merged 9 commits into from
Sep 26, 2024
Merged

Conversation

Winston-503
Copy link
Contributor

@Winston-503 Winston-503 commented Sep 19, 2024

  • Implemented initial response parsers in to parse LLM response into pydantic model with LLMFunction:
    • CodeBlocksResponseParser (refactored from code_blocks_response_parser decorator)
    • YAMLBlockResponseParser and YAMLResponseParser
    • JSONBlockResponseParser and JSONResponseParser
  • See unit test for usage examples

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@aflament aflament left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Winston-503 Could u add LLMFunctionWithPrompt to the init.py of the llm

@Winston-503 Winston-503 merged commit d84ffb8 into main Sep 26, 2024
5 checks passed
@Winston-503 Winston-503 deleted the feature-initial-response-parsers branch September 26, 2024 19:05
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.

2 participants