Skip to content

DashSalter/Langchain_RAGProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Langchain_RAGProject

python版本要求

Python version==3.10

Model Url(需要下载的模型文件)

链接:https://pan.baidu.com/s/1aiq6AS1ucAs_AX9-Wn_klQ?pwd=ARAR 
提取码:ARAR

项目环境文件.env文件(openai_key)

需要在项目中创建.env文件,配置以下信息

OPENAI_API_KEY = ""
OPENAI_BASE_URL = "https://api.openai.com/v1/"

解决方案 """

from unstructured.file_utils.filetype import FileType, detect_filetype
#detect_filetype 函数中的 361行加上以下代码
if LIBMAGIC_AVAILABLE:
    import magic

    mime_type = (

# 修改成以下代码
if LIBMAGIC_AVAILABLE:
    import locale
    locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')

    import magic

    mime_type = (
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages