@workglow/ai 0.0.118 → 0.0.119
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/dist/task/ChunkRetrievalTask.d.ts +2 -2
- package/dist/task/ChunkVectorSearchTask.d.ts +2 -2
- package/dist/task/ChunkVectorUpsertTask.d.ts +1 -1
- package/dist/task/HierarchicalChunkerTask.d.ts +2 -2
- package/dist/task/HierarchyJoinTask.d.ts +1 -1
- package/dist/task/QueryExpanderTask.d.ts +1 -1
- package/dist/task/RerankerTask.d.ts +1 -1
- package/dist/task/index.d.ts +1 -1
- package/package.json +11 -11
|
@@ -265,10 +265,10 @@ export declare const chunkRetrieval: (input: ChunkRetrievalTaskInput, config?: J
|
|
|
265
265
|
metadata: {
|
|
266
266
|
[x: string]: unknown;
|
|
267
267
|
}[];
|
|
268
|
-
query: string | TypedArray | (string | TypedArray)[];
|
|
269
268
|
chunks: string[];
|
|
270
|
-
scores: number[];
|
|
271
269
|
count: number;
|
|
270
|
+
scores: number[];
|
|
271
|
+
query: string | TypedArray | (string | TypedArray)[];
|
|
272
272
|
chunk_ids: string[];
|
|
273
273
|
}>;
|
|
274
274
|
declare module "@workglow/task-graph" {
|
|
@@ -123,10 +123,10 @@ export declare const vectorStoreSearch: (input: VectorStoreSearchTaskInput, conf
|
|
|
123
123
|
metadata: {
|
|
124
124
|
[x: string]: unknown;
|
|
125
125
|
}[];
|
|
126
|
-
scores: number[];
|
|
127
|
-
count: number;
|
|
128
126
|
ids: string[];
|
|
129
127
|
vectors: import("@workglow/util").TypedArray[];
|
|
128
|
+
count: number;
|
|
129
|
+
scores: number[];
|
|
130
130
|
}>;
|
|
131
131
|
declare module "@workglow/task-graph" {
|
|
132
132
|
interface Workflow {
|
|
@@ -107,8 +107,8 @@ export declare class ChunkVectorUpsertTask extends Task<VectorStoreUpsertTaskInp
|
|
|
107
107
|
execute(input: VectorStoreUpsertTaskInput, context: IExecuteContext): Promise<VectorStoreUpsertTaskOutput>;
|
|
108
108
|
}
|
|
109
109
|
export declare const chunkVectorUpsert: (input: VectorStoreUpsertTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
110
|
-
count: number;
|
|
111
110
|
doc_id: string;
|
|
111
|
+
count: number;
|
|
112
112
|
chunk_ids: string[];
|
|
113
113
|
}>;
|
|
114
114
|
declare module "@workglow/task-graph" {
|
|
@@ -275,6 +275,7 @@ export declare class HierarchicalChunkerTask extends Task<HierarchicalChunkerTas
|
|
|
275
275
|
private collectAllText;
|
|
276
276
|
}
|
|
277
277
|
export declare const hierarchicalChunker: (input: HierarchicalChunkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
278
|
+
doc_id: string;
|
|
278
279
|
chunks: {
|
|
279
280
|
[x: string]: unknown;
|
|
280
281
|
doc_title?: string | undefined;
|
|
@@ -293,9 +294,8 @@ export declare const hierarchicalChunker: (input: HierarchicalChunkerTaskInput,
|
|
|
293
294
|
nodePath: string[];
|
|
294
295
|
depth: number;
|
|
295
296
|
}[];
|
|
296
|
-
count: number;
|
|
297
|
-
doc_id: string;
|
|
298
297
|
text: string[];
|
|
298
|
+
count: number;
|
|
299
299
|
}>;
|
|
300
300
|
declare module "@workglow/task-graph" {
|
|
301
301
|
interface Workflow {
|
|
@@ -332,8 +332,8 @@ export declare const hierarchyJoin: (input: HierarchyJoinTaskInput, config?: Job
|
|
|
332
332
|
depth: number;
|
|
333
333
|
}[];
|
|
334
334
|
chunks: string[];
|
|
335
|
-
scores: number[];
|
|
336
335
|
count: number;
|
|
336
|
+
scores: number[];
|
|
337
337
|
chunk_ids: string[];
|
|
338
338
|
}>;
|
|
339
339
|
declare module "@workglow/task-graph" {
|
|
@@ -115,9 +115,9 @@ export declare class QueryExpanderTask extends Task<QueryExpanderTaskInput, Quer
|
|
|
115
115
|
private preserveCapitalization;
|
|
116
116
|
}
|
|
117
117
|
export declare const queryExpander: (input: QueryExpanderTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
118
|
+
count: number;
|
|
118
119
|
query: string[];
|
|
119
120
|
method: string;
|
|
120
|
-
count: number;
|
|
121
121
|
originalQuery: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare module "@workglow/task-graph" {
|
|
@@ -204,9 +204,9 @@ export declare const reranker: (input: RerankerTaskInput, config?: JobQueueTaskC
|
|
|
204
204
|
[x: string]: unknown;
|
|
205
205
|
}[] | undefined;
|
|
206
206
|
chunks: string[];
|
|
207
|
+
count: number;
|
|
207
208
|
scores: number[];
|
|
208
209
|
originalIndices: number[];
|
|
209
|
-
count: number;
|
|
210
210
|
}>;
|
|
211
211
|
declare module "@workglow/task-graph" {
|
|
212
212
|
interface Workflow {
|
package/dist/task/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ import { TopicSegmenterTask } from "./TopicSegmenterTask";
|
|
|
46
46
|
import { UnloadModelTask } from "./UnloadModelTask";
|
|
47
47
|
import { VectorQuantizeTask } from "./VectorQuantizeTask";
|
|
48
48
|
import { VectorSimilarityTask } from "./VectorSimilarityTask";
|
|
49
|
-
export declare const registerAiTasks: () => (typeof
|
|
49
|
+
export declare const registerAiTasks: () => (typeof AgentTask | typeof BackgroundRemovalTask | typeof ChunkToVectorTask | typeof CountTokensTask | typeof ContextBuilderTask | typeof DocumentEnricherTask | typeof ChunkRetrievalTask | typeof ChunkVectorHybridSearchTask | typeof ChunkVectorSearchTask | typeof ChunkVectorUpsertTask | typeof FaceDetectorTask | typeof FaceLandmarkerTask | typeof GestureRecognizerTask | typeof HandLandmarkerTask | typeof HierarchicalChunkerTask | typeof HierarchyJoinTask | typeof ImageClassificationTask | typeof ImageEmbeddingTask | typeof ImageSegmentationTask | typeof ImageToTextTask | typeof ModelInfoTask | typeof ObjectDetectionTask | typeof PoseLandmarkerTask | typeof QueryExpanderTask | typeof RerankerTask | typeof StructuralParserTask | typeof StructuredGenerationTask | typeof TextChunkerTask | typeof TextClassificationTask | typeof TextEmbeddingTask | typeof TextFillMaskTask | typeof TextGenerationTask | typeof TextLanguageDetectionTask | typeof TextNamedEntityRecognitionTask | typeof TextQuestionAnswerTask | typeof TextRewriterTask | typeof TextSummaryTask | typeof TextTranslationTask | typeof ToolCallingTask | typeof TopicSegmenterTask | typeof UnloadModelTask | typeof VectorQuantizeTask | typeof VectorSimilarityTask)[];
|
|
50
50
|
export * from "./AgentTask";
|
|
51
51
|
export * from "./AgentTypes";
|
|
52
52
|
export * from "./AgentUtils";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/ai",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.119",
|
|
5
5
|
"description": "Core AI functionality for Workglow, including task execution, model management, and AI pipeline orchestration.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "concurrently -c 'auto' 'bun:watch-*'",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@workglow/knowledge-base": "0.0.
|
|
41
|
-
"@workglow/job-queue": "0.0.
|
|
42
|
-
"@workglow/storage": "0.0.
|
|
43
|
-
"@workglow/task-graph": "0.0.
|
|
44
|
-
"@workglow/util": "0.0.
|
|
40
|
+
"@workglow/knowledge-base": "0.0.119",
|
|
41
|
+
"@workglow/job-queue": "0.0.119",
|
|
42
|
+
"@workglow/storage": "0.0.119",
|
|
43
|
+
"@workglow/task-graph": "0.0.119",
|
|
44
|
+
"@workglow/util": "0.0.119"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"@workglow/knowledge-base": {
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@workglow/knowledge-base": "0.0.
|
|
65
|
-
"@workglow/job-queue": "0.0.
|
|
66
|
-
"@workglow/storage": "0.0.
|
|
67
|
-
"@workglow/task-graph": "0.0.
|
|
68
|
-
"@workglow/util": "0.0.
|
|
64
|
+
"@workglow/knowledge-base": "0.0.119",
|
|
65
|
+
"@workglow/job-queue": "0.0.119",
|
|
66
|
+
"@workglow/storage": "0.0.119",
|
|
67
|
+
"@workglow/task-graph": "0.0.119",
|
|
68
|
+
"@workglow/util": "0.0.119"
|
|
69
69
|
}
|
|
70
70
|
}
|