LLM(😽)
kor
is now compatible with both pydantic v2 and v1kor
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:
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."
)
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.
Serialization has not yet been implemented with pydantic v2.
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).
Full Changelog: https://github.com/eyurtsev/kor/compare/0.13.0...1.0.0
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: https://github.com/eyurtsev/kor/compare/0.12.0...0.13.0
Full Changelog: https://github.com/eyurtsev/kor/compare/0.11.0...0.12.0
Full Changelog: https://github.com/eyurtsev/kor/compare/0.10.0...0.11.0
Full Changelog: https://github.com/eyurtsev/kor/compare/0.9.2...0.10.0
Fix for JSON encoding when extracting non English text (https://github.com/eyurtsev/kor/issues/152)
Full Changelog: https://github.com/eyurtsev/kor/compare/0.9.1...0.9.2
Full Changelog: https://github.com/eyurtsev/kor/compare/0.9.0...0.9.1
Propagating verbosity flag to allow users to set verbosity on the extraction chain: @eyurtsev in https://github.com/eyurtsev/kor/pull/137
Full Changelog: https://github.com/eyurtsev/kor/compare/0.8.1...0.9.0
Fix for this issue: https://github.com/eyurtsev/kor/issues/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: https://github.com/eyurtsev/kor/compare/0.8.0...0.8.1
Support for extracting from longer documents see documentation: https://eyurtsev.github.io/kor/document_extraction.html
Full Changelog: https://github.com/eyurtsev/kor/compare/0.7.0...0.8.0