@mastra/lance 1.6.1-alpha.0 → 1.6.2-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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/integrations-databases-lancedb.md +4 -4
- package/dist/docs/references/integrations-vectors-lance.md +3 -3
- package/dist/index.cjs +0 -2
- package/dist/index.js +0 -2
- package/package.json +7 -6
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/storage/db/index.d.ts.map +0 -1
- package/dist/storage/db/utils.d.ts.map +0 -1
- package/dist/storage/domains/background-tasks/index.d.ts.map +0 -1
- package/dist/storage/domains/memory/index.d.ts.map +0 -1
- package/dist/storage/domains/scores/index.d.ts.map +0 -1
- package/dist/storage/domains/workflows/index.d.ts.map +0 -1
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/vector/filter.d.ts.map +0 -1
- package/dist/vector/index.d.ts.map +0 -1
- package/dist/vector/types.d.ts.map +0 -1
package/dist/docs/SKILL.md
CHANGED
|
@@ -36,7 +36,7 @@ bun add @mastra/lance@latest
|
|
|
36
36
|
|
|
37
37
|
## Usage
|
|
38
38
|
|
|
39
|
-
### Basic
|
|
39
|
+
### Basic storage usage
|
|
40
40
|
|
|
41
41
|
```typescript
|
|
42
42
|
import { LanceStorage } from '@mastra/lance'
|
|
@@ -65,7 +65,7 @@ const storage = await LanceStorage.create('my-storage', 's3://bucket/db', {
|
|
|
65
65
|
|
|
66
66
|
## Additional notes
|
|
67
67
|
|
|
68
|
-
### Schema
|
|
68
|
+
### Schema management
|
|
69
69
|
|
|
70
70
|
The LanceStorage implementation automatically handles schema creation and updates. It maps Mastra's schema types to Apache Arrow data types, which are used by LanceDB internally:
|
|
71
71
|
|
|
@@ -107,7 +107,7 @@ const thread = await memoryStore?.getThreadById({ threadId: '...' })
|
|
|
107
107
|
|
|
108
108
|
> **Warning:** If `init()` isn't called, tables won't be created and storage operations will fail silently or throw errors.
|
|
109
109
|
|
|
110
|
-
### Deployment
|
|
110
|
+
### Deployment options
|
|
111
111
|
|
|
112
112
|
LanceDB storage can be configured for different deployment scenarios:
|
|
113
113
|
|
|
@@ -124,7 +124,7 @@ LanceDB storage can be configured for different deployment scenarios:
|
|
|
124
124
|
s3://bucket/db
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
### Table
|
|
127
|
+
### Table management
|
|
128
128
|
|
|
129
129
|
LanceStorage provides methods for managing tables:
|
|
130
130
|
|
|
@@ -8,7 +8,7 @@ The LanceVectorStore class provides vector search using [LanceDB](https://lanced
|
|
|
8
8
|
|
|
9
9
|
## Factory method
|
|
10
10
|
|
|
11
|
-
The LanceVectorStore uses a factory pattern for creation.
|
|
11
|
+
The LanceVectorStore uses a factory pattern for creation. Use the static `create()` method rather than the constructor directly.
|
|
12
12
|
|
|
13
13
|
**uri** (`string`): Path to LanceDB database or URI for cloud deployments
|
|
14
14
|
|
|
@@ -180,7 +180,7 @@ Returns LanceDB `OptimizeStats` (compaction and pruning counts).
|
|
|
180
180
|
|
|
181
181
|
`optimize()` adds new rows to the existing index without retraining it. If your data distribution has changed a lot, rebuild the index with `deleteIndex()` and `createIndex()` instead.
|
|
182
182
|
|
|
183
|
-
LanceDB suggests optimizing after
|
|
183
|
+
LanceDB suggests optimizing after about 100,000 modified rows or 20 write operations. Use `getIndexCoverage()` to build your own policy:
|
|
184
184
|
|
|
185
185
|
```typescript
|
|
186
186
|
const [coverage] = await store.getIndexCoverage({ indexName: 'docs' })
|
|
@@ -269,7 +269,7 @@ try {
|
|
|
269
269
|
|
|
270
270
|
- For optimal performance with large datasets, consider adjusting `numPartitions` and `numSubVectors` values
|
|
271
271
|
|
|
272
|
-
- Use `close()` method to
|
|
272
|
+
- Use the `close()` method to close connections when done with the database
|
|
273
273
|
|
|
274
274
|
- Store metadata with a consistent schema to simplify filtering operations
|
|
275
275
|
|
package/dist/index.cjs
CHANGED
|
@@ -3192,5 +3192,3 @@ exports.StoreBackgroundTasksLance = StoreBackgroundTasksLance;
|
|
|
3192
3192
|
exports.StoreMemoryLance = StoreMemoryLance;
|
|
3193
3193
|
exports.StoreScoresLance = StoreScoresLance;
|
|
3194
3194
|
exports.StoreWorkflowsLance = StoreWorkflowsLance;
|
|
3195
|
-
|
|
3196
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -3186,5 +3186,3 @@ var LanceVectorStore = class LanceVectorStore extends MastraVector {
|
|
|
3186
3186
|
}
|
|
3187
3187
|
};
|
|
3188
3188
|
export { LanceStorage, LanceVectorStore, StoreBackgroundTasksLance, StoreMemoryLance, StoreScoresLance, StoreWorkflowsLance };
|
|
3189
|
-
|
|
3190
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/lance",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2-alpha.0",
|
|
4
4
|
"description": "Lance provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -31,16 +31,17 @@
|
|
|
31
31
|
"tsx": "^4.23.15",
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
33
|
"vitest": "5.1.0",
|
|
34
|
-
"@internal/lint": "0.0.
|
|
35
|
-
"@internal/storage-test-utils": "0.0.
|
|
36
|
-
"@internal/types-builder": "0.0.
|
|
37
|
-
"@mastra/core": "^1.
|
|
34
|
+
"@internal/lint": "0.0.151",
|
|
35
|
+
"@internal/storage-test-utils": "0.0.147",
|
|
36
|
+
"@internal/types-builder": "0.0.126",
|
|
37
|
+
"@mastra/core": "^1.86.0-alpha.6"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@mastra/core": ">=1.53.0-0 <2.0.0-0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
|
-
"dist"
|
|
43
|
+
"dist",
|
|
44
|
+
"!dist/**/*.d.*ts.map"
|
|
44
45
|
],
|
|
45
46
|
"homepage": "https://mastra.ai",
|
|
46
47
|
"repository": {
|