AIDotNet / fast-wiki

基于.NET8+React+LobeUI实现的企业级智能客服知识库
https://wiki.ai-dotnet.com/
Apache License 2.0
414 stars 63 forks source link
ai dotnet semantic-kernel

FastWiki

FastWiki creates an enterprise-level AI customer service management system! [![][github-contributors-shield]][github-contributors-link] [![][github-forks-shield]][github-forks-link] [![][github-stars-shield]][github-stars-link] [![][github-issues-shield]][github-issues-link] [![][github-license-shield]][github-license-link] [Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link] ![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)

FastWiki


Documentation Language: English | 简体中文

Introduction

This project is a high-performance knowledge base system designed for large-scale information retrieval and intelligent search, built on the latest tech stack. Utilizing Microsoft's Semantic Kernel for deep learning and natural language processing, combined with .NET 8 and the React framework, and powered by MasaFramework in the backend, it implements an efficient, user-friendly, and scalable intelligent vector search platform. Our goal is to provide an intelligent search solution capable of understanding and handling complex queries, helping users quickly and accurately obtain the information they need.

Tech Stack

Features

Quick Deployment

Prerequisites

Deployment

Run with the docker command:

docker run -d \
  --name fast-wiki-service \
  --user root \
  --restart always \
  -p 8080:8080 \
  -v $(pwd)/wwwroot/uploads:/app/wwwroot/uploads \
  -v $(pwd)/data:/app/data \
  -e OPENAI_CHAT_ENDPOINT=https://api.openai.com/v1 \
  -e OPENAI_CHAT_EMBEDDING_ENDPOINT=https://api.openai.com/v1 \
  -e DEFAULT_TYPE=sqlite \
  -e DEFAULT_CONNECTION=Data\ Source=/app/data/fast-wiki.db \
  -e WIKI_CONNECTION=/app/data/wiki.db \
  -e OPENAI_CHAT_TOKEN=YourTokenKey \
  -e ASPNETCORE_ENVIRONMENT=Development \
  registry.token-ai.cn/ai-dotnet/fast-wiki-service

Quick Start

Prerequisites

Ensure you have installed the .NET 8 SDK, PostgreSQL database, and the PostgreSQL vector plugin, and configured the respective environment.

Frontend

Installation

  1. Clone the repository:
git clone --recursive https://github.com/AIDotNet/fast-wiki.git
  1. Install Node.js, the latest version (https://nodejs.p2hp.com/).

  2. Delete the package-lock.json file and node_modules directory in the web directory.

  3. Run in the web directory:

npm i
npm run build
  1. Copy the contents from the dist directory in the web directory to the \fast-wiki\src\Service\FastWiki.Service\wwwroot directory (create wwwroot if it doesn't exist).

Backend

  1. Install dependencies:

Execute in the project root directory:

cd src/Service/FastWiki.Service
dotnet restore
  1. Database Configuration:

Ensure your PostgreSQL database is running correctly and that the necessary database has been created. Modify the database connection string in appsettings.json according to your configuration.

Running

Execute in the project root directory:

dotnet run

This will start the backend service. Access http://localhost:5124/ to view the frontend page.

Default username and password: admin Aa123456

Environment Variable Parameters

FastWikiService environment variable parameters:

Technical Communication

Group Chat QR Code

Contribution Guidelines

We welcome all forms of contributions, whether feature requests, bug reports, code submissions, documentation, or other types of support. Please refer to CONTRIBUTING.md for how to get started.

License

This project is licensed under the Apache-2.0 license. For details, please see the LICENSE file.