@okf/ootils 1.8.1 → 1.8.3
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.js +5 -4
- package/dist/node.mjs +5 -4
- package/package.json +1 -1
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:
|
|
913
|
-
createdAt: Date,
|
|
914
|
-
lastActivity: Date,
|
|
912
|
+
userId: { type: import_mongoose4.default.Schema.Types.ObjectId, index: true },
|
|
913
|
+
createdAt: { type: Date, index: true },
|
|
914
|
+
lastActivity: { type: Date, index: true },
|
|
915
915
|
messages: [
|
|
916
916
|
{
|
|
917
917
|
id: String,
|
|
@@ -925,11 +925,12 @@ var init_AIChat = __esm({
|
|
|
925
925
|
viz: Object
|
|
926
926
|
},
|
|
927
927
|
vectorSearchInfo: {
|
|
928
|
-
//
|
|
928
|
+
//deprecated in favor of 'relatedChunks'
|
|
929
929
|
chunks: [Annotations_default]
|
|
930
930
|
},
|
|
931
931
|
relatedChunks: [{ type: import_mongoose4.default.Schema.Types.ObjectId, ref: "chunks" }],
|
|
932
932
|
args: {
|
|
933
|
+
//depracated in favour of metadata
|
|
933
934
|
query: String,
|
|
934
935
|
reframedQuery: String,
|
|
935
936
|
summary: Object
|
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:
|
|
918
|
-
createdAt: Date,
|
|
919
|
-
lastActivity: Date,
|
|
917
|
+
userId: { type: mongoose4.Schema.Types.ObjectId, index: true },
|
|
918
|
+
createdAt: { type: Date, index: true },
|
|
919
|
+
lastActivity: { type: Date, index: true },
|
|
920
920
|
messages: [
|
|
921
921
|
{
|
|
922
922
|
id: String,
|
|
@@ -930,11 +930,12 @@ var init_AIChat = __esm({
|
|
|
930
930
|
viz: Object
|
|
931
931
|
},
|
|
932
932
|
vectorSearchInfo: {
|
|
933
|
-
//
|
|
933
|
+
//deprecated in favor of 'relatedChunks'
|
|
934
934
|
chunks: [Annotations_default]
|
|
935
935
|
},
|
|
936
936
|
relatedChunks: [{ type: mongoose4.Schema.Types.ObjectId, ref: "chunks" }],
|
|
937
937
|
args: {
|
|
938
|
+
//depracated in favour of metadata
|
|
938
939
|
query: String,
|
|
939
940
|
reframedQuery: String,
|
|
940
941
|
summary: Object
|