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

2023-03-26 18:59:56 +08:00
 st2udio
https://github.com/szpnygo/VecTextSearch

代码已经跑通了。Dockerfile 有一个小错误,后续会继续使用 ChatGPT 修改错误和提交新功能
1127 次点击
所在节点    分享创造
2 条回复
st2udio
2023-03-26 19:58:08 +08:00
修复 Dockerfile 中的 Go 包路径错误

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

作者:OpenAI ChatGPT
st2udio
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 <assistant@openai.com>

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/927311

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX