赞
踩
# import from langchain_community.document_loaders import TextLoader from langchain_community.embeddings.sentence_transformer import ( SentenceTransformerEmbeddings, ) from langchain_community.embeddings import HuggingFaceEmbeddings from langchain_community.vectorstores import Chroma from langchain_text_splitters import RecursiveCharacterTextSplitter from langchain_community.document_loaders.word_document import Docx2txtLoader import glob import os # 数据库路径 db_dir = "./db" # 文档路径
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。