Giter VIP home page Giter VIP logo

Comments (8)

Eins0 avatar Eins0 commented on August 23, 2024 7

这个问题我没有找到官方解答,因此debug了很久,最终解决
应该是Langchain版本问题,
plugins/zhishiku_rtst.py 第62行
embedding = get_vectorstore(memory_name).embedding_function(s)
0.0329版本的langchain HuggingFaceEmbeddings类没有这个api,需要改成
embedding = get_vectorstore(memory_name).embedding_function.embed_query(s)
@l15y 作者有空可以确认下

from wenda.

Erkang1992 avatar Erkang1992 commented on August 23, 2024

我和你一样的情况但是我报的'NoneType' object has no attribute 'embedding_function'

from wenda.

AlvinAi96 avatar AlvinAi96 commented on August 23, 2024

我也遇到相同问题,而且知识库问答下,回复根本不是知识库内的内容

from wenda.

AlvinAi96 avatar AlvinAi96 commented on August 23, 2024

这个问题我没有找到官方解答,因此debug了很久,最终解决 应该是Langchain版本问题, plugins/zhishiku_rtst.py 第62行 embedding = get_vectorstore(memory_name).embedding_function(s) 0.0329版本的langchain HuggingFaceEmbeddings类没有这个api,需要改成 embedding = get_vectorstore(memory_name).embedding_function.embed_query(s) @l15y 作者有空可以确认下

谢谢,改完就没问题了!

from wenda.

LapisRanger avatar LapisRanger commented on August 23, 2024

这个问题我没有找到官方解答,因此debug了很久,最终解决 应该是Langchain版本问题, plugins/zhishiku_rtst.py 第62行 embedding = get_vectorstore(memory_name).embedding_function(s) 0.0329版本的langchain HuggingFaceEmbeddings类没有这个api,需要改成 embedding = get_vectorstore(memory_name).embedding_function.embed_query(s) @l15y 作者有空可以确认下

我的改完后也可以调用知识库了,感谢大佬!

from wenda.

Chen-mingxuan avatar Chen-mingxuan commented on August 23, 2024

大佬太强了 我一直没找到问题 终于解决了

from wenda.

wyjjs31 avatar wyjjs31 commented on August 23, 2024

这个问题我没有找到官方解答,因此debug了很久,最终解决 应该是Langchain版本问题, plugins/zhishiku_rtst.py 第62行 embedding = get_vectorstore(memory_name).embedding_function(s) 0.0329版本的langchain HuggingFaceEmbeddings类没有这个api,需要改成 embedding = get_vectorstore(memory_name).embedding_function.embed_query(s) @l15y 作者有空可以确认下

谢谢! 解决问题了

from wenda.

sspeedtail avatar sspeedtail commented on August 23, 2024

我和你一样的情况但是我报的'NoneType' object has no attribute 'embedding_function'

请问你解决了吗?我也是这个问题

from wenda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.