Repository navigation
|
I am testing a kor library and I find it really helpful when extracting pieces of information from a low-quality text (like parsed online ads). The problem is a kor prompt usually gets long and when combined with an original text, it easily exceeds the token limit of OpenAI. When working with pure LangChain, I use vectorstores to grab the most relevant chunks of text. Do you know how to use vectorstores with kor? That would really help! Thanks. |
Answered by
eyurtsev
Oct 12, 2023
Replies: 1 comment
|
Hi @ahmed-bhs, There's no pre-built solution. You can iterate over all documents chunks as shown here: https://eyurtsev.github.io/kor/document_extraction.html If you want to do something more efficient (but potentially more error prone), here's a discussion that might be useful: #181 |
0 replies
Answer selected by
eyurtsev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ahmed-bhs,
There's no pre-built solution. You can iterate over all documents chunks as shown here: https://eyurtsev.github.io/kor/document_extraction.html
If you want to do something more efficient (but potentially more error prone), here's a discussion that might be useful: #181