chatifai 1.0.23 → 1.0.24
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/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +2 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -322,6 +322,8 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
322
322
|
created_at?: number | null | undefined;
|
|
323
323
|
updated_at?: number | null | undefined;
|
|
324
324
|
chunk_id?: string | null | undefined;
|
|
325
|
+
chunk_id_before?: string | null | undefined;
|
|
326
|
+
chunk_id_after?: string | null | undefined;
|
|
325
327
|
embeddings_meta_data?: {
|
|
326
328
|
model: string;
|
|
327
329
|
dimensions: number;
|
|
@@ -350,6 +352,8 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
350
352
|
created_at?: number | null | undefined;
|
|
351
353
|
updated_at?: number | null | undefined;
|
|
352
354
|
chunk_id?: string | null | undefined;
|
|
355
|
+
chunk_id_before?: string | null | undefined;
|
|
356
|
+
chunk_id_after?: string | null | undefined;
|
|
353
357
|
embeddings_meta_data?: {
|
|
354
358
|
model: string;
|
|
355
359
|
dimensions: number;
|
|
@@ -378,6 +382,8 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
378
382
|
created_at?: number | null | undefined;
|
|
379
383
|
updated_at?: number | null | undefined;
|
|
380
384
|
chunk_id?: string | null | undefined;
|
|
385
|
+
chunk_id_before?: string | null | undefined;
|
|
386
|
+
chunk_id_after?: string | null | undefined;
|
|
381
387
|
embeddings_meta_data?: {
|
|
382
388
|
model: string;
|
|
383
389
|
dimensions: number;
|
package/dist/index.js
CHANGED
|
@@ -112,6 +112,8 @@ exports.ContextSchema = new mongoose_1.Schema({
|
|
|
112
112
|
});
|
|
113
113
|
exports.ChunkSchema = new mongoose_1.Schema({
|
|
114
114
|
chunk_id: { type: String },
|
|
115
|
+
chunk_id_before: { type: String },
|
|
116
|
+
chunk_id_after: { type: String },
|
|
115
117
|
organization_id: { type: String, required: true },
|
|
116
118
|
context_id: { type: String, required: true },
|
|
117
119
|
text: { type: String, required: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -202,6 +202,8 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
202
202
|
export declare const zodChunkSchema: z.ZodObject<{
|
|
203
203
|
_id: z.ZodOptional<z.ZodString>;
|
|
204
204
|
chunk_id: z.ZodOptional<z.ZodString>;
|
|
205
|
+
chunk_id_before: z.ZodOptional<z.ZodString>;
|
|
206
|
+
chunk_id_after: z.ZodOptional<z.ZodString>;
|
|
205
207
|
organization_id: z.ZodString;
|
|
206
208
|
context_id: z.ZodString;
|
|
207
209
|
text: z.ZodString;
|
|
@@ -269,6 +271,8 @@ export declare const zodChunkSchema: z.ZodObject<{
|
|
|
269
271
|
created_at?: number | undefined;
|
|
270
272
|
updated_at?: number | undefined;
|
|
271
273
|
chunk_id?: string | undefined;
|
|
274
|
+
chunk_id_before?: string | undefined;
|
|
275
|
+
chunk_id_after?: string | undefined;
|
|
272
276
|
}, {
|
|
273
277
|
type: string;
|
|
274
278
|
organization_id: string;
|
|
@@ -295,6 +299,8 @@ export declare const zodChunkSchema: z.ZodObject<{
|
|
|
295
299
|
created_at?: number | undefined;
|
|
296
300
|
updated_at?: number | undefined;
|
|
297
301
|
chunk_id?: string | undefined;
|
|
302
|
+
chunk_id_before?: string | undefined;
|
|
303
|
+
chunk_id_after?: string | undefined;
|
|
298
304
|
}>;
|
|
299
305
|
export declare const zodFullTextSchema: z.ZodObject<{
|
|
300
306
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -87,6 +87,8 @@ exports.zodAgentSchema = zod_1.z.object({
|
|
|
87
87
|
exports.zodChunkSchema = zod_1.z.object({
|
|
88
88
|
_id: zod_1.z.string().optional(),
|
|
89
89
|
chunk_id: zod_1.z.string().optional(),
|
|
90
|
+
chunk_id_before: zod_1.z.string().optional(),
|
|
91
|
+
chunk_id_after: zod_1.z.string().optional(),
|
|
90
92
|
organization_id: zod_1.z.string(),
|
|
91
93
|
context_id: zod_1.z.string(),
|
|
92
94
|
text: zod_1.z.string(),
|
package/index.ts
CHANGED
|
@@ -114,6 +114,8 @@ export const ContextSchema = new Schema(
|
|
|
114
114
|
export const ChunkSchema = new Schema(
|
|
115
115
|
{
|
|
116
116
|
chunk_id: { type: String },
|
|
117
|
+
chunk_id_before: { type: String },
|
|
118
|
+
chunk_id_after: { type: String },
|
|
117
119
|
organization_id: { type: String, required: true },
|
|
118
120
|
context_id: { type: String, required: true },
|
|
119
121
|
text: { type: String, required: true },
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -92,6 +92,8 @@ export const zodAgentSchema = z.object({
|
|
|
92
92
|
export const zodChunkSchema = z.object({
|
|
93
93
|
_id: z.string().optional(),
|
|
94
94
|
chunk_id: z.string().optional(),
|
|
95
|
+
chunk_id_before: z.string().optional(),
|
|
96
|
+
chunk_id_after: z.string().optional(),
|
|
95
97
|
organization_id: z.string(),
|
|
96
98
|
context_id: z.string(),
|
|
97
99
|
text: z.string(),
|