@mastra/pg 1.27.0 → 1.27.1-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.
@@ -3,7 +3,7 @@ name: mastra-pg
3
3
  description: Documentation for @mastra/pg. Use when working with @mastra/pg APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/pg"
6
- version: "1.27.0"
6
+ version: "1.27.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.27.0",
2
+ "version": "1.27.1-alpha.0",
3
3
  "package": "@mastra/pg",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -54,6 +54,29 @@ const results = await store.hybridQuery({
54
54
 
55
55
  See the [MongoDB vector reference](https://mastra.ai/reference/vectors/mongodb) for details on `createSearchIndex()`, `textQuery()`, and `hybridQuery()`.
56
56
 
57
+ ### Automated Embedding
58
+
59
+ MongoDB can generate the embeddings itself, so you don't need an embedding provider in your application. Create the index with `autoEmbed` and a Voyage AI model, write plain text, and search with a query string:
60
+
61
+ ```ts
62
+ await store.createIndex({
63
+ indexName: 'myCollection',
64
+ autoEmbed: { model: 'voyage-4' },
65
+ })
66
+ await store.upsert({
67
+ indexName: 'myCollection',
68
+ documents: chunks.map(chunk => chunk.text),
69
+ metadata: chunks.map(chunk => ({ text: chunk.text })),
70
+ })
71
+ const results = await store.query({
72
+ indexName: 'myCollection',
73
+ queryText: 'search terms',
74
+ topK: 10,
75
+ })
76
+ ```
77
+
78
+ Automated Embedding is a MongoDB Preview feature and needs a deployment where it's available. See the [MongoDB vector reference](https://mastra.ai/reference/vectors/mongodb) for the supported options and requirements.
79
+
57
80
  **PgVector**:
58
81
 
59
82
  ```ts
package/dist/index.cjs CHANGED
@@ -18981,21 +18981,35 @@ var ObservabilityStoragePostgresVNext = class ObservabilityStoragePostgresVNext
18981
18981
  if (!deltaPollingFeatureEnabled()) return [
18982
18982
  "metrics",
18983
18983
  "logs",
18984
+ "entity-type-discovery",
18985
+ "entity-name-discovery",
18986
+ "service-name-discovery",
18987
+ "environment-discovery",
18988
+ "tag-discovery",
18989
+ "metric-discovery",
18984
18990
  "trace-query",
18985
18991
  "trace-query-root-duration",
18986
18992
  "trace-query-discovery",
18987
18993
  "thread-query",
18988
- "trace-query-tenant-scope"
18994
+ "trace-query-tenant-scope",
18995
+ "feedback"
18989
18996
  ];
18990
18997
  return [
18991
18998
  "metrics",
18992
18999
  "logs",
19000
+ "entity-type-discovery",
19001
+ "entity-name-discovery",
19002
+ "service-name-discovery",
19003
+ "environment-discovery",
19004
+ "tag-discovery",
19005
+ "metric-discovery",
18993
19006
  "delta-polling",
18994
19007
  "trace-query",
18995
19008
  "trace-query-root-duration",
18996
19009
  "trace-query-discovery",
18997
19010
  "thread-query",
18998
- "trace-query-tenant-scope"
19011
+ "trace-query-tenant-scope",
19012
+ "feedback"
18999
19013
  ];
19000
19014
  }
19001
19015
  async #run(op, fn, details) {