█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Nomic Atlas Client

Nomic Atlas और Nomic Embed API के लिए Python SDK: अनस्ट्रक्चर्ड डेटा को embed, map, cluster और search करें

Embedding Models & Inferenceओपन सोर्स
ताज़ा
v3.9.0
अपडेट किया गया
11 नव॰ 2025
भाषा
Python
लाइसेंस
Apache-2.0
$pip install nomic

नया क्या है

v3.9.011 नव॰ 2025

The document client accepts more file types, and the package is built and published as a wheel.

संक्षेप में

Nomic Atlas Client क्या है?

Nomic Atlas Client Nomic Atlas और Nomic Embed API के लिए Python SDK: अनस्ट्रक्चर्ड डेटा को embed, map, cluster और search करें. यह Retrieval & Knowledge (RAG) टूल्स की Embedding Models & Inference श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

`nomic` पैकेज, Nomic के डेवलपर प्लेटफ़ॉर्म का आधिकारिक Python client है। यह दो सेवाओं का wrapper है: Nomic Atlas, जो अनस्ट्रक्चर्ड डेटा को एक्सप्लोर करने का होस्टेड प्लेटफ़ॉर्म है, और Nomic Embedding API, जो Nomic के अपने nomic-embed models की मदद से text और images को वेक्टर में बदलता है। पैकेज अपने मेटाडेटा में Apache 2.0 license घोषित करता है; Atlas स्वयं एक होस्टेड सेवा है, जिसके लिए Nomic account चाहिए।

Atlas map of arXiv articles as coloured dots grouped into labelled topic regions such as LLM Reasoning, Causal inference, Superconductivity and Black holes, with a topic legend
An Atlas map of a week of arXiv submissions, with topics labelled automaticallyNomic README ↗

Atlas की ओर से, आप `atlas.map_data` के ज़रिए embeddings या raw data अपलोड करते हैं और Atlas ब्राउज़र में एक इंटरैक्टिव map बनाता है: हर datapoint एक बिंदु होता है, जो semantic similarity के आधार पर जगह पाता है और अपने आप लेबल किए गए topics में समूहित होता है। Python में वापस आकर आप latent और दो-आयामी (two-dimensional) embeddings, हर depth पर topic assignments वाला pandas DataFrame, और vector search से मिले nearest-neighbour नतीजे निकाल सकते हैं। Atlas सैकड़ों से लेकर करोड़ों तक के points वाले datasets संभालता है, जो text, image, audio और video में फैले हो सकते हैं।

Embedding की ओर से, `embed.text` और `embed.image` nomic-embed-text-v1.5 और nomic-embed-vision-v1.5 जैसे models से vectors लौटाते हैं। Text calls में एक `task_type` (search_query, search_document, classification या clustering) दिया जाता है, Matryoshka-capable models के लिए वैकल्पिक `dimensionality` घटाई जा सकती है, और एक `inference_mode` होता है जो remotely चलता है, Embed4All के ज़रिए locally चलता है, या अपने आप चुनता है।

यह क्या करता है

  • एक `atlas.map_data` कॉल से embeddings या raw data के आधार पर साझा किया जा सकने वाला, ब्राउज़र-आधारित Atlas map बनाएं
  • ऑटोमैटिक topic modelling: हर datapoint को कई depth पर semantic topics में असाइन किया जाता है, जिसे pandas DataFrame के रूप में पढ़ा जा सकता है
  • किसी भी map के latent (high-dimensional) और projected (2D) embeddings डाउनलोड करें
  • किसी dataset के embeddings पर nearest-neighbour vector search, जो मिलते-जुलते records लौटाता है
  • Nomic Embedding API के ज़रिए text और image embeddings, task types, समायोज्य (adjustable) dimensionality और remote, local या dynamic inference के साथ
  • Atlas में text, image, video और audio datasets को टैग करें, साफ़ करें और duplicates हटाएं

शुरू करें

यह client PyPI से इंस्टॉल होता है और `nomic login` के ज़रिए आपके Nomic account से authenticate होता है।

Library इंस्टॉल करें

bashbash
pip install nomic

लॉग इन करें

Nomic account बनाने या उसमें साइन इन करने और access token पाने के लिए `nomic login` चलाएं, फिर लॉग इन पूरा करने के लिए token दें।

bashbash
nomic login
nomic login [token]

अपना पहला map बनाएं

Embeddings का एक सेट अपलोड करें, और Atlas आपके ब्राउज़र में उनका एक इंटरैक्टिव map बना देगा।

pythonpython
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)

Topics और embeddings वापस पढ़ें

हर map अपने topic assignments और projected व latent, दोनों embeddings उपलब्ध कराता है।

pythonpython
map = dataset.maps[0]

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

मिलते-जुलते datapoints खोजें

किसी datapoint के nearest neighbours खोजें और मिलते-जुलते records प्राप्त करें।

pythonpython
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)

Nomic Embed से text को embed करें

Embedding API को सीधे कॉल करें; `task_type` ऐसे सेट करें कि वह vectors के इस्तेमाल के तरीके से मेल खाए।

pythonpython
from nomic import embed

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

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • किसी बड़े text या image corpus को साफ़ करने या लेबल करने से पहले उसका visual overview पाना
Dense Atlas map of TikTok video metadata with topic labels such as Cats, Dogs, Taylor Swift, Weight Loss, Shopping and Amazon Finds
A historical TikTok dataset indexed on its metadata descriptions, clustered into topicsNomic README ↗
  • RAG या semantic search pipeline के लिए search_document और search_query embeddings बनाना
  • Scrape किए गए या user-generated data में topic clusters और near-duplicates ढूंढना
  • कोड न लिखने वाले teammates के साथ किसी dataset का explorable map साझा करना

How Nomic Atlas Client compares

Nomic Atlas Client alongside other open-source embedding models & inference tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Sentence Transformers★ 19.3kPython में टेक्स्ट embeddings की गणना करें, उन्हें प्रशिक्षित करें और rerank करें
OpenCLIP★ 14.3kimage-text embeddings को ट्रेन और चलाने के लिए CLIP का ओपन इम्प्लीमेंटेशन
PyTorch Metric Learning★ 6.3kPyTorch में embedding मॉडल ट्रेनिंग के लिए losses, miners और testers
EmbeddingGemma (Gemma)★ 5.9k308M मल्टीलिंगुअल एम्बेडिंग मॉडल, जो on-device चलने जितना छोटा है
Text Embeddings Inference (TEI)★ 5.2kतेज़ HTTP API के ज़रिए ओपन सोर्स embedding और reranking मॉडल सर्व करें
text2vec★ 5kचीनी या बहुभाषी टेक्स्ट को sentence embeddings में बदलें, ट्रेनिंग कोड के साथ
Infinity (Embeddings)★ 3kएम्बेडिंग, रीरैंकर, CLIP और ColPali मॉडल चलाने के लिए हाई-थ्रूपुट REST API
Nomic Atlas Client★ 1.9kNomic Atlas और Nomic Embed API के लिए Python SDK: अनस्ट्रक्चर्ड डेटा को embed, map, cluster और search करें