chatifai 1.0.16 → 1.0.17
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 +3 -0
- package/dist/index.js +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
324
324
|
embeddings: number[];
|
|
325
325
|
created_at?: number | null | undefined;
|
|
326
326
|
updated_at?: number | null | undefined;
|
|
327
|
+
chunk_id?: string | null | undefined;
|
|
327
328
|
embeddings_meta_data?: {
|
|
328
329
|
model: string;
|
|
329
330
|
dimensions: number;
|
|
@@ -351,6 +352,7 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
351
352
|
embeddings: number[];
|
|
352
353
|
created_at?: number | null | undefined;
|
|
353
354
|
updated_at?: number | null | undefined;
|
|
355
|
+
chunk_id?: string | null | undefined;
|
|
354
356
|
embeddings_meta_data?: {
|
|
355
357
|
model: string;
|
|
356
358
|
dimensions: number;
|
|
@@ -378,6 +380,7 @@ export declare const ChunkSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
378
380
|
embeddings: number[];
|
|
379
381
|
created_at?: number | null | undefined;
|
|
380
382
|
updated_at?: number | null | undefined;
|
|
383
|
+
chunk_id?: string | null | undefined;
|
|
381
384
|
embeddings_meta_data?: {
|
|
382
385
|
model: string;
|
|
383
386
|
dimensions: number;
|
package/dist/index.js
CHANGED
|
@@ -111,6 +111,7 @@ exports.ContextSchema = new mongoose_1.Schema({
|
|
|
111
111
|
// encryptionType: 'csfle',
|
|
112
112
|
});
|
|
113
113
|
exports.ChunkSchema = new mongoose_1.Schema({
|
|
114
|
+
chunk_id: { type: String },
|
|
114
115
|
organization_id: { type: String, required: true },
|
|
115
116
|
context_id: { type: String, required: true },
|
|
116
117
|
text: { type: String, required: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -235,6 +235,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
235
235
|
}>;
|
|
236
236
|
export declare const zodChunkSchema: z.ZodObject<{
|
|
237
237
|
_id: z.ZodOptional<z.ZodString>;
|
|
238
|
+
chunk_id: z.ZodOptional<z.ZodString>;
|
|
238
239
|
organization_id: z.ZodString;
|
|
239
240
|
context_id: z.ZodString;
|
|
240
241
|
text: z.ZodString;
|
|
@@ -301,6 +302,7 @@ export declare const zodChunkSchema: z.ZodObject<{
|
|
|
301
302
|
_id?: string | undefined;
|
|
302
303
|
created_at?: number | undefined;
|
|
303
304
|
updated_at?: number | undefined;
|
|
305
|
+
chunk_id?: string | undefined;
|
|
304
306
|
}, {
|
|
305
307
|
type: string;
|
|
306
308
|
organization_id: string;
|
|
@@ -326,6 +328,7 @@ export declare const zodChunkSchema: z.ZodObject<{
|
|
|
326
328
|
_id?: string | undefined;
|
|
327
329
|
created_at?: number | undefined;
|
|
328
330
|
updated_at?: number | undefined;
|
|
331
|
+
chunk_id?: string | undefined;
|
|
329
332
|
}>;
|
|
330
333
|
export declare const zodFullTextSchema: z.ZodObject<{
|
|
331
334
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -97,6 +97,7 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
97
97
|
});
|
|
98
98
|
exports.zodChunkSchema = zod_1.z.object({
|
|
99
99
|
_id: zod_1.z.string().optional(),
|
|
100
|
+
chunk_id: zod_1.z.string().optional(),
|
|
100
101
|
organization_id: zod_1.z.string(),
|
|
101
102
|
context_id: zod_1.z.string(),
|
|
102
103
|
text: zod_1.z.string(),
|
package/index.ts
CHANGED
|
@@ -113,6 +113,7 @@ export const ContextSchema = new Schema(
|
|
|
113
113
|
|
|
114
114
|
export const ChunkSchema = new Schema(
|
|
115
115
|
{
|
|
116
|
+
chunk_id: { type: String },
|
|
116
117
|
organization_id: { type: String, required: true },
|
|
117
118
|
context_id: { type: String, required: true },
|
|
118
119
|
text: { type: String, required: true },
|
package/package.json
CHANGED
package/types.ts
CHANGED