{"id":29867044,"url":"https://github.com/lmmx/polars-sbert","last_synced_at":"2026-08-13T13:31:40.810Z","repository":{"id":307284238,"uuid":"936353385","full_name":"lmmx/polars-sbert","owner":"lmmx","description":"A Polars plugin for embedding data with Sentence Transformers","archived":false,"fork":false,"pushed_at":"2025-02-21T00:00:41.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T06:22:51.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmmx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-21T00:00:33.000Z","updated_at":"2025-02-21T01:56:57.000Z","dependencies_parsed_at":"2025-07-30T13:50:25.742Z","dependency_job_id":"011ccb6d-6a31-45a8-a512-490f526ce69a","html_url":"https://github.com/lmmx/polars-sbert","commit_stats":null,"previous_names":["lmmx/polars-sbert"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lmmx/polars-sbert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmmx%2Fpolars-sbert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmmx%2Fpolars-sbert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmmx%2Fpolars-sbert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmmx%2Fpolars-sbert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmmx","download_url":"https://codeload.github.com/lmmx/polars-sbert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmmx%2Fpolars-sbert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36610054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-13T02:00:06.325Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-30T13:02:05.213Z","updated_at":"2026-08-13T13:31:40.805Z","avatar_url":"https://github.com/lmmx.png","language":"Python","funding_links":[],"categories":["Libraries/Packages/Scripts"],"sub_categories":["Polars plugins"],"readme":"# Polars SBERT\n\nA Polars plugin for using embeddings with Sentence Transformers (SBERT).\n\n## Installation\n\nInstall the full Polars extra and CUDA 12.4-based PyTorch (`cu124`):\n```bash\npip install \"polars-sentence-transformers[polars,cu124]\"\n```\n\nOn older CPUs install `polars-lts-cpu` \n\n```bash\npip install polars-sentence-transformers[polars-lts-cpu]\n```\n\nand for CPU-only PyTorch use the `cpu-only` extra:\n```bash\npip install polars-sentence-transformers[cpu-only]\n```\n\n## Features\n\n- Embed from a DataFrame by specifying the source column(s)\n- Re-order/filter rows by semantic similarity to a query\n- Efficiently reuse loaded models via a global registry (no repeated model loads)\n\n## Usage\n\nTBD\n\n## Demo\n\nSee [demo.py](https://github.com/lmmx/polars-sbert/tree/master/demo.py)\n\n```\nCorpus:\nshape: (3, 2)\n┌───────────────────────────┬───────────────────────────────┐\n│ title                     ┆ body                          │\n│ ---                       ┆ ---                           │\n│ str                       ┆ str                           │\n╞═══════════════════════════╪═══════════════════════════════╡\n│ Living With Normal Pets   ┆ Pet owner's manual            │\n│ My Cat Wants To Murder Me ┆ Scary stories about evil cats │\n│ A Guide to Walking Dogs   ┆ Learning to lead              │\n└───────────────────────────┴───────────────────────────────┘\nEmbedded title and body columns with TaylorAI/gte-tiny\nRetrieve top k=None rows with query 'horror stories'\nshape: (3, 4)\n┌───────────────────────────┬────────────────────────────┬────────────────────────────┬────────────┐\n│ title                     ┆ body                       ┆ embedding                  ┆ similarity │\n│ ---                       ┆ ---                        ┆ ---                        ┆ ---        │\n│ str                       ┆ str                        ┆ list[f32]                  ┆ f64        │\n╞═══════════════════════════╪════════════════════════════╪════════════════════════════╪════════════╡\n│ My Cat Wants To Murder Me ┆ Scary stories about evil   ┆ [-0.1195, -0.289812, …     ┆ 0.858065   │\n│                           ┆ cats                       ┆ 0.14939…                   ┆            │\n│ Living With Normal Pets   ┆ Pet owner's manual         ┆ [-0.168101, -0.158491, …   ┆ 0.754353   │\n│                           ┆                            ┆ 0.488…                     ┆            │\n│ A Guide to Walking Dogs   ┆ Learning to lead           ┆ [-0.388657, -0.37131, …    ┆ 0.727875   │\n│                           ┆                            ┆ 0.6422…                    ┆            │\n└───────────────────────────┴────────────────────────────┴────────────────────────────┴────────────┘\nCurrently loaded models: ['TaylorAI/gte-tiny']\nCleared model registry\nCurrently loaded models: []\n```\n\n## Contributing\n\nFeel free to open issues or submit pull requests for improvements or bug fixes.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmmx%2Fpolars-sbert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmmx%2Fpolars-sbert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmmx%2Fpolars-sbert/lists"}