> 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/ko/sdks/embedding-spaces.md).

# 임베딩 공간

Python SDK로 CLIP 등 자체 모델의 벡터를 저장할 임베딩 공간을 만들고 관리하는 방법을 설명합니다. 차원 제한, 검색 인덱스 상태, 필드를 다룹니다.

임베딩 공간은 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>

[벡터 업서트와 검색](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/upsert-and-search-vectors.md) · [패턴: 임베딩 검색](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/pattern-custom-embedding-pipeline.md) · [CLI: 임베딩](https://docs.unitlab.ai/api-sdk-cli/ko/clis/cli-embedding-spaces.md)
