Skip to content

Commit

Permalink
Version 1.0.0 release (#223)
Browse files Browse the repository at this point in the history
Version 1.0.0 release
  • Loading branch information
eyurtsev authored Sep 6, 2023
1 parent 5bf22dc commit 132feef
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
**⚠ WARNING: Prototype with unstable API. 🚧**

[![Unit Tests](https://github.com/eyurtsev/kor/actions/workflows/test.yml/badge.svg?branch=main&event=push)](https://github.com/eyurtsev/kor/actions/workflows/test.yml)
[![Test Docs](https://github.com/eyurtsev/kor/actions/workflows/doc_test.yaml/badge.svg?branch=main&event=push)](https://github.com/eyurtsev/kor/actions/workflows/doc_test.yaml)

Expand All @@ -20,6 +18,33 @@ See [documentation](https://eyurtsev.github.io/kor/).

Integrated with the [LangChain framework πŸ˜½πŸ’— πŸ¦œπŸ”—](https://python.langchain.com/en/latest/index.html).


## Version 1.0.0 Release

* `kor` compatible with both pydantic v2 and v1.
* pydantic v2 had significant breaking changes w/ respect to v1, `kor` major
version bump was used as a precaution.


Main things to watch out for:

1. Use a `default` value for any Optional fields if using pydantic v2 for validation.

```python
class MusicRequest(BaseModel):
song: Optional[List[str]] = Field(
default=None,
description="The song(s) that the user would like to be played."
)
```

2. 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.

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


## Kor style schema

```python
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kor"
version = "0.13.0"
version = "1.0.0"
description = "Extract information with LLMs from text"
authors = ["Eugene Yurtsev <eyurtsev@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 132feef

Please sign in to comment.