{"_id":"@23blocks/block-rag","_rev":"9-cbd0362242c4e0fbecf7b7a24e3542e2","name":"@23blocks/block-rag","dist-tags":{"latest":"2.3.0"},"versions":{"2.0.0":{"name":"@23blocks/block-rag","version":"2.0.0","keywords":["23blocks","sdk","rag","vector-search","document-processing","image-search","product-identification"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.0.0","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"e45f16bbdf6234742b98a123213da4e4a9323c40","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.0.0.tgz","fileCount":38,"integrity":"sha512-mKJXRi/R08PRQb5WPqRR6yhd0qw/X38HNfv/YVBFnVFKdZbarGy8b+lj0NN2RmVUUDAW+TTzMJ/RcgwGuhLQHg==","signatures":[{"sig":"MEYCIQCmkSFFlNE//fK9V10w4XReh8frVl60UJitZkBEcH9YLQIhALyLOjIJPxfHi0uyqHBJu9AVOLgf8HOclfpodl7aAE0I","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69285},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"b37182ee229ea2807162ed869526c7f3d2ac78c6","_npmUser":{"name":"juan.pelaez","email":"jpelaez@23blocks.com"},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.2.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"*","@23blocks/jsonapi-codec":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.0.0_1772585471618_0.9073130618526417","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@23blocks/block-rag","version":"2.0.1","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.0.1","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"efd71c2fd6d8c5f25e5cfbc2b056403507e185f1","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.0.1.tgz","fileCount":39,"integrity":"sha512-JZGQd2CeuXCwL04k5ISXLDc/0KlQTQ4sKW08RM6nw2klgAAFEl1nuvcj5kXUrCqcA+7LlXIFG3Eu9HnQrCvTQA==","signatures":[{"sig":"MEUCIQCLjyi6vebJ1MaP3BcbD7wn1yWobroqLmUF/IVgOGDLWQIgA0Cpv/UAGNoKusWfqv6Ng0pQ2cMhTklteY6rx/4nQzc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74780},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"4ee7a7d29002b5a1fb926ad62689044b0f52fbb9","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.11.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"*","@23blocks/jsonapi-codec":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.0.1_1772585993653_0.19930503018303947","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@23blocks/block-rag","version":"2.0.2","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.0.2","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"c0cffe56336dbdc1706bde2a50b3b5e621a95358","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.0.2.tgz","fileCount":39,"integrity":"sha512-/K/Ix7qpC+D0/24iRqSEIQ6E9/L6LOwnAZiuOsluRpOEjUQYHOnRTpeWGNXICnSxgkG/aEwu+XagguTWo/MqLQ==","signatures":[{"sig":"MEYCIQCLZCOWzGLy6k7dV5h+PDfEGbLGjM+lrTdGjG67/uAorQIhAOcqJfWDzuOh4zU9aSmBY/q0kZa6r81ZX9AHn8L00SrA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74558},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"f743483fe8ddf6414f84f1c296bb3ac188ba812e","_npmUser":{"name":"juan.pelaez","email":"jpelaez@23blocks.com"},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.2.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"*","@23blocks/jsonapi-codec":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.0.2_1772586269919_0.6845672061318917","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@23blocks/block-rag","version":"2.1.0","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.1.0","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"ae66e6f5f3f9557f041aab4a0d44240335250f60","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.1.0.tgz","fileCount":67,"integrity":"sha512-YQrfpqIN/xnZKYf+ajFs1KLMSiql8vROEueZz7reQTDyz9moNqPvd7weNhETvzxo3kuGPO9tMT5qVw3cKkJfDw==","signatures":[{"sig":"MEQCICuE2eoPG+LKeMPlGNLRUxFbYCxLegFEDdk74EsIQBjbAiBgK2dn/bTpdR+XUwbz/o1+9l0kKewsRdcP61aquFqEtQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":144012},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"0c1bfebe90e47dcbd12b6171bc2deb8c3ddb8710","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.11.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"*","@23blocks/jsonapi-codec":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.1.0_1773018442394_0.9354740788860385","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"@23blocks/block-rag","version":"2.1.1","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.1.1","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"369ce0fe6023ced1cd7f27be59cb89d148a019e4","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.1.1.tgz","fileCount":67,"integrity":"sha512-WKQ9tbMOipdAwg40KcB8Y0jXYFmCmLyT5HBNEaGx6E2RbxboUDWGmmkBe8Cr/ZL/s6X8xXGUlRYEFvD2Km3KYg==","signatures":[{"sig":"MEYCIQDu4vlKjIAIlTusyNMnY0S4akjZEmQXewT9Wq3b4QxGdgIhAMnd+0StWhhs4YI4/iX2I3UWcSuCh4SFDLnmLz/ktoNp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":144149},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"73aca3e1bfe578e888c11eb92e2706a8f388df53","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.15.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"*","@23blocks/jsonapi-codec":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.1.1_1779860804473_0.8822431655913723","host":"s3://npm-registry-packages-npm-production"}},"2.1.2":{"name":"@23blocks/block-rag","version":"2.1.2","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.1.2","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"31bd7bfcc95d8d37f06a9324b4c9bdf50e115736","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.1.2.tgz","fileCount":67,"integrity":"sha512-3pQTxDnJ2mifr1SkPsC3mT4P+P4Od+CprlTGqr89wTYp/OIspj4l6gbmICeAkFuVlQGVvXF8IzX5XBhyXY41ZA==","signatures":[{"sig":"MEYCIQCFEPwpMTr/pd8ZBE2tldIae1FVH8z893nbIGY/4vYCKAIhAPrTD4OqqHSC8vqtJz6rilaj3zoE47cxxZRDG06J0tSE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":144484},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"fa982a3f9eb097497baed47ca3f7baa46a3b181e","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.15.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"^2.4.0","@23blocks/jsonapi-codec":"^3.3.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.1.2_1779909140555_0.25713103837580564","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"@23blocks/block-rag","version":"2.1.3","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.1.3","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"877c304d721a442388cb37b2571e71188b4db1e4","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.1.3.tgz","fileCount":67,"integrity":"sha512-jpY7IcTp2eJbLw+FNuf8CU6GUTvYAywbVQae/B3o2uTqfjWPEhPGNFFFPvX+LYRHSxU26lcCASUcrTYbX2E3Dg==","signatures":[{"sig":"MEUCIBuMOvxIlnJezMSiiHrVaYPC4F2fHhDBUvkYDLo6zDTEAiEArXEf+q3YqT4RJvYY+8ilv09uypzuBfzBzFCUH1YnM90=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":144621},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"be21b06b00f5e8aee1f8555e0c8ce392d5b4cbb1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.16.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"^2.4.0","@23blocks/jsonapi-codec":"^3.3.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.1.3_1779939917570_0.8857314137487307","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@23blocks/block-rag","version":"2.2.0","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","_id":"@23blocks/block-rag@2.2.0","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"nx":{"targets":{"build":{"options":{"main":"packages/block-rag/src/index.ts","format":["esm"],"compiler":"swc","tsConfig":"packages/block-rag/tsconfig.lib.json","outputPath":"packages/block-rag/dist"},"outputs":["{options.outputPath}"],"executor":"@nx/rollup:rollup"}},"sourceRoot":"packages/block-rag/src"},"dist":{"shasum":"88b9e5ed7ccd0ffe5b2a778910c175e10ab36056","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.2.0.tgz","fileCount":67,"integrity":"sha512-gpxdElQVQqf+q5MlAul1nxifFZm4+TY5bICpGttp/YZoO0EcteQsC/0y3jTis20TTf4yxaOhU+hX9gl9OFeSqA==","signatures":[{"sig":"MEUCIExg4zHjDcg24IURfBBgwlHPxRllgY2Jbnu9yoqOzMj/AiEAquUBQNxRwQU9dF3TPmefrFbW867tFaHSBRJFpnc14vw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":148691},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"gitHead":"73813f56d96852c50009ad490833ed657e40abee","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"repository":{"url":"git+https://github.com/23blocks-OS/frontend-sdk.git","type":"git","directory":"packages/block-rag"},"_npmVersion":"11.17.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@swc/helpers":"~0.5.11","@23blocks/contracts":"^2.4.0","@23blocks/jsonapi-codec":"^3.3.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/block-rag_2.2.0_1781890034450_0.469786767466835","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@23blocks/block-rag","version":"2.3.0","description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","license":"MIT","author":{"name":"23blocks","email":"hello@23blocks.com"},"repository":{"type":"git","url":"git+https://github.com/23blocks-OS/frontend-sdk.git","directory":"packages/block-rag"},"homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"type":"module","main":"./dist/index.esm.js","module":"./dist/index.esm.js","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js"}},"nx":{"sourceRoot":"packages/block-rag/src","targets":{"build":{"executor":"@nx/rollup:rollup","outputs":["{options.outputPath}"],"options":{"outputPath":"packages/block-rag/dist","main":"packages/block-rag/src/index.ts","tsConfig":"packages/block-rag/tsconfig.lib.json","compiler":"swc","format":["esm"]}}}},"dependencies":{"@23blocks/contracts":"^2.4.0","@23blocks/jsonapi-codec":"^3.3.3","@swc/helpers":"~0.5.11"},"gitHead":"357ea4921d9a938c9c3e249da6cff2cfabedd3e2","_id":"@23blocks/block-rag@2.3.0","_nodeVersion":"20.20.2","_npmVersion":"11.17.0","dist":{"integrity":"sha512-croeEm2p7X1uNGIrdhBNOA2c8wtrFtRuAOqq0zejpQ8Xq/1psPekb3hHmu0+scqiLSh9EFKL8R7vk9wwPcYloA==","shasum":"7d41aaf47f7d6d40e5376d5a2c233a84f8c906f4","tarball":"https://registry.npmjs.org/@23blocks/block-rag/-/block-rag-2.3.0.tgz","fileCount":67,"unpackedSize":150150,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@23blocks%2fblock-rag@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCq593Ca+AKMtxEGjg+mwPodU2RcIDKF3hqZWHWvurVxQIhALNCS/BDMRUZ+Ok4oceFnbQMwOP0yMrFkbDgTiNnXhL0"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e5e6095-67b2-4112-a558-fd15057ac057"}},"directories":{},"maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/block-rag_2.3.0_1781898346007_0.4881792439148773"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-04T00:51:11.474Z","modified":"2026-06-19T19:45:46.449Z","2.0.0":"2026-03-04T00:51:11.781Z","2.0.1":"2026-03-04T00:59:53.807Z","2.0.2":"2026-03-04T01:04:30.064Z","2.1.0":"2026-03-09T01:07:22.553Z","2.1.1":"2026-05-27T05:46:44.660Z","2.1.2":"2026-05-27T19:12:20.771Z","2.1.3":"2026-05-28T03:45:17.743Z","2.2.0":"2026-06-19T17:27:14.598Z","2.3.0":"2026-06-19T19:45:46.142Z"},"bugs":{"url":"https://github.com/23blocks-OS/frontend-sdk/issues"},"author":{"name":"23blocks","email":"hello@23blocks.com"},"license":"MIT","homepage":"https://github.com/23blocks-OS/frontend-sdk/tree/main/packages/block-rag","keywords":["23blocks","sdk","rag","retrieval-augmented-generation","vector-search","semantic-search","document-processing","embeddings","image-search","product-identification","ocr","ai","nlp","typescript","jsonapi"],"repository":{"type":"git","url":"git+https://github.com/23blocks-OS/frontend-sdk.git","directory":"packages/block-rag"},"description":"RAG block for 23blocks SDK - vector search, document processing, image search, product identification","maintainers":[{"name":"juan.pelaez","email":"jpelaez@23blocks.com"}],"readme":"# @23blocks/block-rag\n\nTypeScript SDK for the 23blocks RAG (Retrieval-Augmented Generation) API. Provides vector-based document processing, semantic search, image search, and product identification.\n\n## Installation\n\n```bash\nnpm install @23blocks/block-rag\n```\n\n## Quick Start\n\n```typescript\nimport { createRagBlock } from '@23blocks/block-rag';\nimport { createHttpTransport } from '@23blocks/transport-http';\n\nconst transport = createHttpTransport({\n  baseUrl: 'https://rag.your-domain.com',\n  headers: () => ({\n    Authorization: `Bearer ${getToken()}`,\n    'x-api-key': 'your-api-key',\n  }),\n});\n\nconst rag = createRagBlock(transport, { apiKey: 'your-api-key' });\n```\n\n## Services\n\n### Scope — Document Processing & Querying\n\nProcess files and query documents within scoped contexts (entities, accounts, contacts, users, storage, products).\n\n```typescript\n// Process a file for vector indexing\nconst job = await rag.scope.process('entities', entityId, fileId, 'ocr_text');\n\n// Query documents with semantic search\nconst { results, meta } = await rag.scope.query('entities', entityId, {\n  query: 'What is the quarterly revenue?',\n  minScore: 0.7,\n  page: 1,\n  records: 10,\n});\n\n// Get file metadata\nconst metadata = await rag.scope.getFileMetadata('entities', entityId, fileId);\n```\n\n**Processing modes:** `ocr_text` | `face_similarity` | `visual_general`\n\n**Scopes:** `entities` | `accounts` | `contacts` | `users` | `storage` | `products`\n\n### Files — Generic File Processing\n\n```typescript\nconst job = await rag.files.process('file-unique-id', {\n  fileUrl: 'https://storage.example.com/doc.pdf',\n  fileType: 'pdf',\n});\n```\n\n### Jobs — Processing Status\n\nTrack async document processing jobs with detailed progress.\n\n```typescript\nconst status = await rag.jobs.get(job.jobId);\n// status.progressPercentage, status.totalChunks, status.processingTimeSeconds, etc.\n```\n\n### Images — Upload & Search\n\nUpload images for vector indexing and search by text, image URL, or base64.\n\n```typescript\n// Upload an image\nconst result = await rag.images.upload({\n  file: imageBlob,\n  entityType: 'product',\n  entityId: 'prod-123',\n  checkDuplicates: true,\n});\n\n// Search images (text, image URL, or base64)\nconst results = await rag.images.search({\n  query: {\n    text: 'red sneakers',\n    limit: 10,\n    similarityThreshold: 0.8,\n  },\n});\n```\n\n### Products — Identification & Search\n\nIdentify products from images and search the product catalog.\n\n```typescript\n// Identify a product from a photo\nconst match = await rag.products.identify({\n  file: photoBlob,\n  confidenceThreshold: 0.85,\n  categoryHint: 'electronics',\n});\n// match.identified, match.confidence, match.productMetadata\n\n// Search products\nconst results = await rag.products.search({\n  query: { text: 'wireless headphones', limit: 5 },\n});\n```\n\n## Framework Integration\n\n### React\n\n```tsx\nimport { Blocks23Provider, useRagBlock } from '@23blocks/react';\n\nfunction App() {\n  return (\n    <Blocks23Provider\n      apiKey=\"your-key\"\n      rag={{ apiKey: 'your-key', baseUrl: 'https://rag.example.com' }}\n    >\n      <SearchComponent />\n    </Blocks23Provider>\n  );\n}\n\nfunction SearchComponent() {\n  const rag = useRagBlock();\n  // rag.scope.query(...), rag.images.search(...), etc.\n}\n```\n\n### Angular\n\n```typescript\nimport { provideBlocks23 } from '@23blocks/angular';\n\n// app.config.ts\nexport const appConfig = {\n  providers: [\n    provideBlocks23({\n      apiKey: 'your-key',\n      urls: { rag: 'https://rag.example.com' },\n    }),\n  ],\n};\n\n// component.ts\nimport { RagService } from '@23blocks/angular';\n\n@Component({ ... })\nexport class SearchComponent {\n  private rag = inject(RagService);\n\n  async search(query: string) {\n    const results = await this.rag.scope.query('entities', entityId, { query });\n  }\n}\n```\n\n### Vanilla (SDK)\n\n```typescript\nimport { rag } from '@23blocks/sdk';\n// rag.createRagBlock, rag.RagBlock, rag.RagBlockConfig, etc.\n```\n\n## API Reference\n\n| Service | Method | Endpoint |\n|---------|--------|----------|\n| `scope` | `process(scope, scopeId, fileId, mode?)` | `POST /{scope}/{scopeId}/files/{fileId}/process` |\n| `scope` | `getFileMetadata(scope, scopeId, fileId)` | `GET /{scope}/{scopeId}/files/{fileId}` |\n| `scope` | `query(scope, scopeId, data)` | `POST /{scope}/{scopeId}/query` |\n| `files` | `process(fileUniqueId, data?)` | `POST /files/{fileUniqueId}/process` |\n| `jobs` | `get(jobId)` | `GET /jobs/{jobId}` |\n| `images` | `upload(data)` | `POST /images/upload` |\n| `images` | `search(data)` | `POST /images/search` |\n| `products` | `identify(data)` | `POST /products/identify` |\n| `products` | `search(data)` | `POST /products/search` |\n| — | `health()` | `GET /health` |\n\n## Types\n\nAll types are exported from the package:\n\n```typescript\nimport type {\n  RagBlock, RagBlockConfig,\n  RagScope, ProcessingMode,\n  QueryRequest, QueryResponse, QueryResultChunk, QueryMeta,\n  ProcessResponse, FileMetadata,\n  JobStatus,\n  ImageUploadRequest, ImageUploadResponse, ImageSearchRequest,\n  UnifiedSearchQuery,\n  ProductIdentifyRequest, ProductIdentifyResponse, ProductSearchRequest,\n} from '@23blocks/block-rag';\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}