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

feat: added new article on generating llm metadata #1249

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

ivanleomk
Copy link
Collaborator

@ivanleomk ivanleomk commented Dec 11, 2024

Important

Adds two articles on generating DAGs with GPT-4o and extracting image metadata using structured extraction.

  • New Articles:
    • consistent-stories.md: Discusses generating complex DAGs with GPT-4o using a two-phase approach for Choose Your Own Adventure stories.
    • extracting-model-metadata.md: Explores extracting structured metadata from images using multimodal models and a product taxonomy.
  • Code Examples:
    • consistent-stories.md: Includes Python code for generating story outlines and expanding choices in parallel.
    • extracting-model-metadata.md: Provides Python code for loading images, defining response models, and making API calls to extract metadata.
  • Concepts:
    • Parallel generation and state tracking for story consistency.
    • Use of Pydantic models for structured validation in metadata extraction.

This description was created by Ellipsis for 0ddc76d. It will automatically update as commits are pushed.

Copy link

Deploying instructor-py with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0ddc76d
Status: ✅  Deploy successful!
Preview URL: https://7a869ddc.instructor-py.pages.dev
Branch Preview URL: https://add-model-metadata.instructor-py.pages.dev

View logs

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 0ddc76d in 2 minutes and 11 seconds

More details
  • Looked at 517 lines of code in 2 files
  • Skipped 6 files when reviewing.
  • Skipped posting 4 drafted comments based on config settings.
1. docs/blog/posts/extracting-model-metadata.md:12
  • Draft comment:
    Typo: 'procesing' should be 'processing'.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The word 'procesing' is misspelled in the introduction of the extracting-model-metadata.md file. It should be 'processing'.
2. docs/blog/posts/extracting-model-metadata.md:56
  • Draft comment:
    Typo: 'possibily' should be 'possibly'.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The use of 'possibily' in the text is a typo and should be corrected to 'possibly'.
3. docs/blog/posts/consistent-stories.md:1
  • Draft comment:
    The new markdown file should be added to mkdocs.yml to ensure it is included in the documentation build.
  • Reason this comment was not posted:
    Comment was on unchanged code.
4. docs/blog/posts/extracting-model-metadata.md:1
  • Draft comment:
    The new markdown file should be added to mkdocs.yml to ensure it is included in the documentation build.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_w5f4k2Ugz4R2vGQ3


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

With instructor, working with `multimodal` data is easy. We can use the `Image` class to load images from a URL or local file. We can see this below in action.

```python
import instructor
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing import: Add import os at the top of the file to use os.path.join.

@ivanleomk ivanleomk merged commit bc7a7b3 into main Dec 11, 2024
8 of 16 checks passed
@ivanleomk ivanleomk deleted the add-model-metadata branch December 11, 2024 06:48
@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant