Langchain module ‘hnswlib‘ has no attribute ‘Index‘ 错误解决

Langchain module 'hnswlib' has no attribute 'Index' 错误解决

使用 Langchain 操作 Chroma 向量数据库时,报一下错误信息,

复制代码
module 'hnswlib' has no attribute 'Index'

试着重装了不同 hnswlib 版本没有解决,最后解决方法是,不要使用 hnswlib,使用 chroma-hnswlib,

复制代码
pip uninstall hnswlib

pip install chroma-hnswlib

完结!

相关推荐
缘友一世1 小时前
LangChain【8】之工具包深度解析:从基础使用到高级实践
langchain
bytebeats3 小时前
强大的代理通信其实是 A2A + MCP + LangChain
langchain·mcp
架构师那点事儿7 小时前
一文带你俯瞰大模型领域的世界
langchain·aigc·ai编程
用户84913717547161 天前
🚀5 分钟实现 Markdown 智能摘要生成器:LangChain + OpenAI 实战教程
langchain·openai
金汐脉动1 天前
实践指南:从零开始搭建RAG驱动的智能问答系统
langchain
MrGaoGang2 天前
AI应用开发:LangGraph+MCP
前端·人工智能·langchain
西部荒野子2 天前
LangChain.js 中的 Runnable 系统
langchain
大尾巴青年2 天前
06 一分钟搞懂langchain的Agent是如何工作的
langchain·llm
敲键盘的小夜猫3 天前
LangChain核心之Runnable接口底层实现
langchain
疯狂的小强呀3 天前
基于langchain的简单RAG的实现
python·langchain·rag检索增强