> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/hi/sdks/embedding-spaces.md).

# Embedding spaces

Python SDK से अपने मॉडल (जैसे CLIP) के वेक्टर के लिए embedding space बनाएँ और प्रबंधित करें, ताकि मिलते-जुलते फ़्रेम और डुप्लिकेट खोज सकें।

Embedding space लाइब्रेरी फ़ाइलों के लिए आपके अपने मॉडल, जैसे CLIP या किसी रोबोट-पॉलिसी एन्कोडर, के वेक्टर सेव करता है। इसका इस्तेमाल मिलते-जुलते फ़्रेम, लगभग-डुप्लिकेट या दुर्लभ स्थितियाँ खोजने के लिए करें।

```python
space = client.embedding_spaces.create("clip-vit-b32", dimensions=512, model_name="openai/clip-vit-base-patch32")
print(space.id, space.dimensions, space.ann_index_status)

spaces = client.embedding_spaces.list()
space = client.embedding_spaces.get("SPACE_ID")
space.delete()
```

| सेटिंग                | सीमा                                                    |
| --------------------- | ------------------------------------------------------- |
| `name`                | अधिकतम 100 अक्षर                                        |
| `dimensions`          | 1 से 4,096। स्पेस के हर वेक्टर की लंबाई यही होनी चाहिए। |
| प्रति वर्कस्पेस स्पेस | डिफ़ॉल्ट रूप से 32                                      |

## फ़ील्ड <a href="#fields" id="fields"></a>

| फ़ील्ड                                   | अर्थ                                           |
| ---------------------------------------- | ---------------------------------------------- |
| `id`, `name`, `dimensions`, `model_name` | पहचान                                          |
| `ann_index_status`                       | सर्च इंडेक्स की स्थिति                         |
| `vector_search_supported`                | इस स्पेस के लिए `search()` काम करता है या नहीं |

इंडेक्स बनते समय सर्च HTTP 409 लौटाता है। थोड़ी देर बाद दोबारा कोशिश करें।

## संबंधित पेज <a href="#related" id="related"></a>

[वेक्टर upsert और सर्च](https://docs.unitlab.ai/api-sdk-cli/hi/sdks/upsert-and-search-vectors.md) · [पैटर्न: embedding सर्च](https://docs.unitlab.ai/api-sdk-cli/hi/sdks/pattern-custom-embedding-pipeline.md) · [CLI: embeddings](https://docs.unitlab.ai/api-sdk-cli/hi/clis/cli-embedding-spaces.md)
