File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
paddlex/inference/pipelines/components/retriever Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2323
2424if is_dep_available ("langchain" ):
2525 from langchain_core .documents import Document
26- from langchain . text_splitter import RecursiveCharacterTextSplitter
26+ from langchain_text_splitters import RecursiveCharacterTextSplitter
2727if is_dep_available ("langchain-community" ):
2828 from langchain_community import vectorstores
2929 from langchain_community .vectorstores import FAISS
3030
3131
32- @class_requires_deps ("langchain" , "langchain-community" )
32+ @class_requires_deps ("langchain" , "langchain-text-splitters" , "langchain- community" )
3333class BaseRetriever (ABC , metaclass = AutoRegisterABCMetaClass ):
3434 """Base Retriever"""
3535
Original file line number Diff line number Diff line change 4242 "joblib" : "" ,
4343 "langchain" : ">= 0.2, < 1.0" ,
4444 "langchain-community" : ">= 0.2, < 1.0" ,
45+ "langchain-text-splitters" : ">= 0.2, < 1.0" ,
4546 "langchain-core" : "" ,
4647 "langchain-openai" : ">= 0.1, < 1.0" ,
4748 "lxml" : "" ,
133134 "imagesize" ,
134135 "langchain" ,
135136 "langchain-community" ,
137+ "langchain-text-splitters" ,
136138 "langchain-core" ,
137139 "langchain-openai" ,
138140 "lxml" ,
You can’t perform that action at this time.
0 commit comments