每天写点什么2026-01-13-Langchain-Chatchat及开发环境

以下是优化后的内容:

环境安装指南

基础环境安装

  1. 安装conda、cuda和jupyter

Jupyter配置

复制代码
jupyter lab --ip=0.0.0.0 --allow-root -p=8888

Langchain-Chatchat部署

  1. 克隆项目仓库:

    git clone https://github.com/chatchat-space/Langchain-Chatchat.git

  2. 安装依赖包:

    pip install langchain-chatchat -U
    pip install poetry

  3. 安装开发依赖:
    进入项目主目录后安装相关依赖,详细步骤参考:
    开发部署文档

注意:项目配置现统一由chatchat.settings.Settings管理,替代了原有的chatchat/configs/*.py配置方式。

  1. 启动服务:

    cd /opt/Langchain-Chatchat/libs/chatchat-server && python chatchat/cli.py start -a

Ollama安装配置

  1. 安装Ollama:

    curl -fsSL https://ollama.com/install.sh | sh

  2. 配置镜像站:

    mkdir -p ~/.ollama
    cat << EOF > ~/.ollama/config.json
    {
    "registry": {
    "mirrors": {
    "registry.ollama.ai": "https://registry.ollama.ai"
    }
    }
    }
    EOF

  3. 安装模型:

    ollama install qwen:7B

相关推荐
前端付豪15 小时前
LangChain链 写一篇完美推文?用SequencialChain链接不同的组件
人工智能·python·langchain
曲幽16 小时前
FastAPI实战:打造本地文生图接口,ollama+diffusers让AI绘画更听话
python·fastapi·web·cors·diffusers·lcm·ollama·dreamshaper8·txt2img
神秘的猪头18 小时前
🔌 把 MCP 装进大脑!手把手带你构建能“热插拔”工具的 AI Agent
langchain·llm·mcp
曲幽2 天前
我用FastAPI接ollama大模型,差点被asyncio整崩溃(附对话窗口实战)
python·fastapi·web·async·httpx·asyncio·ollama
是一碗螺丝粉2 天前
5分钟上手LangChain.js:用DeepSeek给你的App加上AI能力
前端·人工智能·langchain
是一碗螺丝粉2 天前
LangChain 核心组件深度解析:模型与提示词模板
前端·langchain·aigc
大模型真好玩3 天前
大模型训练全流程实战指南工具篇(七)——EasyDataset文档处理流程
人工智能·langchain·deepseek
曲幽3 天前
FastAPI + Ollama 实战:搭一个能查天气的AI助手
python·ai·lora·torch·fastapi·web·model·ollama·weatherapi
勇气要爆发4 天前
吴恩达《LangChain LLM 应用开发精读笔记》1-Introduction_介绍
笔记·langchain·吴恩达