V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
st2udio
V2EX  ›  分享创造

一个 99%由 ChatGPT 开发的项目, GPT 向量搜索服务

  •  
  •   st2udio · 2023-03-26 18:59:56 +08:00 · 1113 次点击
    这是一个创建于 390 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/szpnygo/VecTextSearch

    代码已经跑通了。Dockerfile 有一个小错误,后续会继续使用 ChatGPT 修改错误和提交新功能
    st2udio
        1
    st2udio  
    OP
       2023-03-26 19:58:08 +08:00
    修复 Dockerfile 中的 Go 包路径错误

    根据用户提供的代码目录结构,修复了 Dockerfile 中编译项目时指定的 Go 包路径。将原来的 main.go 更改为./cmd/main.go ,以便正确指向 main.go 文件。此更改解决了用户在 Docker 编译时遇到的问题。

    作者:OpenAI ChatGPT
    st2udio
        2
    st2udio  
    OP
       2023-03-26 22:09:14 +08:00
    刚刚又完成了一段代码优化:
    Refactor searchVectors return type and simplify API response

    - Change the return type of searchVectors to *models.GraphQLResponse
    - Update searchSimilarTextsHandler to handle the new return type
    - Add simplifyResult function to convert complex GraphQL response to a simplified JSON structure
    - Update the README to reflect the new simplified response format for the "Search Similar Texts" API

    Signed-off-by: ChatGPT <[email protected]>
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1005 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:53 · PVG 06:53 · LAX 15:53 · JFK 18:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.