@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.
@@ -3,7 +3,7 @@ name: mastra-rag
3
3
  description: Documentation for @mastra/rag. Use when working with @mastra/rag APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/rag"
6
- version: "2.6.8-alpha.1"
6
+ version: "2.7.0-alpha.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.6.8-alpha.1",
2
+ "version": "2.7.0-alpha.2",
3
3
  "package": "@mastra/rag",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -6594,7 +6594,13 @@ const vectorQuerySearch = async ({ indexName, vectorStore, queryText, model, que
6594
6594
  });
6595
6595
  let embeddingResult;
6596
6596
  try {
6597
- if (model.specificationVersion === "v3") embeddingResult = await (0, _mastra_core_vector.embedV3)({
6597
+ if (model.specificationVersion === "v4") embeddingResult = await (0, _mastra_core_vector.embedV4)({
6598
+ model,
6599
+ value: queryText,
6600
+ maxRetries,
6601
+ providerOptions
6602
+ });
6603
+ else if (model.specificationVersion === "v3") embeddingResult = await (0, _mastra_core_vector.embedV3)({
6598
6604
  model,
6599
6605
  value: queryText,
6600
6606
  maxRetries,