@mastra/opensearch 1.1.4-alpha.1 → 1.1.5-alpha.0

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/README.md CHANGED
@@ -38,7 +38,7 @@ const results = await vectorStore.query({
38
38
 
39
39
  ## Documentation
40
40
 
41
- - [Reference: OpenSearch vector store](https://mastra.ai/reference/vectors/opensearch)
41
+ - [Reference: OpenSearch vector store](https://mastra.ai/integrations/vectors/opensearch)
42
42
 
43
43
  ## Changelog
44
44
 
@@ -3,7 +3,7 @@ name: mastra-opensearch
3
3
  description: Documentation for @mastra/opensearch. Use when working with @mastra/opensearch APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/opensearch"
6
- version: "1.1.4-alpha.1"
6
+ version: "1.1.5-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -14,11 +14,9 @@ Use this skill whenever you are working with @mastra/opensearch to obtain the do
14
14
 
15
15
  Read the individual reference documents for detailed explanations and code examples.
16
16
 
17
- ### Reference
17
+ ### Integrations
18
18
 
19
- - [Retrieval, semantic search, reranking](references/reference-rag-retrieval.md) - After storing embeddings, you need to retrieve relevant chunks to answer user queries.
20
- - [Storing embeddings in a vector database](references/reference-rag-vector-databases.md) - After generating embeddings, you need to store them in a database that supports vector similarity search.
21
- - [Reference: OpenSearch vector store](references/reference-vectors-opensearch.md) - The OpenSearchVector class provides vector search using OpenSearch, an open-source search and analytics engine.
19
+ - [OpenSearch](references/integrations-vectors-opensearch.md) - Run k-NN vector similarity search against OpenSearch indexes from Mastra with metadata filtering.
22
20
 
23
21
 
24
22
  Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,6 +1,17 @@
1
1
  {
2
- "version": "1.1.4-alpha.1",
2
+ "version": "1.1.5-alpha.0",
3
3
  "package": "@mastra/opensearch",
4
- "exports": {},
4
+ "exports": {
5
+ "OPENSEARCH_PROMPT": {
6
+ "types": "dist/vector/prompt.d.ts",
7
+ "implementation": "dist/index.js",
8
+ "line": 710
9
+ },
10
+ "OpenSearchVector": {
11
+ "types": "dist/vector/index.d.ts",
12
+ "implementation": "dist/index.js",
13
+ "line": 231
14
+ }
15
+ },
5
16
  "modules": {}
6
17
  }
package/dist/index.cjs CHANGED
@@ -143,7 +143,7 @@ var OpenSearchFilterTranslator = class extends _mastra_core_vector_filter.BaseFi
143
143
  if (hasEndAnchor) processedRegex = processedRegex.substring(0, processedRegex.length - 1);
144
144
  let wildcardPattern = processedRegex;
145
145
  if (!hasStartAnchor) wildcardPattern = "*" + wildcardPattern;
146
- if (!hasEndAnchor) wildcardPattern = wildcardPattern + "*";
146
+ if (!hasEndAnchor) wildcardPattern += "*";
147
147
  return { wildcard: { [field]: wildcardPattern } };
148
148
  }
149
149
  const escapedRegex = regexValue.replace(/\\/g, "\\\\");
@@ -788,5 +788,3 @@ Example Complex Query:
788
788
  }`;
789
789
  exports.OPENSEARCH_PROMPT = OPENSEARCH_PROMPT;
790
790
  exports.OpenSearchVector = OpenSearchVector;
791
-
792
- //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ var OpenSearchFilterTranslator = class extends BaseFilterTranslator {
142
142
  if (hasEndAnchor) processedRegex = processedRegex.substring(0, processedRegex.length - 1);
143
143
  let wildcardPattern = processedRegex;
144
144
  if (!hasStartAnchor) wildcardPattern = "*" + wildcardPattern;
145
- if (!hasEndAnchor) wildcardPattern = wildcardPattern + "*";
145
+ if (!hasEndAnchor) wildcardPattern += "*";
146
146
  return { wildcard: { [field]: wildcardPattern } };
147
147
  }
148
148
  const escapedRegex = regexValue.replace(/\\/g, "\\\\");
@@ -786,5 +786,3 @@ Example Complex Query:
786
786
  ]
787
787
  }`;
788
788
  export { OPENSEARCH_PROMPT, OpenSearchVector };
789
-
790
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/opensearch",
3
- "version": "1.1.4-alpha.1",
3
+ "version": "1.1.5-alpha.0",
4
4
  "description": "OpenSearch vector store provider for Mastra",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -24,22 +24,23 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "22.19.15",
27
- "@vitest/coverage-v8": "4.1.12",
28
- "@vitest/ui": "4.1.12",
27
+ "@vitest/coverage-v8": "5.1.0",
28
+ "@vitest/ui": "5.1.0",
29
29
  "tsdown": "0.23.1",
30
30
  "tsx": "^4.23.15",
31
31
  "typescript": "^7.0.2",
32
- "vitest": "4.1.12",
33
- "@internal/lint": "0.0.145",
34
- "@internal/storage-test-utils": "0.0.141",
35
- "@mastra/core": "1.80.0-alpha.4",
36
- "@internal/types-builder": "0.0.120"
32
+ "vitest": "5.1.0",
33
+ "@internal/lint": "0.0.151",
34
+ "@mastra/core": "1.86.0-alpha.6",
35
+ "@internal/storage-test-utils": "0.0.147",
36
+ "@internal/types-builder": "0.0.126"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@mastra/core": ">=1.0.0-0 <2.0.0-0"
40
40
  },
41
41
  "files": [
42
- "dist"
42
+ "dist",
43
+ "!dist/**/*.d.*ts.map"
43
44
  ],
44
45
  "homepage": "https://mastra.ai",
45
46
  "repository": {