You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 6.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <p align="center">
  2. <a href="https://openkf.github.io/website" target="_blank">
  3. <img src="assets/logo-gif/openkf-logo-white.gif" width="60%" height="30%"/>
  4. </a>
  5. </p>
  6. <h3 align="center" style="border-bottom: none">
  7. ⭐️ OpenKF(Open Knowledge Flow) is an online intelligent customer service system. ⭐️ <br>
  8. <h3>
  9. <p align=center>
  10. <a href="https://goreportcard.com/report/github.com/OpenIMSDK/OpenKF"><img src="https://goreportcard.com/badge/github.com/OpenIMSDK/OpenKF" alt="A+"></a>
  11. <a href="https://github.com/OpenIMSDK/OpenKF/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22"><img src="https://img.shields.io/github/issues/OpenIMSDK/OpenKF/good%20first%20issue?logo=%22github%22" alt="good first"></a>
  12. <a href="https://github.com/OpenIMSDK/OpenKF"><img src="https://img.shields.io/github/stars/OpenIMSDK/OpenKF.svg?style=flat&logo=github&colorB=deeppink&label=stars"></a>
  13. <a href="https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg"><img src="https://img.shields.io/badge/Slack-100%2B-blueviolet?logo=slack&amp;logoColor=white"></a>
  14. <a href="https://github.com/OpenIMSDK/OpenKF/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-green"></a>
  15. <a href="https://golang.org/"><img src="https://img.shields.io/badge/Language-Go-blue.svg"></a>
  16. </p>
  17. </p>
  18. <p align="center">
  19. <a href="./README.md"><b>English</b></a> •
  20. <a href="./README_zh-CN.md"><b>中文</b></a>
  21. </p>
  22. </p>
  23. <br>
  24. ## 🧩 Awesome features
  25. 1. [OpenKF](https://github.com/OpenIMSDK/OpenKF) is an opensource customer service system based on [OpenIM](https://github.com/OpenIMSDK).
  26. 2. Support LLM(Local Knowledgebase) customer service.
  27. 3. Support multi-channel customer service, and easy to integrate with third-party systems.
  28. 4. Easy to deploy and secondary development.
  29. ## 🛫 Quick start
  30. > **Note**: You can get started quickly with OpenKF.
  31. ### 📦 Installation
  32. ```bash
  33. git clone https://github.com/OpenIMSDK/OpenKF openkf && export openkf=$(pwd)/openkf && cd $openkf && make
  34. ```
  35. ### 🚀 Run
  36. > **Note**:
  37. > We need to run the backend server first
  38. ```bash
  39. make build
  40. ```
  41. > open another terminal run the following command
  42. ```bash
  43. # make dev
  44. cd web
  45. npm run dev
  46. ```
  47. ### 📖 Contributors get up to speed
  48. Be good at using Makefile, it can ensure the quality of your project.
  49. ```bash
  50. Usage: make <TARGETS> ...
  51. Targets:
  52. all Build all the necessary targets. 🏗️
  53. build Build binaries by default. 🛠️
  54. go.build Build the binary file of the specified platform. 👨‍💻
  55. build-multiarch Build binaries for multiple platforms. 🌍
  56. tidy tidy go.mod 📦
  57. style Code style -> fmt,vet,lint 🎨
  58. fmt Run go fmt against code. ✨
  59. vet Run go vet against code. 🔍
  60. generate Run go generate against code and docs. ✅
  61. lint Run go lint against code. 🔎
  62. test Run unit test ✔️
  63. cover Run unit test with coverage. 🧪
  64. docker-build Build docker image with the manager. 🐳
  65. docker-push Push docker image with the manager. 🔝
  66. docker-buildx-push Push docker image with the manager using buildx. 🚢
  67. copyright-verify Validate boilerplate headers for assign files. 📄
  68. copyright-add Add the boilerplate headers for all files. 📝
  69. swagger Generate swagger document. 📚
  70. serve-swagger Serve swagger spec and docs. 🌐
  71. clean Clean all builds. 🧹
  72. help Show this help info. ℹ️
  73. ```
  74. > **Note**:
  75. > It's highly recommended that you run `make all` before committing your code. 🚀
  76. ```bash
  77. make all
  78. ```
  79. ## 🕋 Architecture diagram
  80. ![Architecture](assets/images/architecture.png)
  81. **MVC Architecture Design:**
  82. ![MVC](assets/images/mvc.png)
  83. ## 🤖 File Directory Description
  84. Catalog standardization design structure:
  85. ```bash
  86. .
  87. ├── assets
  88. │ └── images
  89. ├── build
  90. ├── deploy
  91. ├── docs
  92. ├── kf_plugins # Local knowledgebase with LLM
  93. │ ├── chat
  94. │ ├── config
  95. │ ├── data
  96. │ ├── logs
  97. │ ├── model
  98. │ └── utils
  99. ├── scripts
  100. │ ├── githooks
  101. │ └── LICENSE
  102. ├── server # OpenKF backend
  103. │ ├── cmd
  104. │ ├── data
  105. │ ├── docs
  106. │ ├── examples
  107. │ ├── internal
  108. │ ├── logs
  109. │ ├── pkg
  110. │ ├── test
  111. │ └── tools
  112. └── web # OpenKF frontend
  113. ├── public
  114. ├── scripts
  115. └── src
  116. ```
  117. ## 🗓️ community meeting
  118. We want anyone to get involved in our community, we offer gifts and rewards, and we welcome you to join us every Thursday night.
  119. Our conference is in the [OpenIM Slack](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) 🎯 `openkf` pipeline, then you can search the openkf pipeline to join
  120. We take notes of each [biweekly meeting](https://github.com/orgs/OpenIMSDK/discussions/categories/meeting) in [GitHub discussions](https://github.com/OpenIMSDK/OpenKF/discussions/categories/meeting), and our minutes are written in [Google Docs](https://docs.google.com/document/d/1nx8MDpuG74NASx081JcCpxPgDITNTpIIos0DS6Vr9GU/edit?usp=sharing).
  121. ## 🤼‍ Contributing & Development
  122. OpenIMSDK Our goal is to build a top-level open source community. We have a set of standards, in the [Community repository](https://github.com/OpenIMSDK/community).
  123. If you'd like to contribute to this OpenKF repository, please read our [contributor documentation](https://github.com/OpenIMSDK/OpenKF/blob/main/CONTRIBUTING.md).
  124. Before you start, please make sure your changes are in demand. The best for that is to create a [new discussion](https://github.com/OpenIMSDK/OpenKF/discussions/new/choose) OR [Slack Communication](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg), or if you find an issue, [report it](https://github.com/OpenIMSDK/OpenKF/issues/new/choose) first.
  125. ## 🚨 License
  126. OpenIMSDK is licensed under the Apache 2.0 license. See [LICENSE](https://github.com/OpenIMSDK/OpenKF/tree/main/LICENSE) for the full license text.
  127. The OpenKF logo, including its variations and animated versions, displayed in this repository [OpenKF](https://github.com/OpenIMSDK/openkf) under the [assets/logo](./assets/logo) and [assets/logo-gif](assets/logo-gif) directories, are protected by copyright laws.
  128. ## 🔮 Thanks to our contributors!
  129. <a href="https://github.com/OpenIMSDK/OpenKF/graphs/contributors">
  130. <img src="https://contrib.rocks/image?repo=OpenIMSDK/OpenKF" />
  131. </a>