V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
goldiorl
V2EX  ›  程序员

大家好,想请问基于 chatgpt 的 QA 机器人是什么原理

  •  1
     
  •   goldiorl · 337 天前 · 1707 次点击
    这是一个创建于 337 天前的主题,其中的信息可能已经有所发展或是发生改变。

    起因是发现有个大佬的项目被喷得关了 https://v2ex.com/t/940231 https://github.com/howie6879/coolshell_qa

    上面的效果深深吸引了我

    体验:

    你好,做个自我介绍吧 你好,我是 CoolShell 问答机器人,我是由陈皓(左耳朵耗子)创办的。我可以基于上下文中的博客文章信息对用户的提问进行回答。

    简单说下 XY 问题 XY 问题指的是当一个人遇到问题 X 时,他会想到一个解决方案 Y ,并去问别人如何实现 Y ,而不是直接问如何解决 X 。这种做法可能会浪费别人的时间和精力,因为 Y 并不一定是解决 X 的最佳方案。最终,讨论问题的人会明白原始问题 X 的本质,并发现 Y 并不是最佳的解决方案。

    抛开这个项目内容不说,我对这个技术还是挺好奇的,请问有没有类似的项目可以看一看。 想学习一下怎么作的文章 index ,以及怎么在提问时喂给 chatgpt

    10 条回复    2023-05-20 10:42:35 +08:00
    peterchen26
        1
    peterchen26  
       337 天前 via Android
    估计走 向量召回,然后基于召回内容做 qa
    goldiorl
        2
    goldiorl  
    OP
       337 天前
    @peterchen26 有文档或者项目推荐能看看吗
    barbery
        3
    barbery  
       337 天前
    这个网上好多啊,利用 chatgpt 的 embedding api 把内容向量化,然后利用余弦相似度搜索找出最匹配的内容,组合上下文喂给 chatgpt ,让它基于上下文回答
    imldy
        4
    imldy  
       337 天前
    LangChain
    NouveauNom
        5
    NouveauNom  
       337 天前
    We have provided context information below:
    ------------------------
    {0}
    ------------------------
    Instructions: Respond to user query using context results. The answer uses the Markdown syntax.
    If the question is unrelated to the context, kindly inform that you can only answer questions relevant to the given context.
    Please answer my question in the same language that I used to ask you.
    My question is:
    {1}
    """
    peterchen26
        6
    peterchen26  
       336 天前 via Android
    @goldiorl 推荐你看看 hugging-llm
    SmiteChow
        7
    SmiteChow  
       336 天前
    chatpdf 原理
    cloudyi666
        8
    cloudyi666  
       336 天前
    flyrr
        9
    flyrr  
       336 天前
    推荐你看 openai-cookbook ,里面有几个示例项目 https://github.com/Cranberrycrisp/openai-cookbook/tree/main/apps 文档也有,在 examples 下
    goldiorl
        10
    goldiorl  
    OP
       335 天前
    谢谢各位!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5301 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.