From c81117b9548fa6f04aca47955370d33e609d4798 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 14 Mar 2024 09:39:06 -0400 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 90b2c12..ad32a19 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,22 @@ See [documentation](https://eyurtsev.github.io/kor/). Integrated with the [LangChain framework 😽💗 🦜🔗](https://python.langchain.com/en/latest/index.html). +## Kor vs. LangChain + +There are 3 different approaches for extracting information using LLMs: + +1. [prompt based/parsing](https://python.langchain.com/docs/use_cases/extraction/how_to/parse) +2. [function/tool calling](https://python.langchain.com/docs/use_cases/extraction/quickstart) +3. JSON mode + +Please see the LangChain [extraction use case docs](https://python.langchain.com/docs/use_cases/extraction/) for an overview. + +Kor has a pretty good implementation of the **parsing** approach. The approach works with all good-enough LLMs regardless +of whether they support function/tool calling or JSON modes. + +Extraction quality is principally driven by providing good reference examples and good schema documentation. + +Please see guidelines [here](https://python.langchain.com/docs/use_cases/extraction/guidelines) and [here](https://eyurtsev.github.io/kor/guidelines.html). ## Version 1.0.0 Release