@workglow/ai 0.2.14 → 0.2.16
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/README.md +11 -15
- package/dist/browser.js +522 -1016
- package/dist/browser.js.map +14 -17
- package/dist/bun.js +522 -1016
- package/dist/bun.js.map +14 -17
- package/dist/node.js +522 -1016
- package/dist/node.js.map +14 -17
- package/dist/task/AiChatTask.d.ts +150 -231
- package/dist/task/AiChatTask.d.ts.map +1 -1
- package/dist/task/ChatMessage.d.ts +110 -155
- package/dist/task/ChatMessage.d.ts.map +1 -1
- package/dist/task/ChunkRetrievalTask.d.ts +32 -49
- package/dist/task/ChunkRetrievalTask.d.ts.map +1 -1
- package/dist/task/ChunkVectorUpsertTask.d.ts +107 -24
- package/dist/task/ChunkVectorUpsertTask.d.ts.map +1 -1
- package/dist/task/HierarchyJoinTask.d.ts +44 -42
- package/dist/task/HierarchyJoinTask.d.ts.map +1 -1
- package/dist/task/QueryExpanderTask.d.ts +5 -31
- package/dist/task/QueryExpanderTask.d.ts.map +1 -1
- package/dist/task/RerankerTask.d.ts +7 -89
- package/dist/task/RerankerTask.d.ts.map +1 -1
- package/dist/task/StructuredGenerationTask.d.ts +1 -1
- package/dist/task/StructuredGenerationTask.d.ts.map +1 -1
- package/dist/task/TextChunkerTask.d.ts +139 -37
- package/dist/task/TextChunkerTask.d.ts.map +1 -1
- package/dist/task/ToolCallingTask.d.ts +50 -77
- package/dist/task/ToolCallingTask.d.ts.map +1 -1
- package/dist/task/base/AiVisionTask.d.ts.map +1 -1
- package/dist/task/index.d.ts +1 -7
- package/dist/task/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/dist/task/ChunkToVectorTask.d.ts +0 -210
- package/dist/task/ChunkToVectorTask.d.ts.map +0 -1
- package/dist/task/ChunkVectorHybridSearchTask.d.ts +0 -167
- package/dist/task/ChunkVectorHybridSearchTask.d.ts.map +0 -1
- package/dist/task/ChunkVectorSearchTask.d.ts +0 -139
- package/dist/task/ChunkVectorSearchTask.d.ts.map +0 -1
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteContext, Task } from "@workglow/task-graph";
|
|
7
|
-
import type { TaskConfig } from "@workglow/task-graph";
|
|
8
|
-
import { DataPortSchema, FromSchema, TypedArraySchemaOptions } from "@workglow/util/schema";
|
|
9
|
-
declare const inputSchema: {
|
|
10
|
-
readonly type: "object";
|
|
11
|
-
readonly properties: {
|
|
12
|
-
readonly knowledgeBase: {
|
|
13
|
-
readonly title: "Knowledge Base";
|
|
14
|
-
readonly description: "Knowledge base ID or instance";
|
|
15
|
-
} & {
|
|
16
|
-
title: string;
|
|
17
|
-
description: string;
|
|
18
|
-
} & {
|
|
19
|
-
readonly format: "knowledge-base";
|
|
20
|
-
readonly anyOf: readonly [{
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
readonly title: "Knowledge Base ID";
|
|
23
|
-
}, {
|
|
24
|
-
readonly title: "Knowledge Base Instance";
|
|
25
|
-
readonly additionalProperties: true;
|
|
26
|
-
}];
|
|
27
|
-
};
|
|
28
|
-
readonly queryVector: {
|
|
29
|
-
readonly type: "array";
|
|
30
|
-
readonly format: "TypedArray";
|
|
31
|
-
readonly title: "Typed Array";
|
|
32
|
-
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
33
|
-
};
|
|
34
|
-
readonly queryText: {
|
|
35
|
-
readonly type: "string";
|
|
36
|
-
readonly title: "Query Text";
|
|
37
|
-
readonly description: "The query text for full-text search";
|
|
38
|
-
};
|
|
39
|
-
readonly topK: {
|
|
40
|
-
readonly type: "number";
|
|
41
|
-
readonly title: "Top K";
|
|
42
|
-
readonly description: "Number of top results to return";
|
|
43
|
-
readonly minimum: 1;
|
|
44
|
-
readonly default: 10;
|
|
45
|
-
};
|
|
46
|
-
readonly filter: {
|
|
47
|
-
readonly type: "object";
|
|
48
|
-
readonly title: "Metadata Filter";
|
|
49
|
-
readonly description: "Filter results by metadata fields";
|
|
50
|
-
};
|
|
51
|
-
readonly scoreThreshold: {
|
|
52
|
-
readonly type: "number";
|
|
53
|
-
readonly title: "Score Threshold";
|
|
54
|
-
readonly description: "Minimum combined score threshold (0-1)";
|
|
55
|
-
readonly minimum: 0;
|
|
56
|
-
readonly maximum: 1;
|
|
57
|
-
readonly default: 0;
|
|
58
|
-
};
|
|
59
|
-
readonly vectorWeight: {
|
|
60
|
-
readonly type: "number";
|
|
61
|
-
readonly title: "Vector Weight";
|
|
62
|
-
readonly description: "Weight for vector similarity (0-1), remainder goes to text relevance";
|
|
63
|
-
readonly minimum: 0;
|
|
64
|
-
readonly maximum: 1;
|
|
65
|
-
readonly default: 0.7;
|
|
66
|
-
};
|
|
67
|
-
readonly returnVectors: {
|
|
68
|
-
readonly type: "boolean";
|
|
69
|
-
readonly title: "Return Vectors";
|
|
70
|
-
readonly description: "Whether to return vector embeddings in results";
|
|
71
|
-
readonly default: false;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
readonly required: readonly ["knowledgeBase", "queryVector", "queryText"];
|
|
75
|
-
readonly additionalProperties: false;
|
|
76
|
-
};
|
|
77
|
-
declare const outputSchema: {
|
|
78
|
-
readonly type: "object";
|
|
79
|
-
readonly properties: {
|
|
80
|
-
readonly chunks: {
|
|
81
|
-
readonly type: "array";
|
|
82
|
-
readonly items: {
|
|
83
|
-
readonly type: "string";
|
|
84
|
-
};
|
|
85
|
-
readonly title: "Text Chunks";
|
|
86
|
-
readonly description: "Retrieved text chunks";
|
|
87
|
-
};
|
|
88
|
-
readonly chunk_ids: {
|
|
89
|
-
readonly type: "array";
|
|
90
|
-
readonly items: {
|
|
91
|
-
readonly type: "string";
|
|
92
|
-
};
|
|
93
|
-
readonly title: "Chunk IDs";
|
|
94
|
-
readonly description: "IDs of retrieved chunks";
|
|
95
|
-
};
|
|
96
|
-
readonly metadata: {
|
|
97
|
-
readonly type: "array";
|
|
98
|
-
readonly items: {
|
|
99
|
-
readonly type: "object";
|
|
100
|
-
readonly title: "Metadata";
|
|
101
|
-
readonly description: "Metadata of retrieved chunk";
|
|
102
|
-
};
|
|
103
|
-
readonly title: "Metadata";
|
|
104
|
-
readonly description: "Metadata of retrieved chunks";
|
|
105
|
-
};
|
|
106
|
-
readonly scores: {
|
|
107
|
-
readonly type: "array";
|
|
108
|
-
readonly items: {
|
|
109
|
-
readonly type: "number";
|
|
110
|
-
};
|
|
111
|
-
readonly title: "Scores";
|
|
112
|
-
readonly description: "Combined relevance scores for each result";
|
|
113
|
-
};
|
|
114
|
-
readonly vectors: {
|
|
115
|
-
readonly type: "array";
|
|
116
|
-
readonly items: {
|
|
117
|
-
readonly type: "array";
|
|
118
|
-
readonly format: "TypedArray";
|
|
119
|
-
readonly title: "Typed Array";
|
|
120
|
-
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
121
|
-
};
|
|
122
|
-
readonly title: "Vectors";
|
|
123
|
-
readonly description: "Vector embeddings (if returnVectors is true)";
|
|
124
|
-
};
|
|
125
|
-
readonly count: {
|
|
126
|
-
readonly type: "number";
|
|
127
|
-
readonly title: "Count";
|
|
128
|
-
readonly description: "Number of results returned";
|
|
129
|
-
};
|
|
130
|
-
readonly query: {
|
|
131
|
-
readonly type: "string";
|
|
132
|
-
readonly title: "Query";
|
|
133
|
-
readonly description: "The text query used for search (pass-through)";
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
readonly required: readonly ["chunks", "chunk_ids", "metadata", "scores", "count", "query"];
|
|
137
|
-
readonly additionalProperties: false;
|
|
138
|
-
};
|
|
139
|
-
export type HybridSearchTaskInput = FromSchema<typeof inputSchema, TypedArraySchemaOptions>;
|
|
140
|
-
export type HybridSearchTaskOutput = FromSchema<typeof outputSchema, TypedArraySchemaOptions>;
|
|
141
|
-
export type ChunkVectorHybridSearchTaskConfig = TaskConfig<HybridSearchTaskInput>;
|
|
142
|
-
/**
|
|
143
|
-
* Task for hybrid search combining vector similarity and full-text search.
|
|
144
|
-
* Requires a knowledge base that supports hybridSearch (e.g., Postgres with pgvector).
|
|
145
|
-
*
|
|
146
|
-
* Hybrid search improves retrieval by combining:
|
|
147
|
-
* - Semantic similarity (vector search) - understands meaning
|
|
148
|
-
* - Keyword matching (full-text search) - finds exact terms
|
|
149
|
-
*/
|
|
150
|
-
export declare class ChunkVectorHybridSearchTask extends Task<HybridSearchTaskInput, HybridSearchTaskOutput, ChunkVectorHybridSearchTaskConfig> {
|
|
151
|
-
static type: string;
|
|
152
|
-
static category: string;
|
|
153
|
-
static title: string;
|
|
154
|
-
static description: string;
|
|
155
|
-
static cacheable: boolean;
|
|
156
|
-
static inputSchema(): DataPortSchema;
|
|
157
|
-
static outputSchema(): DataPortSchema;
|
|
158
|
-
execute(input: HybridSearchTaskInput, context: IExecuteContext): Promise<HybridSearchTaskOutput>;
|
|
159
|
-
}
|
|
160
|
-
export declare const hybridSearch: (input: HybridSearchTaskInput, config?: ChunkVectorHybridSearchTaskConfig) => Promise<HybridSearchTaskOutput>;
|
|
161
|
-
declare module "@workglow/task-graph" {
|
|
162
|
-
interface Workflow {
|
|
163
|
-
hybridSearch: CreateWorkflow<HybridSearchTaskInput, HybridSearchTaskOutput, ChunkVectorHybridSearchTaskConfig>;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
export {};
|
|
167
|
-
//# sourceMappingURL=ChunkVectorHybridSearchTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChunkVectorHybridSearchTask.d.ts","sourceRoot":"","sources":["../../src/task/ChunkVectorHybridSearchTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAY,MAAM,sBAAsB,CAAC;AACvF,OAAO,KAAK,EAAE,UAAU,EA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AAO,CACpB,KAAK,EAAE,qBAAqB,EAC5B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,sBAAsB,CAAC,CA+CjC;CACF;AAED,eAAO,MAAM,YAAY,UAChB,qBAAqB,WACnB,iCAAiC,KACzC,OAAO,CAAC,sBAAsB,CAEhC,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAC1B,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,CAClC,CAAC;KACH;CACF"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteContext, Task } from "@workglow/task-graph";
|
|
7
|
-
import type { TaskConfig } from "@workglow/task-graph";
|
|
8
|
-
import { DataPortSchema, FromSchema, TypedArraySchemaOptions } from "@workglow/util/schema";
|
|
9
|
-
declare const inputSchema: {
|
|
10
|
-
readonly type: "object";
|
|
11
|
-
readonly properties: {
|
|
12
|
-
readonly knowledgeBase: {
|
|
13
|
-
readonly title: "Knowledge Base";
|
|
14
|
-
readonly description: "Knowledge base ID or instance";
|
|
15
|
-
} & {
|
|
16
|
-
title: string;
|
|
17
|
-
description: string;
|
|
18
|
-
} & {
|
|
19
|
-
readonly format: "knowledge-base";
|
|
20
|
-
readonly anyOf: readonly [{
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
readonly title: "Knowledge Base ID";
|
|
23
|
-
}, {
|
|
24
|
-
readonly title: "Knowledge Base Instance";
|
|
25
|
-
readonly additionalProperties: true;
|
|
26
|
-
}];
|
|
27
|
-
};
|
|
28
|
-
readonly query: {
|
|
29
|
-
readonly type: "array";
|
|
30
|
-
readonly format: "TypedArray";
|
|
31
|
-
readonly title: "Typed Array";
|
|
32
|
-
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
33
|
-
};
|
|
34
|
-
readonly topK: {
|
|
35
|
-
readonly type: "number";
|
|
36
|
-
readonly title: "Top K";
|
|
37
|
-
readonly description: "Number of top results to return";
|
|
38
|
-
readonly minimum: 1;
|
|
39
|
-
readonly default: 10;
|
|
40
|
-
};
|
|
41
|
-
readonly filter: {
|
|
42
|
-
readonly type: "object";
|
|
43
|
-
readonly title: "Metadata Filter";
|
|
44
|
-
readonly description: "Filter results by metadata fields";
|
|
45
|
-
};
|
|
46
|
-
readonly scoreThreshold: {
|
|
47
|
-
readonly type: "number";
|
|
48
|
-
readonly title: "Score Threshold";
|
|
49
|
-
readonly description: "Minimum similarity score threshold (0-1)";
|
|
50
|
-
readonly minimum: 0;
|
|
51
|
-
readonly maximum: 1;
|
|
52
|
-
readonly default: 0;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
readonly required: readonly ["knowledgeBase", "query"];
|
|
56
|
-
readonly additionalProperties: false;
|
|
57
|
-
};
|
|
58
|
-
declare const outputSchema: {
|
|
59
|
-
readonly type: "object";
|
|
60
|
-
readonly properties: {
|
|
61
|
-
readonly ids: {
|
|
62
|
-
readonly type: "array";
|
|
63
|
-
readonly items: {
|
|
64
|
-
readonly type: "string";
|
|
65
|
-
};
|
|
66
|
-
readonly title: "IDs";
|
|
67
|
-
readonly description: "IDs of matching vectors";
|
|
68
|
-
};
|
|
69
|
-
readonly vectors: {
|
|
70
|
-
readonly type: "array";
|
|
71
|
-
readonly items: {
|
|
72
|
-
readonly type: "array";
|
|
73
|
-
readonly format: "TypedArray";
|
|
74
|
-
readonly title: "Typed Array";
|
|
75
|
-
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
76
|
-
};
|
|
77
|
-
readonly title: "Vectors";
|
|
78
|
-
readonly description: "Matching vector embeddings";
|
|
79
|
-
};
|
|
80
|
-
readonly metadata: {
|
|
81
|
-
readonly type: "array";
|
|
82
|
-
readonly items: {
|
|
83
|
-
readonly type: "object";
|
|
84
|
-
readonly title: "Metadata";
|
|
85
|
-
readonly description: "Metadata of matching vector";
|
|
86
|
-
};
|
|
87
|
-
readonly title: "Metadata";
|
|
88
|
-
readonly description: "Metadata of matching vectors";
|
|
89
|
-
};
|
|
90
|
-
readonly scores: {
|
|
91
|
-
readonly type: "array";
|
|
92
|
-
readonly items: {
|
|
93
|
-
readonly type: "number";
|
|
94
|
-
};
|
|
95
|
-
readonly title: "Scores";
|
|
96
|
-
readonly description: "Similarity scores for each result";
|
|
97
|
-
};
|
|
98
|
-
readonly count: {
|
|
99
|
-
readonly type: "number";
|
|
100
|
-
readonly title: "Count";
|
|
101
|
-
readonly description: "Number of results returned";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
readonly required: readonly ["ids", "vectors", "metadata", "scores", "count"];
|
|
105
|
-
readonly additionalProperties: false;
|
|
106
|
-
};
|
|
107
|
-
export type VectorStoreSearchTaskInput = FromSchema<typeof inputSchema, TypedArraySchemaOptions>;
|
|
108
|
-
export type VectorStoreSearchTaskOutput = FromSchema<typeof outputSchema, TypedArraySchemaOptions>;
|
|
109
|
-
export type ChunkVectorSearchTaskConfig = TaskConfig<VectorStoreSearchTaskInput>;
|
|
110
|
-
/**
|
|
111
|
-
* Task for searching similar vectors in a knowledge base.
|
|
112
|
-
* Returns top-K most similar vectors with their metadata and scores.
|
|
113
|
-
*/
|
|
114
|
-
export declare class ChunkVectorSearchTask extends Task<VectorStoreSearchTaskInput, VectorStoreSearchTaskOutput, ChunkVectorSearchTaskConfig> {
|
|
115
|
-
static type: string;
|
|
116
|
-
static category: string;
|
|
117
|
-
static title: string;
|
|
118
|
-
static description: string;
|
|
119
|
-
static cacheable: boolean;
|
|
120
|
-
static inputSchema(): DataPortSchema;
|
|
121
|
-
static outputSchema(): DataPortSchema;
|
|
122
|
-
execute(input: VectorStoreSearchTaskInput, _context: IExecuteContext): Promise<VectorStoreSearchTaskOutput>;
|
|
123
|
-
}
|
|
124
|
-
export declare const vectorStoreSearch: (input: VectorStoreSearchTaskInput, config?: ChunkVectorSearchTaskConfig) => Promise<{
|
|
125
|
-
count: number;
|
|
126
|
-
ids: string[];
|
|
127
|
-
metadata: {
|
|
128
|
-
[x: string]: unknown;
|
|
129
|
-
}[];
|
|
130
|
-
scores: number[];
|
|
131
|
-
vectors: import("@workglow/util/schema").TypedArray[];
|
|
132
|
-
}>;
|
|
133
|
-
declare module "@workglow/task-graph" {
|
|
134
|
-
interface Workflow {
|
|
135
|
-
vectorStoreSearch: CreateWorkflow<VectorStoreSearchTaskInput, VectorStoreSearchTaskOutput, ChunkVectorSearchTaskConfig>;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
export {};
|
|
139
|
-
//# sourceMappingURL=ChunkVectorSearchTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChunkVectorSearchTask.d.ts","sourceRoot":"","sources":["../../src/task/ChunkVectorSearchTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAY,MAAM,sBAAsB,CAAC;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACL,cAAc,EACd,UAAU,EAEV,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,aAAa;;;;;;;;;;;;;;;;iBAIb,KAAK;;;;;;iBAIL,IAAI;qBACF,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,OAAO;qBACd,WAAW,EAAE,iCAAiC;qBAC9C,OAAO,EAAE,CAAC;qBACV,OAAO,EAAE,EAAE;;iBAEb,MAAM;qBACJ,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,iBAAiB;qBACxB,WAAW,EAAE,mCAAmC;;iBAElD,cAAc;qBACZ,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,iBAAiB;qB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