go_gpt_kefu

所属分类:GPT/ChatGPT
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-08-26 02:36:53
上 传 者sh-1993
说明:  go语言版本智能客服项目,速度比python快200%,非常稳定可用,智能客服,搭建本地知识库,智能问答。 Go language version smart customer service project, 200% faster than python, very s...,
(The go language version of the intelligent customer service project is 200% faster than python, which is very stable and available. Intelligent customer service, building a local knowledge base, and intelligent question and answer. Go language version smart customer service project, 200% fast than python, very s,)

文件列表:
.idea/ (0, 2023-09-07)
.idea/kefu.iml (322, 2023-09-07)
.idea/modules.xml (260, 2023-09-07)
.idea/vcs.xml (180, 2023-09-07)
db/ (0, 2023-09-07)
db/qdrant.go (4612, 2023-09-07)
go.mod (978, 2023-09-07)
go.sum (7463, 2023-09-07)
gpt/ (0, 2023-09-07)
gpt/gpt.go (4793, 2023-09-07)
id.txt (3, 2023-09-07)
main.go (7405, 2023-09-07)

# 基于go语言的智能客服系统 #### 现在更新了go语言版本! 用户端问答基于chatgpt大模型,向量数据库基于qdrant。 ### 官方文档: chatgpt:https://platform.openai.com/docs/introduction qdrant:https://qdrant.tech/documentation/ ### 目前进度: 本项目目前使用go语言http包进行数据库交互。 后续有时间将会完善为docker-compose搭建部署,使用docker虚拟网络进行数据库操作,兼具安全性与实用性。 ### 部署教程: 直接 `docker-compose up`即可 需要自己新建.env文件,内容为环境变量: | | | | --------------- | ---------------------- | | APP_PORT | 暴露对外的应用程序接口 | | DB_PORT | 暴露对外的数据库接口 | | OPENAI_API_KEY | openai的key | | OPENAI_BASE_URL | openai的base-url | ### 以下部署教程已经废弃 ~~先安装数据库:~~ ```shell docker pull qdrant/qdrant docker run -p 6333:6333 \ -v $(pwd)/qdrant_storage:/qdrant/storage \ qdrant/qdrant ``` ~~安装完成之后,即可使用,克隆本项目:~~ ```shell git clone https://github.com/haynb/go_gpt_kefu.git ``` ### ~~程序配置:~~ ~~在运行之前请先:~~ ```go go mod tidy ``` ~~之后进行如下配置:~~ ~~db文件夹下qdrant.go即为数据库配置,请把~~ ```go var ( QdrantBase = "1**.**.2*.***"//数据库ip地址 QdrantPort = "6333"//数据库的开放端口 id_file = "id.txt" ) ``` ~~修改为你自己搭建的数据库的配置。id_file为方便添加points时使用的辅助文件,详情请阅读源码。~~ ~~gpt文件夹下gpt.go即为gpt配置~~ ~~请自行阅读代码,更改自己的`api_baseurl`和`openai_key`为自己的即可。具体的prompt也可以自行`append`。~~ ~~main.go即为程序运行入口。~~ ### ~~最后:~~ ```go go run . ``` ~~程序的接口已经整合在了main.go里面。~~ ~~包括:上传并自动解析文件,查询文件列表~~,使用聊天。

近期下载者

相关文件


收藏者