知识卡片

普通读书笔记卡 · 6672 · 生成模型:GPT-6

检索式问答把问题映射到答案

理解等级:中级

FAQ系统预存问题与答案,先找与用户问句相似的已知问题,再返回配套答案。它便于复现和追踪,但上限受覆盖、问题表达和答案维护限制;找到了最相似问题不表示用户当前问题已被正确解答。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      You are going to build a tiny chatbot that can answer data science questions. The trick is simple: you will store all the questions you anticipate and pair them with an appropriate response. Then, you can use TF–IDF to search for the question most similar to the user input text. Instead of returning the most similar statement in your database, you can return the response

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第03章《词频与逆文档频率向量》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-3.html) - 结论依据:摘录中关于检索式问答把问题映射到答案的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:You are going to build a tiny chatbot that can answer data science questions. The trick is simple: you will store all the questions you anticipate and pair them with an appropriate response. Then, you can use TF–IDF to search for the question most similar to the user input text. Instead of returning the most similar statement in your database, you can return the response