eyurtsev / kor

LLM(😽)
https://eyurtsev.github.io/kor/
MIT License
1.56k stars 88 forks source link

from kor.extraction import create_extraction_chain not supported by Lang Chain #244

Open matttschetter opened 8 months ago

matttschetter commented 8 months ago

I could be mistaken, but it appears create_extraction_chain from kor.extraction is not support by LangChain anymore and may need updating. This is the error I got

UserWarning: Importing PromptTemplate from langchain root module is no longer supported. warnings.warn(

eyurtsev commented 8 months ago

Thanks! It's okay for now it's a warning about an upcoming deprecation, but code will work fine as is for now. I'll update in a bit.

surkova commented 5 months ago

Please update, now more things are posting warnings.

abcnow commented 3 weeks ago

any update on this? it keeps happening on my end...

from kor import KorExtractor # Adjusted import based on actual class name ImportError: cannot import name 'KorExtractor' from 'kor'

eyurtsev commented 2 weeks ago

It's a deprecation warning. I'll try to release at some point, but spending more time on langchain maintenance right now. You can suppress the deprecation warnings on user side, or else ignore them for now -- they're just saying that some code moved from one place to another in the langchain code base.

On Tue, Jun 18, 2024 at 11:59 PM agencymemory @.***> wrote:

Looks like this repo is not regularly maintained. I am still getting the warning

— Reply to this email directly, view it on GitHub https://github.com/eyurtsev/kor/issues/244#issuecomment-2177573797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYOTETQFVA6XUUC5NS3CULZID6ZNAVCNFSM6AAAAAA6UGX3O2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGU3TGNZZG4 . You are receiving this because you commented.Message ID: @.***>

-- Eugene Yurtsev

Personal Website: http://eyurtsev.github.io