@okf/ootils 1.8.1 → 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.js CHANGED
@@ -909,7 +909,7 @@ 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: { unique: true } },
912
+ userId: { type: import_mongoose4.default.Schema.Types.ObjectId, index: true },
913
913
  createdAt: Date,
914
914
  lastActivity: Date,
915
915
  messages: [
@@ -925,11 +925,12 @@ var init_AIChat = __esm({
925
925
  viz: Object
926
926
  },
927
927
  vectorSearchInfo: {
928
- //depreca
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,7 +914,7 @@ var init_AIChat = __esm({
914
914
  init_Annotations();
915
915
  AIChatSchema = new mongoose4.Schema(
916
916
  {
917
- userId: { type: mongoose4.Schema.Types.ObjectId, index: { unique: true } },
917
+ userId: { type: mongoose4.Schema.Types.ObjectId, index: true },
918
918
  createdAt: Date,
919
919
  lastActivity: Date,
920
920
  messages: [
@@ -930,11 +930,12 @@ var init_AIChat = __esm({
930
930
  viz: Object
931
931
  },
932
932
  vectorSearchInfo: {
933
- //depreca
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
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.1",
6
+ "version": "1.8.2",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",