@aj-archipelago/cortex 1.0.17 → 1.0.18
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/package.json
CHANGED
|
@@ -53,6 +53,8 @@ class AzureCognitivePlugin extends ModelPlugin {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
if (mode == 'index') {
|
|
56
|
+
|
|
57
|
+
/*
|
|
56
58
|
const calculateInputVector = async () => {
|
|
57
59
|
try{
|
|
58
60
|
if(!text || !text.trim()){
|
|
@@ -63,11 +65,12 @@ class AzureCognitivePlugin extends ModelPlugin {
|
|
|
63
65
|
console.log(`Error in calculating input vector for text: ${text}, error: ${err}`);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
68
|
+
*/
|
|
66
69
|
|
|
67
70
|
const doc = {
|
|
68
71
|
id: uuidv4(),
|
|
69
72
|
content: text,
|
|
70
|
-
contentVector: inputVector || (await calculateInputVector()),
|
|
73
|
+
//contentVector: inputVector || (await calculateInputVector()),
|
|
71
74
|
owner: savedContextId,
|
|
72
75
|
docId: docId || uuidv4(),
|
|
73
76
|
createdAt: new Date().toISOString()
|