Giter Club home page Giter Club logo

Comments (2)

dosubot avatar dosubot commented on June 1, 2024 2

在使用bge-large-zh向量数据库和设置Temperature参数为0.1时,知识匹配分数阈值的设置主要依赖于你的具体需求。阈值的选择影响着招回数据的严格程度:较低的阈值(如0.4)会招回更多数据,但可能包含相关性较低的结果;较高的阈值(如0.7)则会减少招回的数据量,但提高了数据的相关性。

bge-large-zh向量数据库中,知识匹配分数是通过FAISS库计算的,使用的是内积距离策略和L2规范化。这意味着,向量嵌入在计算相似度分数前会进行L2规范化处理,而分数本身是基于向量间的内积计算的。这些分数用于过滤和选择匹配的知识条目。

对于阈值的具体设置,没有一成不变的规则。建议从一个中等阈值开始实验,然后根据招回的数据质量逐步调整。例如,如果你发现阈值为0.7时招回的数据太少或没有数据,那么可以尝试降低阈值,如调整到0.4,以观察是否能够招回更多相关数据。重要的是要找到一个平衡点,既能够招回足够的数据,又能保证数据的相关性。

希望这能帮助到你!如果还有其他问题,随时欢迎提问。

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

from langchain-chatchat.

zRzRzRzRzRzRzR avatar zRzRzRzRzRzRzR commented on June 1, 2024

Temperature 根数据库没有关系啊?

from langchain-chatchat.

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.