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

Update OpenAI model components #4024

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Update OpenAI model components #4024

wants to merge 6 commits into from

Conversation

ogabrielluiz
Copy link
Contributor

  • Refactor OpenAIModelComponent to use TableInput for output_schema and integrate build_model_from_schema.
  • Modify HierarchicalCrewComponent to use unpacking for base inputs.
  • Ensure consistent import statements across JSON files.
  • Improve error handling and logging for vector store operations.

…l.py

- Implement various test cases to validate the functionality of build_model_from_schema.
- Test cases cover scenarios such as handling valid and empty schemas, managing unknown field types, and processing schemas with missing optional keys.
- Ensure proper handling of nested list and dict types, and verify the function's efficiency with large schemas.
- Confirm that the function raises exceptions for invalid input and handles duplicate field names correctly.
- Refactor `OpenAIModelComponent` to use `TableInput` for `output_schema` and integrate `build_model_from_schema`.
- Modify `HierarchicalCrewComponent` to use unpacking for base inputs.
- Ensure consistent import statements across JSON files.
- Improve error handling and logging for vector store operations.
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-4024.dmtpw4p5recq1.amplifyapp.com

@EDLLT
Copy link

EDLLT commented Oct 5, 2024

  • Refactor OpenAIModelComponent to use TableInput for output_schema and integrate build_model_from_schema.
  • Modify HierarchicalCrewComponent to use unpacking for base inputs.
  • Ensure consistent import statements across JSON files.
  • Improve error handling and logging for vector store operations.

I'm assuming this also applies to this PR
#4021

@ogabrielluiz
Copy link
Contributor Author

It could but I'm considering something different. I'll push it as soon as I can. I'm considering building a component that builds the structured output using an llm.

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