@mastra/rag 0.0.0-commonjs-20250227130920

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 (40) hide show
  1. package/.turbo/turbo-build.log +23 -0
  2. package/CHANGELOG.md +1151 -0
  3. package/LICENSE +44 -0
  4. package/README.md +26 -0
  5. package/dist/_tsup-dts-rollup.d.cts +620 -0
  6. package/dist/_tsup-dts-rollup.d.ts +620 -0
  7. package/dist/index.cjs +2524 -0
  8. package/dist/index.d.cts +22 -0
  9. package/dist/index.d.ts +22 -0
  10. package/dist/index.js +2505 -0
  11. package/docker-compose.yaml +22 -0
  12. package/eslint.config.js +6 -0
  13. package/package.json +72 -0
  14. package/src/document/document.test.ts +985 -0
  15. package/src/document/document.ts +281 -0
  16. package/src/document/index.ts +2 -0
  17. package/src/document/transformers/character.ts +279 -0
  18. package/src/document/transformers/html.ts +346 -0
  19. package/src/document/transformers/json.ts +265 -0
  20. package/src/document/transformers/latex.ts +19 -0
  21. package/src/document/transformers/markdown.ts +244 -0
  22. package/src/document/transformers/text.ts +134 -0
  23. package/src/document/transformers/token.ts +148 -0
  24. package/src/document/transformers/transformer.ts +5 -0
  25. package/src/document/types.ts +103 -0
  26. package/src/graph-rag/index.test.ts +235 -0
  27. package/src/graph-rag/index.ts +306 -0
  28. package/src/index.ts +6 -0
  29. package/src/rerank/index.test.ts +150 -0
  30. package/src/rerank/index.ts +154 -0
  31. package/src/tools/document-chunker.ts +30 -0
  32. package/src/tools/graph-rag.ts +117 -0
  33. package/src/tools/index.ts +3 -0
  34. package/src/tools/vector-query.ts +90 -0
  35. package/src/utils/default-settings.ts +33 -0
  36. package/src/utils/index.ts +2 -0
  37. package/src/utils/vector-prompts.ts +729 -0
  38. package/src/utils/vector-search.ts +41 -0
  39. package/tsconfig.json +5 -0
  40. package/vitest.config.ts +11 -0
@@ -0,0 +1,22 @@
1
+ export { GraphRAG } from './_tsup-dts-rollup.cjs';
2
+ export { MDocument } from './_tsup-dts-rollup.cjs';
3
+ export { rerank } from './_tsup-dts-rollup.cjs';
4
+ export { RerankResult } from './_tsup-dts-rollup.cjs';
5
+ export { RerankerOptions } from './_tsup-dts-rollup.cjs';
6
+ export { RerankerFunctionOptions } from './_tsup-dts-rollup.cjs';
7
+ export { RerankConfig } from './_tsup-dts-rollup.cjs';
8
+ export { createDocumentChunkerTool } from './_tsup-dts-rollup.cjs';
9
+ export { createGraphRAGTool } from './_tsup-dts-rollup.cjs';
10
+ export { createVectorQueryTool } from './_tsup-dts-rollup.cjs';
11
+ export { ASTRA_PROMPT } from './_tsup-dts-rollup.cjs';
12
+ export { CHROMA_PROMPT } from './_tsup-dts-rollup.cjs';
13
+ export { LIBSQL_PROMPT } from './_tsup-dts-rollup.cjs';
14
+ export { PGVECTOR_PROMPT } from './_tsup-dts-rollup.cjs';
15
+ export { PINECONE_PROMPT } from './_tsup-dts-rollup.cjs';
16
+ export { QDRANT_PROMPT } from './_tsup-dts-rollup.cjs';
17
+ export { UPSTASH_PROMPT } from './_tsup-dts-rollup.cjs';
18
+ export { VECTORIZE_PROMPT } from './_tsup-dts-rollup.cjs';
19
+ export { defaultTopK } from './_tsup-dts-rollup.cjs';
20
+ export { defaultFilter } from './_tsup-dts-rollup.cjs';
21
+ export { defaultVectorQueryDescription } from './_tsup-dts-rollup.cjs';
22
+ export { defaultGraphRagDescription } from './_tsup-dts-rollup.cjs';
@@ -0,0 +1,22 @@
1
+ export { GraphRAG } from './_tsup-dts-rollup.js';
2
+ export { MDocument } from './_tsup-dts-rollup.js';
3
+ export { rerank } from './_tsup-dts-rollup.js';
4
+ export { RerankResult } from './_tsup-dts-rollup.js';
5
+ export { RerankerOptions } from './_tsup-dts-rollup.js';
6
+ export { RerankerFunctionOptions } from './_tsup-dts-rollup.js';
7
+ export { RerankConfig } from './_tsup-dts-rollup.js';
8
+ export { createDocumentChunkerTool } from './_tsup-dts-rollup.js';
9
+ export { createGraphRAGTool } from './_tsup-dts-rollup.js';
10
+ export { createVectorQueryTool } from './_tsup-dts-rollup.js';
11
+ export { ASTRA_PROMPT } from './_tsup-dts-rollup.js';
12
+ export { CHROMA_PROMPT } from './_tsup-dts-rollup.js';
13
+ export { LIBSQL_PROMPT } from './_tsup-dts-rollup.js';
14
+ export { PGVECTOR_PROMPT } from './_tsup-dts-rollup.js';
15
+ export { PINECONE_PROMPT } from './_tsup-dts-rollup.js';
16
+ export { QDRANT_PROMPT } from './_tsup-dts-rollup.js';
17
+ export { UPSTASH_PROMPT } from './_tsup-dts-rollup.js';
18
+ export { VECTORIZE_PROMPT } from './_tsup-dts-rollup.js';
19
+ export { defaultTopK } from './_tsup-dts-rollup.js';
20
+ export { defaultFilter } from './_tsup-dts-rollup.js';
21
+ export { defaultVectorQueryDescription } from './_tsup-dts-rollup.js';
22
+ export { defaultGraphRagDescription } from './_tsup-dts-rollup.js';