Skip to content

Releases: eyurtsev/kor

Version 1.0.0

06 Sep 19:13
132feef
Compare
Choose a tag to compare

Changes

  • kor is now compatible with both pydantic v2 and v1
  • pydantic v2 had significant breaking changes w/ respect to v1, so a major version bump was used in kor as a precaution to warn users about potential breaking changes.

Main things to watch out for when bumping to new pydantic version and new kor:

  1. Use a default value for any Optional fields if using pydantic v2 for validation.
class MusicRequest(BaseModel):
    song: Optional[List[str]] = Field(
        default=None,
        description="The song(s) that the user would like to be played."
    )
  1. Kor schema is typed checked using pydantic. Pydantic v2 is stricter, and may
    catch issues that were hiding in existing user code that was using the kor
    library.

  2. Serialization has not yet been implemented with pydantic v2.

Other changes

node ids are not longer required to be valid identifiers. This helps when using node ids which are attribute names written in other languages (e.g., chinese).

What's Changed

Full Changelog: 0.13.0...1.0.0

Version 0.13.0

11 Jul 07:46
1990baf
Compare
Choose a tag to compare

What's Changed

Attaches parser directly to extraction chain, allowing usage of the run method and deprecating usage of predict_and_parse (and async variants respectively).

Full Changelog: 0.12.0...0.13.0

Version 0.12.0

06 Jul 20:59
eebb05f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.11.0...0.12.0

Version 0.11.0

27 Jun 21:49
713c2bf
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.10.0...0.11.0

Version 0.10.0

25 May 15:30
8b0aa4f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.9.2...0.10.0

Version 0.9.2

07 May 19:29
6d18b93
Compare
Choose a tag to compare

What's Changed

Fix for JSON encoding when extracting non English text (#152)

  • Fix to allow encoding non ascii in JSON by @eyurtsev in #153
  • Add kor to sys path when generating docs by @eyurtsev in #116
  • Set default of JSON encoder to ensure_ascii = False by @eyurtsev in #154

Full Changelog: 0.9.1...0.9.2

Version 0.9.1

02 May 17:10
fed4215
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.9.0...0.9.1

Version 0.9.0

24 Apr 14:34
e9da5ac
Compare
Choose a tag to compare

What's Changed

Propagating verbosity flag to allow users to set verbosity on the extraction chain: @eyurtsev in #137

Full Changelog: 0.8.1...0.9.0

Version 0.8.1

20 Apr 02:27
fd4f2c6
Compare
Choose a tag to compare

What's Changed

Fix for this issue: #130 -- If the examples that were defined on an object were a list of dicts with each dict containing exactly 2 items, then the list of dicts was incorrectly coerced by pydantic into a dict

Full Changelog: 0.8.0...0.8.1

Version 0.8.0

08 Apr 13:11
392f655
Compare
Choose a tag to compare

What's Changed

Support for extracting from longer documents see documentation: https://eyurtsev.github.io/kor/document_extraction.html

Full Changelog: 0.7.0...0.8.0