AI创想

标题: LangChain使用 [打印本页]

作者: jinxieshang    时间: 2025-9-7 23:35
标题: LangChain使用
1.安装依赖
  1. conda create -n langchain python=3.12
  2. conda activate langchain
  3. conda install langchain
  4. pip install langchain-community
  5. pip install langchain-core
  6. pip install "langserve[all]"
  7. pip install langchain-cli
  8. pip install langsmith
  9. pip install "unstructured[md]"
  10. pip install sentence-transformers
  11. pip install langchain-ollama
  12. pip install langchain_huggingface
  13. pip install langchain_chroma
  14. pip install flask
复制代码
2.下载模型
  1. export HF_ENDPOINT=https://hf-mirror.com
  2. huggingface-cli download BAAI/bge-m3
  3. curl -fsSL https://ollama.com/install.sh | sh
  4. ollama serve
  5. ollama run deepseek-r1:8b
复制代码





欢迎光临 AI创想 (http://llms-ai.com/) Powered by Discuz! X3.4