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

Integration instructor #654

Merged
merged 43 commits into from
May 29, 2024
Merged

Integration instructor #654

merged 43 commits into from
May 29, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented May 21, 2024

Description

This PR integrates instructor for structured generation of LLMs.
It includes support for the following LLMs:

  • openai/azure, anthropic, litellm, mistral, cohere and groq.

An example pipeline can be seen in the /examples/structured_generation_with_instructor.py.

The resulting dataset can be seen here.

Also closes #661

@plaguss plaguss added enhancement New feature or request integrations labels May 21, 2024
@plaguss plaguss added this to the 1.2.0 milestone May 21, 2024
@plaguss plaguss self-assigned this May 21, 2024
@plaguss plaguss linked an issue May 22, 2024 that may be closed by this pull request
@plaguss plaguss marked this pull request as ready for review May 23, 2024 14:24
Copy link
Member

@gabrielmbmb gabrielmbmb left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just some comments related with code style and some missing docstrings.

docs/sections/learn/advanced/structured_generation.md Outdated Show resolved Hide resolved
docs/sections/learn/advanced/structured_generation.md Outdated Show resolved Hide resolved
docs/sections/pipeline_samples/examples/index.md Outdated Show resolved Hide resolved
src/distilabel/llms/base.py Show resolved Hide resolved
src/distilabel/steps/tasks/structured_outputs/utils.py Outdated Show resolved Hide resolved
src/distilabel/steps/tasks/structured_outputs/utils.py Outdated Show resolved Hide resolved
src/distilabel/steps/tasks/structured_outputs/utils.py Outdated Show resolved Hide resolved
src/distilabel/steps/tasks/structured_outputs/utils.py Outdated Show resolved Hide resolved
src/distilabel/steps/tasks/structured_outputs/utils.py Outdated Show resolved Hide resolved
plaguss and others added 13 commits May 27, 2024 12:18
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
Co-authored-by: Gabriel Martín Blázquez <gmartinbdev@gmail.com>
@plaguss plaguss requested a review from gabrielmbmb May 27, 2024 14:29
@plaguss plaguss merged commit 01b4292 into develop May 29, 2024
4 checks passed
@plaguss plaguss deleted the integration-instructor branch May 29, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integrations
Projects
None yet
3 participants