@okf/ootils 1.8.0 → 1.8.2
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/node.d.mts +3 -1
- package/dist/node.d.ts +3 -1
- package/dist/node.js +6 -2
- package/dist/node.mjs +6 -2
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
|
@@ -905,11 +905,13 @@ interface IMessage {
|
|
|
905
905
|
vectorSearchInfo: {
|
|
906
906
|
chunks: typeof AnnotationSchema[];
|
|
907
907
|
};
|
|
908
|
+
relatedChunks: mongoose.Schema.Types.ObjectId[];
|
|
908
909
|
args: {
|
|
909
910
|
query: string;
|
|
910
911
|
reframedQuery: string;
|
|
911
912
|
summary: object;
|
|
912
913
|
};
|
|
914
|
+
metadata: object;
|
|
913
915
|
userFeedback: {
|
|
914
916
|
reaction: "positive" | "negative";
|
|
915
917
|
comments: string;
|
|
@@ -918,7 +920,7 @@ interface IMessage {
|
|
|
918
920
|
interface IAIChat extends Document {
|
|
919
921
|
userId: mongoose.Schema.Types.ObjectId;
|
|
920
922
|
createdAt: Date;
|
|
921
|
-
|
|
923
|
+
lastActivity: Date;
|
|
922
924
|
messages: IMessage[];
|
|
923
925
|
}
|
|
924
926
|
declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any> & IAIChat & Required<{
|
package/dist/node.d.ts
CHANGED
|
@@ -905,11 +905,13 @@ interface IMessage {
|
|
|
905
905
|
vectorSearchInfo: {
|
|
906
906
|
chunks: typeof AnnotationSchema[];
|
|
907
907
|
};
|
|
908
|
+
relatedChunks: mongoose.Schema.Types.ObjectId[];
|
|
908
909
|
args: {
|
|
909
910
|
query: string;
|
|
910
911
|
reframedQuery: string;
|
|
911
912
|
summary: object;
|
|
912
913
|
};
|
|
914
|
+
metadata: object;
|
|
913
915
|
userFeedback: {
|
|
914
916
|
reaction: "positive" | "negative";
|
|
915
917
|
comments: string;
|
|
@@ -918,7 +920,7 @@ interface IMessage {
|
|
|
918
920
|
interface IAIChat extends Document {
|
|
919
921
|
userId: mongoose.Schema.Types.ObjectId;
|
|
920
922
|
createdAt: Date;
|
|
921
|
-
|
|
923
|
+
lastActivity: Date;
|
|
922
924
|
messages: IMessage[];
|
|
923
925
|
}
|
|
924
926
|
declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any> & IAIChat & Required<{
|
package/dist/node.js
CHANGED
|
@@ -909,9 +909,9 @@ var init_AIChat = __esm({
|
|
|
909
909
|
init_Annotations();
|
|
910
910
|
AIChatSchema = new import_mongoose4.default.Schema(
|
|
911
911
|
{
|
|
912
|
-
userId: { type: import_mongoose4.default.Schema.Types.ObjectId, index:
|
|
912
|
+
userId: { type: import_mongoose4.default.Schema.Types.ObjectId, index: true },
|
|
913
913
|
createdAt: Date,
|
|
914
|
-
|
|
914
|
+
lastActivity: Date,
|
|
915
915
|
messages: [
|
|
916
916
|
{
|
|
917
917
|
id: String,
|
|
@@ -925,13 +925,17 @@ var init_AIChat = __esm({
|
|
|
925
925
|
viz: Object
|
|
926
926
|
},
|
|
927
927
|
vectorSearchInfo: {
|
|
928
|
+
//deprecated in favor of 'relatedChunks'
|
|
928
929
|
chunks: [Annotations_default]
|
|
929
930
|
},
|
|
931
|
+
relatedChunks: [{ type: import_mongoose4.default.Schema.Types.ObjectId, ref: "chunks" }],
|
|
930
932
|
args: {
|
|
933
|
+
//depracated in favour of metadata
|
|
931
934
|
query: String,
|
|
932
935
|
reframedQuery: String,
|
|
933
936
|
summary: Object
|
|
934
937
|
},
|
|
938
|
+
metadata: Object,
|
|
935
939
|
userFeedback: {
|
|
936
940
|
reaction: { type: String, enum: ["positive", "negative"] },
|
|
937
941
|
comments: String
|
package/dist/node.mjs
CHANGED
|
@@ -914,9 +914,9 @@ var init_AIChat = __esm({
|
|
|
914
914
|
init_Annotations();
|
|
915
915
|
AIChatSchema = new mongoose4.Schema(
|
|
916
916
|
{
|
|
917
|
-
userId: { type: mongoose4.Schema.Types.ObjectId, index:
|
|
917
|
+
userId: { type: mongoose4.Schema.Types.ObjectId, index: true },
|
|
918
918
|
createdAt: Date,
|
|
919
|
-
|
|
919
|
+
lastActivity: Date,
|
|
920
920
|
messages: [
|
|
921
921
|
{
|
|
922
922
|
id: String,
|
|
@@ -930,13 +930,17 @@ var init_AIChat = __esm({
|
|
|
930
930
|
viz: Object
|
|
931
931
|
},
|
|
932
932
|
vectorSearchInfo: {
|
|
933
|
+
//deprecated in favor of 'relatedChunks'
|
|
933
934
|
chunks: [Annotations_default]
|
|
934
935
|
},
|
|
936
|
+
relatedChunks: [{ type: mongoose4.Schema.Types.ObjectId, ref: "chunks" }],
|
|
935
937
|
args: {
|
|
938
|
+
//depracated in favour of metadata
|
|
936
939
|
query: String,
|
|
937
940
|
reframedQuery: String,
|
|
938
941
|
summary: Object
|
|
939
942
|
},
|
|
943
|
+
metadata: Object,
|
|
940
944
|
userFeedback: {
|
|
941
945
|
reaction: { type: String, enum: ["positive", "negative"] },
|
|
942
946
|
comments: String
|