Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
2 years ago | |
---|---|---|
.github | 2 years ago | |
assets | 2 years ago | |
conf | 2 years ago | |
controllers | 2 years ago | |
i18n | 2 years ago | |
model | 2 years ago | |
object | 2 years ago | |
proxy | 2 years ago | |
routers | 2 years ago | |
storage | 2 years ago | |
txt | 2 years ago | |
util | 2 years ago | |
video | 2 years ago | |
web | 2 years ago | |
xlsx | 2 years ago | |
.gitignore | 2 years ago | |
.releaserc.json | 2 years ago | |
Dockerfile | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
docker-entrypoint.sh | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
main.go | 2 years ago |
casibase contains 4 parts:
Name | Description | Language |
---|---|---|
Frontend | User interface for the casibase application | JavaScript + React |
Backend | Server-side logic and API for casibase | Golang + Beego + Python + Flask + MySQL |
AI Model | Artificial intelligence model | Python + OpenAI |
Knowledge Base | Storage for casibase application domain knowledge | pgvector |
casibase uses Casdoor to manage members. So you need to create an organization and an application for casibase in a Casdoor instance.
git clone https://github.com/casdoor/casdoor.git
refer to: https://casdoor.org/docs/basic/server-installation
Follow these steps to setup Casdoor for casibase:
Configure member information (remember its Name as well as Password)
Configuring Application Information (Remember Name, ClientID and ClientSecret. Change RedirectURLs to http://localhost:14000/callback)
git clone https://github.com/casbin/casibase.git
casibase will store its users, nodes and topics informations in a MySQL database named: casibase
, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/casibase/blob/master/conf/app.conf
dataSourceName = root:123@tcp(localhost:3306)/
Casnode uses XORM to connect to DB, so all DBs supported by XORM can also be used.
casibase\conf\app.conf
)casdoorEndpoint = <Your_Casdoor_endpoint>
clientId = <Your_clientId_in_Casdoor_configuration>
clientSecret = <Your_clientSecret_in_Casdoor_configuration>
casdoorOrganization = "casibase"
casdoorApplication = "app-casibase"
casibase\web\src\Conf.js
)export const AuthConfig = {
......
clientId: <Your_clientId_in_Casdoor_configuration>,
......
};
casibase
)go run main.go
casibase\web
)yarn install
yarn start
Access the login view via the following link:
http://localhost:13001
The casibase demo is shown above, and in the future users can upload various knowledge files, wordsets, and factorsets to achieve a customized domain knowledge base.
基于Casbin的开源AI领域知识库平台
YAML JavaScript Go Text CSS other