Skip to main content

A tool for visualizing embeddings

Project description

Embedding Atlas

A Python package that provides a command line tool to visualize a dataset with embeddings. It also includes a Jupyter widget and a Streamlit widget.

Installation

pip install embedding-atlas

and then launch the command line tool:

embedding-atlas [OPTIONS] INPUTS...

Loading Data

You can load your data in two ways: locally or from Hugging Face.

Loading Local Data

To get started with your own data, run:

embedding-atlas path_to_dataset.parquet

Loading Hugging Face Data

You can instead load datasets from Hugging Face:

embedding-atlas huggingface_org/dataset_name

Visualizing Embedding Projections

To visual embedding projections, pre-compute the X and Y coordinates, and specify the column names with --x and --y, such as:

embedding-atlas path_to_dataset.parquet --x projection_x --y projection_y

You may use the SentenceTransformers package to compute high-dimensional embeddings from text data, and then use the UMAP package to compute 2D projections.

You may also specify a column for pre-computed nearest neighbors:

embedding-atlas path_to_dataset.parquet --x projection_x --y projection_y --neighbors neighbors

The neighbors column should have values in the following format: {"ids": [id1, id2, ...], "distances": [d1, d2, ...]}. If this column is specified, you'll be able to see nearest neighbors for a selected point in the tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

embedding_atlas-0.7.1-py3-none-any.whl (19.2 MB view details)

Uploaded Python 3

File details

Details for the file embedding_atlas-0.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for embedding_atlas-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c715493a721171265327873cc788bedeb95e64b859747df77ddf86b9204221
MD5 952072c4d3990add70781cace4c4f3ad
BLAKE2b-256 ba828af95d1e2cc99fed2d71d75d5b7d7326e5cd868cb880bd52ec703b4c296b

See more details on using hashes here.

Provenance

The following attestation bundles were made for embedding_atlas-0.7.1-py3-none-any.whl:

Publisher: ci.yml on apple/embedding-atlas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page