Giter Site home page Giter Site logo

Pydantic V1 support about instructor HOT 2 OPEN

maxschulz-COL avatar maxschulz-COL commented on June 4, 2024
Pydantic V1 support

from instructor.

Comments (2)

jxnl avatar jxnl commented on June 4, 2024 1

Yeah, there's no way to go backwards. We use a lot of the newer features

from instructor.

maxschulz-COL avatar maxschulz-COL commented on June 4, 2024

@jxnl One more question that I am wondering: What would be other key differences of instructor vs e.g. using the langchain pydantic output parser.

The main difference visible to me is the retry capability, which can be maybe added to a langchain approach.

I am wondering e.g. what the additional features of V2 are that you are using. Would V2 also be more powerful to parse more complex nested outputs? Or would it be better at using OS models that do not reliable even return a valid JSON?

In our case, we are still thinking of whether it's easier to use langchain (as it support pydantic V1) or upgrade to pydantic V2 to make use of instructor.

Any quick notes would be much appreciated 🙏 !

from instructor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.