Kor

Latest version: v1.0.1

Safety actively analyzes 638699 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.9.1

What's Changed

* Fix for breaking change in langchain by eyurtsev in https://github.com/eyurtsev/kor/pull/147

**Full Changelog**: https://github.com/eyurtsev/kor/compare/0.9.0...0.9.1

0.9.0

What's Changed

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

0.8.1

What's Changed

* Bug fix for object examples: eyurtsev in https://github.com/eyurtsev/kor/pull/131

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

0.8.0

What's Changed

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

* Add simple extraction workflow by eyurtsev in https://github.com/eyurtsev/kor/pull/124
* Add minimal HTML processing by eyurtsev in https://github.com/eyurtsev/kor/pull/123

**Full Changelog**: https://github.com/eyurtsev/kor/compare/0.7.0...0.8.0

0.7.0

What's Changed


* All the internal schema relies on pydantic for validation! This change may cause your code to crash if you've had typos!
eyurtsev in https://github.com/eyurtsev/kor/pull/117


* Allow customizing the prompt by eyurtsev in https://github.com/eyurtsev/kor/pull/121

python
from langchain.prompts import PromptTemplate

DEFAULT_PROMPT_TEMPLATE = PromptTemplate(
input_variables=["format_instructions", "type_description"],
template=(
"Write some stuff here n\n"
"{type_description}\n\n"
"{format_instructions}"
"Suffix heren\n"
),
)


chain = create_extraction_chain(llm, schema, instruction_template=DEFAULT_PROMPT_TEMPLATE)

print(chain.prompt.format_prompt(text='hello').to_string())


**Full Changelog**: https://github.com/eyurtsev/kor/compare/0.6.1...0.7.0

0.6.1

What's Changed

Bug fixes:

* Apply input formatter to user text, not only examples by eyurtsev in https://github.com/eyurtsev/kor/pull/119

New Contributors
* rishabhjain1198 made their first contribution in https://github.com/eyurtsev/kor/pull/118

**Full Changelog**: https://github.com/eyurtsev/kor/compare/0.6.0...0.6.1

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.