@instant.dev/vectors 0.1.2 → 0.1.4

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.
@@ -6,10 +6,17 @@
6
6
  class VectorManager {
7
7
 
8
8
  constructor () {
9
+ this.__initialize__();
10
+ }
11
+
12
+ /**
13
+ * @private
14
+ */
15
+ __initialize__ () {
9
16
  this.maximumBatchSize = 7168 * 4; // 4 tokens per word, estimated
10
- this.maximumParallelRequests = 10; // 10 requests simultaneously max
11
- this.fastQueueTime = 10; // time to wait if no other entries are added
12
- this.waitQueueTime = 100; // time to wait to collect entries if 1+ entries are added
17
+ this.maximumParallelRequests = 50; // 50 requests simultaneously max
18
+ this.fastQueueTime = 5; // time to wait if no other entries are added
19
+ this.waitQueueTime = 20; // time to wait to collect entries if 1+ entries are added
13
20
  /**
14
21
  * @private
15
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instant.dev/vectors",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Utility for batch creating vectors via API",
5
5
  "main": "index.js",
6
6
  "scripts": {