feat: 添加知识库和用户模块,更新核心功能并修复导入路径

This commit is contained in:
2025-12-15 18:11:30 +08:00
parent 6a579b3ae0
commit a050a8ec17
8 changed files with 95 additions and 10 deletions

10
test/knowledge.ts Normal file
View File

@@ -0,0 +1,10 @@
import { KnowledgeBase } from "../src/knowledge/index.ts";
import { token, showMore, cookie } from "./common.ts";
const repo = new KnowledgeBase({ group: "kevisual/demo", token: token, cookie: cookie });
const repoName = "test-cnb";
const queryRes = await repo.getEmbeddingModels(repoName);
console.log("queryRes", showMore(queryRes));