{"id":13561158,"url":"https://github.com/239573049/fast-wiki","last_synced_at":"2025-04-03T16:32:07.139Z","repository":{"id":265509718,"uuid":"790534758","full_name":"239573049/fast-wiki","owner":"239573049","description":"基于.NET8+React+LobeUI实现的企业级智能客服知识库","archived":false,"fork":true,"pushed_at":"2024-09-13T07:11:47.000Z","size":15822,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T07:51:59.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://chat.token-ai.cn/","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"AIDotNet/koala-ai","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/239573049.png","metadata":{},"created_at":"2024-04-23T03:56:15.000Z","updated_at":"2024-09-13T07:11:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/239573049/fast-wiki","commit_stats":null,"previous_names":["239573049/fast-wiki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/239573049%2Ffast-wiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/239573049%2Ffast-wiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/239573049%2Ffast-wiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/239573049%2Ffast-wiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/239573049","download_url":"https://codeload.github.com/239573049/fast-wiki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247037115,"owners_count":20873098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","dotnet","semantic-kernel"],"created_at":"2024-08-01T13:00:53.087Z","updated_at":"2025-04-03T16:32:07.132Z","avatar_url":"https://github.com/239573049.png","language":"TypeScript","funding_links":[],"categories":["Open Source Projects"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\r\n\r\n\u003cimg height=\"160\" src=\"./img/logo.png\"\u003e\r\n\r\n\u003ch1\u003eFastWiki\u003c/h1\u003e\r\n\r\nFastWiki打造企业级人工智能客服管理系统！\r\n\r\n[![][github-contributors-shield]][github-contributors-link]\r\n[![][github-forks-shield]][github-forks-link]\r\n[![][github-stars-shield]][github-stars-link]\r\n[![][github-issues-shield]][github-issues-link]\r\n[![][github-license-shield]][github-license-link]\r\n\r\n[Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]\r\n\r\n![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)\r\n\r\n\u003c/div\u003e\r\n\r\n[npm-release-shield]: https://img.shields.io/npm/v/@lobehub/chat?color=369eff\u0026labelColor=ffcb47\u0026logo=npm\u0026logoColor=white\u0026style=flat-square\r\n\r\n[npm-release-link]: https://www.npmjs.com/package/@lobehub/chat\r\n\r\n[github-releasedate-shield]: https://img.shields.io/github/release-date/AIDotNet/fast-wiki?color=8ae8ff\u0026labelColor=ffcb47\u0026style=flat-square\r\n\r\n[github-releasedate-link]: https://github.com/AIDotNet/fast-wiki/releases\r\n\r\n[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/AIDotNet/fast-wiki/test.yml?color=8ae8ff\u0026label=test\u0026labelColor=ffcb47\u0026logo=githubactions\u0026logoColor=white\u0026style=flat-square\r\n\r\n[github-action-test-link]: https://github.com/AIDotNet/fast-wiki/actions/workflows/test.yml\r\n\r\n[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/AIDotNet/fast-wiki/release.yml?color=8ae8ff\u0026label=release\u0026labelColor=ffcb47\u0026logo=githubactions\u0026logoColor=white\u0026style=flat-square\r\n\r\n[github-action-release-link]: https://github.com/AIDotNet/fast-wiki/actions/workflows/release.yml\r\n\r\n[github-contributors-shield]: https://img.shields.io/github/contributors/AIDotNet/fast-wiki?color=c4f042\u0026labelColor=ffcb47\u0026style=flat-square\r\n\r\n[github-contributors-link]: https://github.com/AIDotNet/fast-wiki/graphs/contributors\r\n\r\n[github-forks-shield]: https://img.shields.io/github/forks/AIDotNet/fast-wiki?color=8ae8ff\u0026labelColor=ffcb47\u0026style=flat-square\r\n\r\n[github-forks-link]: https://github.com/AIDotNet/fast-wiki/network/members\r\n\r\n[github-stars-shield]: https://img.shields.io/github/stars/AIDotNet/fast-wiki?color=ffcb47\u0026labelColor=ffcb47\u0026style=flat-square\r\n\r\n[github-stars-link]: https://github.com/AIDotNet/fast-wiki/network/stargazers\r\n\r\n[github-issues-shield]: https://img.shields.io/github/issues/AIDotNet/fast-wiki?color=ff80eb\u0026labelColor=ffcb47\u0026style=flat-square\r\n\r\n[github-issues-link]: https://github.com/AIDotNet/fast-wiki/issues\r\n\r\n[github-license-shield]: https://img.shields.io/github/license/AIDotNet/fast-wiki?color=white\u0026labelColor=ffcb47\u0026style=flat-square\r\n\r\n[github-license-link]: https://github.com/AIDotNet/fast-wiki/blob/main/LICENSE\r\n\r\n# FastWiki\r\n\r\n-----\r\n文档语言: [English](README.md) | [简体中文](README-zh-cn.md)\r\n\r\n## 介绍\r\n\r\n本项目是一个高性能、基于最新技术栈的知识库系统，专为大规模信息检索和智能搜索设计。利用微软Semantic\r\nKernel进行深度学习和自然语言处理，结合.NET\r\n8与react框架，后台采用MasaFramework，实现了一个高效、易用、可扩展的智能向量搜索平台。我们的目标是提供一个能够理解和处理复杂查询的智能搜索解决方案，帮助用户快速准确地获取所需信息。\r\n\r\n## 技术栈\r\n\r\n- 前端框架：react+LobeChat+ts\r\n- 后端框架：MasaFramework 基于 .NET 8\r\n- 基于JS V8引擎实现动态Function\r\n- 向量搜索引擎：使用 PostgreSQL 的向量插件，优化搜索性能也提供了DISK\r\n- 深度学习与NLP：微软Semantic Kernel，提升搜索的语义理解能力\r\n- 许可证：Apache-2.0，鼓励社区贡献和使用\r\n\r\n## 特点\r\n\r\n- 智能搜索：借助Semantic Kernel的深度学习和自然语言处理技术，能够理解复杂查询，提供精准的搜索结果。\r\n- 高性能：通过pgsql的向量插件优化向量搜索性能，确保即使在大数据量下也能快速响应。\r\n- 现代化前端：使用react+lobeUI前端框架，提供响应式设计和用户友好的界面。\r\n- 强大的后端：基于最新的.NET 8和MasaFramework，确保了代码的高效性和可维护性。\r\n- 开源和社区驱动：采用Apache-2.0许可证，鼓励开发者和企业使用和贡献。\r\n- 强大的动态JS Function，并且提供Monaco更方便的智能代码提示。\r\n- 强大的QA问答拆分模式，让知识库回复更智能。\r\n- 快速接入飞书机器人\r\n- 快速接入微信公众号\r\n- 快速接入企业项目\r\n\r\n## 快速部署\r\n\r\n### 先决条件\r\n- Docker\r\n- AI模型接口/需要支持AI对话模型和Embedding模型\r\n\r\n### 部署\r\n\r\n使用docker命令运行：\r\n\r\n```bash\r\ndocker run -d \\\r\n  --name fast-wiki-service \\\r\n  --user root \\\r\n  --restart always \\\r\n  -p 8080:8080 \\\r\n  -v $(pwd)/wwwroot/uploads:/app/wwwroot/uploads \\\r\n  -v $(pwd)/data:/app/data \\\r\n  -e OPENAI_CHAT_ENDPOINT=https://api.openai.com/v1 \\\r\n  -e OPENAI_CHAT_EMBEDDING_ENDPOINT=https://api.openai.com/v1 \\\r\n  -e DEFAULT_TYPE=sqlite \\\r\n  -e DEFAULT_CONNECTION=Data\\ Source=/app/data/fast-wiki.db \\\r\n  -e WIKI_CONNECTION=/app/data/wiki.db \\\r\n  -e OPENAI_CHAT_TOKEN=您的TokenKey \\\r\n  -e ASPNETCORE_ENVIRONMENT=Development \\\r\n  registry.token-ai.cn/ai-dotnet/fast-wiki-service\r\n```\r\n\r\n## 快速开始\r\n\r\n### 先决条件\r\n\r\n确保你已经安装了.NET 8 SDK和PostgreSQL数据库和PostgreSQL的vector插件，并且配置了相应的环境。\r\n\r\n## 前端\r\n\r\n### 安装\r\n\r\n1. 克隆仓库：\r\n\r\n```\r\ngit clone  --recursive https://gitee.com/aidotnet/fast-wiki\r\n```\r\n\r\n2. 安装好node.js，最新版本(https://nodejs.p2hp.com/)。\r\n\r\n3. 将web目录的package-lock.json文件和node_modules目录删除,\r\n\r\n4. 在web目录运行\r\n\r\n```\r\nnpm i\r\nnpm run build\r\n```\r\n\r\n5. 将web目录下的dist下的内容copy到\"\\fast-wiki\\src\\Service\\FastWiki.Service\\wwwroot\" 目录下(如果wwwroot没有就创建个)\r\n\r\n## 后端\r\n\r\n1. 安装依赖项：\r\n\r\n在项目根目录下执行：\r\n\r\n```\r\ncd src/Service/FastWiki.Service\r\ndotnet restore\r\n```\r\n\r\n2. 数据库配置：\r\n\r\n确保你的PostgreSQL数据库运行正常，并且创建了必要的数据库。根据你的配置修改`appsettings.json`中的数据库连接字符串。\r\n\r\n### 运行\r\n\r\n在项目根目录下执行：\r\n\r\n```\r\ndotnet run\r\n```\r\n\r\n这将启动后端服务。访问http://localhost:5124/就可以看到前端的页面了\r\n\r\n默认账号密码：admin Aa123456\r\n\r\n## 环境变量参数\r\n\r\nFastWikiService环境变量参数：\r\n\r\n- QUANTIZE_MAX_TASK：量化任务的最大并发数，默认为3\r\n- OPENAI_CHAT_ENDPOINT：OpenAI API的地址\r\n- OPENAI_CHAT_EMBEDDING_ENDPOINT： Embedding API的地址\r\n- OPENAI_CHAT_TOKEN： OpenAI API的Token\r\n- OPENAI_EMBEDDING_TOKEN: Embedding的Token, 默认为空，为空则使用对话的Token\r\n- DEFAULT_TYPE：业务数据库类型 默认sqlite|[pgsql|postgres]\r\n- DEFAULT_CONNECTION：业务数据库连接字符串\r\n- WIKI_CONNECTION: wiki数据库连接字符串(如果是disk则是目录)\r\n\r\n## 技术交流\r\n\r\n![群聊二维码](img/wechat.png)\r\n\r\n## 贡献指南\r\n\r\n我们欢迎所有形式的贡献，无论是功能请求、bug报告、代码提交、文档或是其他类型的支持。请参阅`CONTRIBUTING.md`了解如何开始。\r\n\r\n## 许可证\r\n\r\n本项目采用Apache-2.0许可证。详情请见[LICENSE](LICENSE)文件。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F239573049%2Ffast-wiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F239573049%2Ffast-wiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F239573049%2Ffast-wiki/lists"}