# Nomic Atlas Client

> Python SDK for Nomic Atlas and the Nomic Embed API: embed, map, cluster and search unstructured data

- Category: Retrieval & Knowledge (RAG) / Embedding Models & Inference
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/nomic-ai/nomic
- Website: https://atlas.nomic.ai
- Canonical page: https://ai-tldr.dev/tools/nomic-atlas/
- Updated: 2025-11-11

## In short

Nomic Atlas Client is Python SDK for Nomic Atlas and the Nomic Embed API: embed, map, cluster and search unstructured data. It wraps two services: Nomic Atlas, a hosted platform for exploring unstructured data, and the Nomic Embedding API, which turns text and images into vectors with Nomic's own nomic-embed models. It sits in the Embedding Models & Inference category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Python and licensed Apache-2.0.

## Overview

The `nomic` package is the official Python client for Nomic's developer platform. It wraps two services: Nomic Atlas, a hosted platform for exploring unstructured data, and the Nomic Embedding API, which turns text and images into vectors with Nomic's own nomic-embed models. The package declares the Apache 2.0 license in its metadata; Atlas itself is a hosted service that needs a Nomic account.

On the Atlas side, you upload embeddings or raw data with `atlas.map_data` and Atlas builds an interactive map in the browser: every datapoint is a dot placed by semantic similarity, grouped into automatically labelled topics. Back in Python you can pull the latent and two-dimensional embeddings, a pandas DataFrame of topic assignments at each depth, and nearest-neighbour results from vector search. Atlas handles datasets from hundreds to tens of millions of points, across text, image, audio and video.

On the embedding side, `embed.text` and `embed.image` return vectors from models such as nomic-embed-text-v1.5 and nomic-embed-vision-v1.5. Text calls take a `task_type` (search_query, search_document, classification or clustering), an optional reduced `dimensionality` for Matryoshka-capable models, and an `inference_mode` that runs remotely, locally through Embed4All, or picks automatically.

## What it does

- Build a shareable, browser-based Atlas map from embeddings or raw data with one `atlas.map_data` call
- Automatic topic modelling: each datapoint is assigned to semantic topics at several depths, readable as a pandas DataFrame
- Download latent (high-dimensional) and projected (2D) embeddings for any map
- Nearest-neighbour vector search over a dataset's embeddings, returning the matching records
- Text and image embeddings via the Nomic Embedding API, with task types, adjustable dimensionality and remote, local or dynamic inference
- Tag, clean and deduplicate text, image, video and audio datasets in Atlas

## Getting started

The client installs from PyPI and authenticates against your Nomic account via `nomic login`.

1. Install the library

```bash
pip install nomic
```

2. Log in

   Run `nomic login` to create or sign in to your Nomic account and get an access token, then pass the token to finish logging in.

```bash
nomic login
nomic login [token]
```

3. Make your first map

   Upload a set of embeddings and Atlas builds an interactive map of them in your browser.

```python
from nomic import atlas
import numpy as np

# Randomly generate a set of 10,000 high-dimensional embeddings
num_embeddings = 10000
embeddings = np.random.rand(num_embeddings, 256)

# Create Atlas project
dataset = atlas.map_data(embeddings=embeddings)

print(dataset)
```

4. Read topics and embeddings back

   Each map exposes its topic assignments and both the projected and latent embeddings.

```python
map = dataset.maps[0]

topic_df = map.topics.df
projected_embeddings = map.embeddings.projected
latent_embeddings = map.embeddings.latent
```

5. Search for similar datapoints

   Find the nearest neighbours of a datapoint and fetch the matching records.

```python
with dataset.wait_for_dataset_lock():
  neighbors, _ = map.embeddings.vector_search(ids=['my_query_point'], k=5)

similar_datapoints = dataset.get_data(ids=neighbors[0])
print(similar_datapoints)
```

6. Embed text with Nomic Embed

   Call the Embedding API directly; set `task_type` to match how the vectors will be used.

```python
from nomic import embed

output = embed.text(
    texts=['Nomic Embedding API', '#keepAIOpen'],
    model='nomic-embed-text-v1.5',
    task_type='search_document',
)
print(output)
```

## When to use it

- Getting a visual overview of a large text or image corpus before cleaning or labelling it
- Generating search_document and search_query embeddings for a RAG or semantic search pipeline
- Finding topic clusters and near-duplicates in scraped or user-generated data
- Sharing an explorable map of a dataset with teammates who do not write code

## Version history

- 2025-11-11 v3.9.0: The document client accepts more file types, and the package is built and published as a wheel.
