Skip to content

Releases: eyurtsev/kor

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

Version 0.7.0

06 Apr 13:56
94e809d
Compare
Choose a tag to compare

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 #117

  • Allow customizing the prompt by @eyurtsev in #121

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: 0.6.1...0.7.0

Version 0.6.1

04 Apr 17:58
3517e4a
Compare
Choose a tag to compare

What's Changed

Bug fixes:

  • Apply input formatter to user text, not only examples by @eyurtsev in #119

New Contributors

Full Changelog: 0.6.0...0.6.1

Version 0.6.0

03 Apr 17:39
c862029
Compare
Choose a tag to compare

What's Changed

  • Visitors accept **kwargs
  • Type-descriptors have been changed to be immutable
  • Added more documentation

Full Changelog: 0.5.1...0.6.0

Version 0.5.1

01 Apr 19:52
c39513b
Compare
Choose a tag to compare

What's Changed

  • Add input formatting argument to create_extraction_chain. This may help make the extraction more robust for text containing a lot of whitespace / multiple paragraphs.
  • Added kor.version
  • Added more sphinx documentation

Full Changelog: 0.5.0...0.5.1

Version 0.5.0

25 Mar 18:49
a1275ff
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.0...0.5.0

Version 0.4.0

22 Mar 18:56
09029a6
Compare
Choose a tag to compare

What's Changed

  • Integration with Langchain via an LLMChain
  • Added support for CSV, JSON encodings
  • Swapped default encoding to use CSV (less flexible, but anecdotally more accurate)
  • All schema nodes are no longer assumed to be lists by default. Instead the many attribute has been set to False
  • However, due to lack of validation and details of XML encoding, XML encoding will still output everything as lists.
  • Renamed type descriptors

Breaking Changes

Public API for extraction has changed completely to instead expose an LLMChain.

New Contributors

Full Changelog: 0.3.0...0.4.0

Version 0.3.0

15 Mar 18:33
856079a
Compare
Choose a tag to compare

What's Changed

  • Integrated with langchain
  • Added test coverage for code in preparation for feature work

Breaking changes

  • Removed kor adapters on top of open AI models, these will be maintained by langchain.

New Contributors

Full Changelog: 0.2.0...0.3.0

Version 0.2.0

11 Mar 15:26
4d6d91a
Compare
Choose a tag to compare

Added documentation and cleaned up some old code.
Small feature set to gauge interest.
Code is hardly tested at the moment.

Draft Release (v 0.0.1)

10 Mar 16:51
edcb1d8
Compare
Choose a tag to compare
Pre-release

Draft release only available for a few folks. Has some documentation and a somewhat stabilized API.