@mastra/lance 0.0.0-new-scorer-api-20250801075530 → 0.0.0-rag-chunk-extract-llm-option-20250926183645

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +333 -3
  2. package/README.md +3 -3
  3. package/dist/index.cjs +196 -35
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +196 -35
  7. package/dist/index.js.map +1 -1
  8. package/dist/storage/domains/memory/index.d.ts +10 -1
  9. package/dist/storage/domains/memory/index.d.ts.map +1 -1
  10. package/dist/storage/domains/operations/index.d.ts.map +1 -1
  11. package/dist/storage/domains/scores/index.d.ts +13 -2
  12. package/dist/storage/domains/scores/index.d.ts.map +1 -1
  13. package/dist/storage/domains/traces/index.d.ts +1 -1
  14. package/dist/storage/domains/utils.d.ts.map +1 -1
  15. package/dist/storage/domains/workflows/index.d.ts +21 -2
  16. package/dist/storage/domains/workflows/index.d.ts.map +1 -1
  17. package/dist/storage/index.d.ts +43 -4
  18. package/dist/storage/index.d.ts.map +1 -1
  19. package/dist/vector/index.d.ts +3 -3
  20. package/dist/vector/index.d.ts.map +1 -1
  21. package/package.json +22 -8
  22. package/eslint.config.js +0 -6
  23. package/src/index.ts +0 -2
  24. package/src/storage/domains/legacy-evals/index.ts +0 -156
  25. package/src/storage/domains/memory/index.ts +0 -947
  26. package/src/storage/domains/operations/index.ts +0 -489
  27. package/src/storage/domains/scores/index.ts +0 -221
  28. package/src/storage/domains/traces/index.ts +0 -212
  29. package/src/storage/domains/utils.ts +0 -158
  30. package/src/storage/domains/workflows/index.ts +0 -207
  31. package/src/storage/index.test.ts +0 -10
  32. package/src/storage/index.ts +0 -442
  33. package/src/vector/filter.test.ts +0 -295
  34. package/src/vector/filter.ts +0 -443
  35. package/src/vector/index.test.ts +0 -1493
  36. package/src/vector/index.ts +0 -941
  37. package/src/vector/types.ts +0 -16
  38. package/tsconfig.build.json +0 -9
  39. package/tsconfig.json +0 -5
  40. package/tsup.config.ts +0 -22
  41. package/vitest.config.ts +0 -11
@@ -1,16 +0,0 @@
1
- export type IndexType = 'ivfflat' | 'hnsw';
2
-
3
- interface IVFConfig {
4
- lists?: number;
5
- }
6
-
7
- interface HNSWConfig {
8
- m?: number; // Max number of connections (default: 16)
9
- efConstruction?: number; // Build-time complexity (default: 64)
10
- }
11
-
12
- export interface IndexConfig {
13
- type?: IndexType;
14
- ivf?: IVFConfig;
15
- hnsw?: HNSWConfig;
16
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": ["./tsconfig.json", "../../tsconfig.build.json"],
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "rootDir": "./src"
6
- },
7
- "include": ["src/**/*"],
8
- "exclude": ["node_modules", "**/*.test.ts", "src/**/*.mock.ts"]
9
- }
package/tsconfig.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.node.json",
3
- "include": ["src/**/*", "tsup.config.ts"],
4
- "exclude": ["node_modules", "**/*.test.ts"]
5
- }
package/tsup.config.ts DELETED
@@ -1,22 +0,0 @@
1
- import { spawn } from 'child_process';
2
- import { promisify } from 'util';
3
- import { defineConfig } from 'tsup';
4
-
5
- const exec = promisify(spawn);
6
-
7
- export default defineConfig({
8
- entry: ['src/index.ts'],
9
- format: ['esm', 'cjs'],
10
- clean: true,
11
- dts: false,
12
- splitting: true,
13
- treeshake: {
14
- preset: 'smallest',
15
- },
16
- sourcemap: true,
17
- onSuccess: async () => {
18
- await exec('pnpm', ['tsc', '-p', 'tsconfig.build.json'], {
19
- stdio: 'inherit',
20
- });
21
- },
22
- });
package/vitest.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- environment: 'node',
6
- include: ['src/**/*.test.ts'],
7
- coverage: {
8
- reporter: ['text', 'json', 'html'],
9
- },
10
- },
11
- });