# API Cửa hàng Vector

Các API Lưu Trữ Vector cho phép bạn tạo, quản lý và tìm kiếm các lưu trữ vector trong Rememberizer. Các lưu trữ vector cho phép bạn lưu trữ và truy xuất tài liệu bằng cách sử dụng tìm kiếm tương đồng ngữ nghĩa.

## Các Điểm Cuối Lưu Trữ Vector Có Sẵn

### Các Điểm Cuối Quản Lý

* [Lấy thông tin của kho vector](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/get-vector-stores-information.md)
* [Lấy danh sách tài liệu trong một Kho Vector](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/get-a-list-of-documents-in-a-vector-store.md)
* [Lấy thông tin của một tài liệu](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/get-the-information-of-a-document.md)

### Các thao tác tài liệu

* [Thêm tài liệu văn bản mới vào Kho Vector](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/add-new-text-document-to-a-vector-store.md)
* [Tải tệp lên Kho Vector](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/upload-files-to-a-vector-store.md)
* [Cập nhật nội dung tệp trong Kho Vector](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/update-files-content-in-a-vector-store.md)
* [Xóa một tài liệu trong Kho Vector](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/remove-a-document-in-vector-store.md)

### Các hoạt động tìm kiếm

* [Tìm kiếm tài liệu Vector Store theo sự tương đồng ngữ nghĩa](/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store/search-for-vector-store-documents-by-semantic-similarity.md)

## Tạo một Cửa Hàng Vector

Để tạo một Cửa Hàng Vector mới, sử dụng điểm cuối sau:

```
POST /api/v1/vector-stores/
```

### Thân bài yêu cầu

```json
{
  "name": "Tên cửa hàng",
  "description": "Mô tả cửa hàng",
  "embedding_model": "sentence-transformers/all-mpnet-base-v2",
  "indexing_algorithm": "ivfflat",
  "vector_dimension": 128,
  "search_metric": "cosine_distance"
}
```

### Phản hồi

```json
{
  "id": "store_id",
  "name": "Tên cửa hàng Vector",
  "description": "Mô tả cửa hàng",
  "created": "2023-05-01T00:00:00Z",
  "modified": "2023-05-01T00:00:00Z"
}
```

## Cấu Hình Lưu Trữ Vector

Để lấy các cấu hình có sẵn cho lưu trữ vector, sử dụng:

```
GET /api/v1/vector-stores/configs
```

Điều này sẽ trả về các mô hình nhúng có sẵn, thuật toán lập chỉ mục và các chỉ số tìm kiếm có thể được sử dụng khi tạo hoặc cấu hình lưu trữ vector.

## Xác thực

Tất cả các điểm cuối Vector Store đều yêu cầu xác thực bằng cách sử dụng một trong hai phương thức:

* Mã thông báo JWT cho các thao tác quản lý
* Khóa API cho các thao tác tài liệu và tìm kiếm


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rememberizer.ai/vi/tai-nguyen-cho-nha-phat-trien/api-docs/vector-store.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
