Skip to content

Consolidate LLM client to instructor#25

Merged
freddiev4 merged 15 commits intomainfrom
freddiev4/instructor-client
Jun 4, 2025
Merged

Consolidate LLM client to instructor#25
freddiev4 merged 15 commits intomainfrom
freddiev4/instructor-client

Conversation

@freddiev4
Copy link
Member

@freddiev4 freddiev4 commented May 20, 2025

This PR consolidates what we have for LLM clients to use instructor for its ease of use. It's well maintained and offers a simple interface for multiple LLM providers .from_provider('<provider>/<model-name>') minus support for ollama with this interface (x-ref: 567-labs/instructor#1533).

This also removes the need for installing extras like [auto] and [litellm].

There were several issues with litellm I ran into trying to run local models, and also supporting 3 different clients was just making things very messy from a dependency management and LLM client management perspective.

This should also address issues in #19.

TODO:

  • Test all existing judges
  • Update README

This was referenced May 20, 2025
@freddiev4 freddiev4 force-pushed the freddiev4/instructor-client branch from bbec695 to 813a4fa Compare June 3, 2025 20:05
@freddiev4 freddiev4 marked this pull request as ready for review June 3, 2025 20:18
@freddiev4 freddiev4 changed the title WIP: Consolidate LLM client to instructor Consolidate LLM client to instructor Jun 3, 2025
@freddiev4 freddiev4 merged commit 48d0272 into main Jun 4, 2025
3 checks passed
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