@pdfvector/instance-contract 0.0.9 → 0.0.11
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/.tsc/lib/router/admin/health-check.d.ts +4 -0
- package/.tsc/lib/router/admin/health-check.js +14 -0
- package/.tsc/lib/router/admin/index.d.ts +1 -0
- package/.tsc/lib/router/admin/index.js +1 -0
- package/.tsc/lib/router/document/ask.js +3 -3
- package/.tsc/lib/router/document/extract.js +1 -1
- package/.tsc/lib/router/document/parse.js +4 -4
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const healthCheck: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
3
|
+
message: z.ZodString;
|
|
4
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const adminOutputSchema = z.object({ message: z.string() });
|
|
4
|
+
export const healthCheck = oc
|
|
5
|
+
.route({
|
|
6
|
+
summary: "Health check",
|
|
7
|
+
description: "Check that the instance server and database are operational",
|
|
8
|
+
tags: ["Admin"],
|
|
9
|
+
spec: (op) => {
|
|
10
|
+
op.security = [{ bearerAuth: [] }];
|
|
11
|
+
return op;
|
|
12
|
+
},
|
|
13
|
+
})
|
|
14
|
+
.output(adminOutputSchema);
|
|
@@ -60,7 +60,7 @@ const requestExamples = {
|
|
|
60
60
|
"Ask from URL": {
|
|
61
61
|
summary: "Ask from URL",
|
|
62
62
|
value: {
|
|
63
|
-
url: "https://drive.google.com/file/d/
|
|
63
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
64
64
|
question: "What are the main findings of this study?",
|
|
65
65
|
},
|
|
66
66
|
},
|
|
@@ -81,7 +81,7 @@ const requestExamples = {
|
|
|
81
81
|
"Ask with lightweight models (nano)": {
|
|
82
82
|
summary: "Ask with lightweight models (nano)",
|
|
83
83
|
value: {
|
|
84
|
-
url: "https://drive.google.com/file/d/
|
|
84
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
85
85
|
question: "What is the title of this paper?",
|
|
86
86
|
model: "nano",
|
|
87
87
|
},
|
|
@@ -89,7 +89,7 @@ const requestExamples = {
|
|
|
89
89
|
"Ask with powerful models (max)": {
|
|
90
90
|
summary: "Ask with powerful models (max)",
|
|
91
91
|
value: {
|
|
92
|
-
url: "https://drive.google.com/file/d/
|
|
92
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
93
93
|
question: "Provide a detailed analysis of the methodology used in this study.",
|
|
94
94
|
model: "max",
|
|
95
95
|
},
|
|
@@ -97,7 +97,7 @@ const requestExamples = {
|
|
|
97
97
|
"Extract from URL": {
|
|
98
98
|
summary: "Extract from URL",
|
|
99
99
|
value: {
|
|
100
|
-
url: "https://drive.google.com/file/d/
|
|
100
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
101
101
|
prompt: "Extract the title, authors, and publication year from this research paper",
|
|
102
102
|
schema: {
|
|
103
103
|
type: "object",
|
|
@@ -61,7 +61,7 @@ const requestExamples = {
|
|
|
61
61
|
"Parse from URL": {
|
|
62
62
|
summary: "Parse from URL",
|
|
63
63
|
value: {
|
|
64
|
-
url: "https://drive.google.com/file/d/
|
|
64
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
"Parse from base64": {
|
|
@@ -79,21 +79,21 @@ const requestExamples = {
|
|
|
79
79
|
"Parse with simple PDF (nano)": {
|
|
80
80
|
summary: "Parse with simple PDF (nano)",
|
|
81
81
|
value: {
|
|
82
|
-
url: "https://drive.google.com/file/d/
|
|
82
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
83
83
|
model: "nano",
|
|
84
84
|
},
|
|
85
85
|
},
|
|
86
86
|
"Parse with small complex documents (pro)": {
|
|
87
87
|
summary: "Parse with small complex documents (pro)",
|
|
88
88
|
value: {
|
|
89
|
-
url: "https://drive.google.com/file/d/
|
|
89
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
90
90
|
model: "pro",
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
"Parse with large complex documents (max)": {
|
|
94
94
|
summary: "Parse with large complex documents (max)",
|
|
95
95
|
value: {
|
|
96
|
-
url: "https://drive.google.com/file/d/
|
|
96
|
+
url: "https://drive.google.com/file/d/13T04Yk20OwBNIDyvJJ3XlUg9WfOsmbjm/view?usp=share_link",
|
|
97
97
|
model: "max",
|
|
98
98
|
},
|
|
99
99
|
},
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @pdfvector/instance-contract
|
|
2
2
|
|
|
3
|
+
## 0.0.11
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#71](https://github.com/phuctm97/pdfvector/pull/71) [`163ef37`](https://github.com/phuctm97/pdfvector/commit/163ef37314670214fe054d7bd364c62c073c84f4) Thanks [@kittranofficial](https://github.com/kittranofficial)! - Add Drizzle SQLite integration to instance-server
|
|
9
|
+
|
|
10
|
+
## 0.0.10
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
- [#64](https://github.com/phuctm97/pdfvector/pull/64) [`429c603`](https://github.com/phuctm97/pdfvector/commit/429c6030194c36ac3be39ea2e24074bbcfa30d46) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Update example url
|
|
16
|
+
|
|
3
17
|
## 0.0.9
|
|
4
18
|
### Patch Changes
|
|
5
19
|
|