@mastra/rag 2.6.8-alpha.1 → 2.7.0-alpha.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/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Big } from "big.js";
|
|
|
8
8
|
import { createSimilarityPrompt } from "@mastra/core/relevance";
|
|
9
9
|
import ZeroEntropy from "zeroentropy";
|
|
10
10
|
import { createTool } from "@mastra/core/tools";
|
|
11
|
-
import { embedV1, embedV2, embedV3 } from "@mastra/core/vector";
|
|
11
|
+
import { embedV1, embedV2, embedV3, embedV4 } from "@mastra/core/vector";
|
|
12
12
|
import { AgenticRetrieveStreamCommand, BedrockAgentRuntimeClient, RetrieveCommand } from "@aws-sdk/client-bedrock-agent-runtime";
|
|
13
13
|
//#region \0rolldown/runtime.js
|
|
14
14
|
var __create$1 = Object.create;
|
|
@@ -6592,7 +6592,13 @@ const vectorQuerySearch = async ({ indexName, vectorStore, queryText, model, que
|
|
|
6592
6592
|
});
|
|
6593
6593
|
let embeddingResult;
|
|
6594
6594
|
try {
|
|
6595
|
-
if (model.specificationVersion === "
|
|
6595
|
+
if (model.specificationVersion === "v4") embeddingResult = await embedV4({
|
|
6596
|
+
model,
|
|
6597
|
+
value: queryText,
|
|
6598
|
+
maxRetries,
|
|
6599
|
+
providerOptions
|
|
6600
|
+
});
|
|
6601
|
+
else if (model.specificationVersion === "v3") embeddingResult = await embedV3({
|
|
6596
6602
|
model,
|
|
6597
6603
|
value: queryText,
|
|
6598
6604
|
maxRetries,
|