plugin-docpixie 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.ts +1 -0
- package/client.js +1 -0
- package/dist/client/index.js +10 -0
- package/dist/externalVersion.js +17 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +21 -0
- package/dist/locale/vi-VN.json +21 -0
- package/dist/server/collections/docpixie-config.js +61 -0
- package/dist/server/collections/docpixie-documents.js +71 -0
- package/dist/server/collections/docpixie-pages.js +59 -0
- package/dist/server/exceptions.js +127 -0
- package/dist/server/index.js +49 -0
- package/dist/server/plugin.js +178 -0
- package/dist/server/prompts.js +388 -0
- package/dist/server/providers/index.js +36 -0
- package/dist/server/providers/llm-adapter.js +253 -0
- package/dist/server/services/DocPixieService.js +1300 -0
- package/dist/server/types.js +24 -0
- package/package.json +40 -0
- package/server.d.ts +1 -0
- package/server.js +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var types_exports = {};
|
|
24
|
+
module.exports = __toCommonJS(types_exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "plugin-docpixie",
|
|
3
|
+
"displayName": "DocPixie Document AI",
|
|
4
|
+
"displayName.vi-VN": "DocPixie AI Phân Tích Tài Liệu",
|
|
5
|
+
"displayName.zh-CN": "DocPixie 文档AI",
|
|
6
|
+
"description": "Adaptive RAG agent for document analysis — OCR + LLM Vision + structured extraction.",
|
|
7
|
+
"description.vi-VN": "Agent RAG thích ứng cho phân tích tài liệu — OCR + LLM Vision + trích xuất cấu trúc.",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"main": "./dist/server/index.js",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"client.js",
|
|
14
|
+
"client.d.ts",
|
|
15
|
+
"server.js",
|
|
16
|
+
"server.d.ts",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"nocobase": {
|
|
20
|
+
"supportedVersions": [
|
|
21
|
+
"2.x"
|
|
22
|
+
],
|
|
23
|
+
"editionLevel": 0
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@nocobase/client": "2.x",
|
|
27
|
+
"@nocobase/server": "2.x",
|
|
28
|
+
"@nocobase/database": "2.x",
|
|
29
|
+
"@nocobase/plugin-ai": "2.x",
|
|
30
|
+
"@nocobase/test": "2.x",
|
|
31
|
+
"@langchain/core": "^1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"AI",
|
|
35
|
+
"document-ai",
|
|
36
|
+
"adaptive-rag",
|
|
37
|
+
"docpixie",
|
|
38
|
+
"ocr"
|
|
39
|
+
]
|
|
40
|
+
}
|
package/server.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/server';
|
package/server.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/server');
|