{"_id":"@anush008/bm42","_rev":"1-188d5696e0267b9cc8178652b6fb8a0a","name":"@anush008/bm42","description":"TS/JS implementation of Qdrant BM42","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.7":{"name":"@anush008/bm42","version":"0.0.7","license":"Apache-2.0","_id":"@anush008/bm42@0.0.7","maintainers":[{"name":"anush008","email":"anushshetty90@gmail.com"}],"homepage":"https://github.com/anush008/bm42-js#readme","bugs":{"url":"https://github.com/anush008/bm42-js/issues"},"ava":{"timeout":"3m"},"dist":{"shasum":"a1de0cdc7a3c9ff90e76bdba8e93df64a400ac74","tarball":"https://registry.npmjs.org/@anush008/bm42/-/bm42-0.0.7.tgz","fileCount":9,"integrity":"sha512-snPw6/2aqe3UHuuV1PZ2LVd6v5uuBMFafpISX/fhLMCimSOxAYEg/UZYmkNZsvTT3F1I71nKund+ffhL9PU45A==","signatures":[{"sig":"MEYCIQDMP00JVVf41BMUyDRPQBJS0HWFJ2qjcUTLhflla+GjawIhAN1ga/rRPGXelej49okIJriOUyPdzhC8q4Rxgkp5l5vf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26469},"main":"index.js","napi":{"name":"bm42","triples":{"additional":["aarch64-apple-darwin"]}},"types":"index.d.ts","engines":{"node":">= 10"},"gitHead":"15b02a39e21892ae26a7eb7e6c428cfa6b8f44e5","scripts":{"test":"ava","build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","universal":"napi universal","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"anush008","email":"anushshetty90@gmail.com"},"repository":{"url":"git+https://github.com/anush008/bm42-js.git","type":"git"},"_npmVersion":"10.7.0","description":"TS/JS implementation of Qdrant BM42","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"packageManager":"yarn@4.3.1","devDependencies":{"ava":"^6.0.1","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@anush008/bm42-darwin-x64":"0.0.7","@anush008/bm42-darwin-arm64":"0.0.7","@anush008/bm42-linux-x64-gnu":"0.0.7","@anush008/bm42-win32-x64-msvc":"0.0.7"},"_npmOperationalInternal":{"tmp":"tmp/bm42_0.0.7_1720356560730_0.4769668488578196","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"@anush008/bm42","version":"0.0.8","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/anush008/bm42-js.git"},"napi":{"name":"bm42","triples":{"additional":["aarch64-apple-darwin"]}},"license":"Apache-2.0","devDependencies":{"@napi-rs/cli":"^2.18.4","ava":"^6.0.1"},"ava":{"timeout":"3m"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm","test":"ava","universal":"napi universal","version":"napi version"},"packageManager":"yarn@4.3.1","description":"TS/JS implementation of Qdrant BM42","optionalDependencies":{"@anush008/bm42-win32-x64-msvc":"0.0.8","@anush008/bm42-darwin-x64":"0.0.8","@anush008/bm42-linux-x64-gnu":"0.0.8","@anush008/bm42-darwin-arm64":"0.0.8"},"_id":"@anush008/bm42@0.0.8","gitHead":"109e65e43982df95d2b9c82ef073b42d390650b4","bugs":{"url":"https://github.com/anush008/bm42-js/issues"},"homepage":"https://github.com/anush008/bm42-js#readme","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-tink85PwQZAOcvVAKh3601hQWNwmLM7ATOpOk5S9QsNB4DHS5XiGW4wmxC4UMQyEORLrOtksPOa6qL//eQz9KQ==","shasum":"7c11848cfcbf2313656dcea428611f7129646dfb","tarball":"https://registry.npmjs.org/@anush008/bm42/-/bm42-0.0.8.tgz","fileCount":9,"unpackedSize":26469,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPfYploRLIWgfXOG8WK40fTveTslhZm+juqnMrGhAq2AiEAgJz3X3+F87B/Ncx2rxGWKVoH6PDCMxmGHutaFgZDxuE="}]},"_npmUser":{"name":"anush008","email":"anushshetty90@gmail.com"},"directories":{},"maintainers":[{"name":"anush008","email":"anushshetty90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bm42_0.0.8_1720422451140_0.6601120842261814"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-07T12:49:20.601Z","modified":"2024-07-08T07:07:31.528Z","0.0.7":"2024-07-07T12:49:20.885Z","0.0.8":"2024-07-08T07:07:31.344Z"},"maintainers":[{"name":"anush008","email":"anushshetty90@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/anush008/bm42-js.git"},"license":"Apache-2.0","homepage":"https://github.com/anush008/bm42-js#readme","bugs":{"url":"https://github.com/anush008/bm42-js/issues"},"readme":"<div align=\"center\">\n  <h1><a href=\"https://crates.io/crates/bm42\">BM42-js ⚡️</a></h1>\n <h3>Typescript/NodeJS implementation of <a href=\"https://qdrant.tech/articles/bm42/\" target=\"_blank\">Qdrant BM42</a></h3>\n  <a href=\"https://www.npmjs.com/package/bm42\"><img src=\"https://img.shields.io/npm/v/bm42.svg\" alt=\"npmjs.org\"></a>\n  <a href=\"https://github.com/Anush008/bm42-js/blob/main/LICENSE\"><img src=\"https://img.shields.io/badge/license-apache-blue.svg\" alt=\"Apache Licensed\"></a>\n</div>\n\n## 🔍 Not looking for JS?\n\n- Python 🐍: [BM42 with FastEmbed](https://github.com/qdrant/fastembed)\n- Rust 🦀: [BM42-rs](https://github.com/Anush008/bm42-rs)\n\n## 📥 Installation\n\nRun the following command in your project directory:\n\n```bash\nnpm install @anush008/bm42\n```\n\n## Platform Support\n\nThis library uses Rust bindings of https://github.com/Anush008/bm42-rs. Works for the following architectures.\n\n- darwin-arm64\n- darwin-x64\n- linux-x64-gnu\n- win32-x64-msvc\n\n## 📖 Usage\n\n### Generating Sparse Embeddings\n\n```rust\nimport { BM42 } from \"@anush008/bm42\";\n\n// With default options\nlet bm42 = new BM42();\n\n// With custom options\nlet bm42 = new BM42({\n  alpha: 0.5,\n  showDownloadProgress: true,\n  // others\n});\n\nlet texts = [\n    \"It's a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.\",\n    \"We're not in Infinity; we're in the suburbs.\",\n    \"I was a thousand times more evil than thou!\",\n    \"History is merely a list of surprises... It can only prepare us to be surprised yet again.\",\n];\n\n// Generate embeddings for indexing\nlet doc_embeddings = bm42.embed(texts);\n\n// Generate embeddings for querying\nlet query_embeddings = bm42.queryEmbed(texts);\n```\n\n## 📄 LICENSE\n\nApache 2.0 © [2024](https://github.com/Anush008/bm42-js/blob/main/LICENSE)","readmeFilename":"README.md"}