Change keys of an embedding configuration's settings (JSON Merge Patch on config).
PATCH/api/v1/embedding-configs/{embedding_config_id}settings:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Sends only the keys to change: a key sent replaces that key's value, a key sent as null returns to its default, and every other stored key is kept. Turning on a generate_* switch (or resetting one whose default is on) makes the Portal embed every document with no embedding yet, which can be paid usage for the whole corpus. The embedding model is never changed here. Needs Edit Clustering Embedding Configs.
| スコープ | settings:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | update_embedding_config |
| Portal の権限 | edit_clustering_embedding_configs |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
embedding_config_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | EmbeddingConfigPatchInput |
application/merge-patch+json | EmbeddingConfigPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json EmbeddingConfig または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
EmbeddingConfig
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
config | object | 必須 | The settings object. A credential key appears as has_<key>, never with its value. |
database_type | string | 必須 | |
datasource | string | 必須 | |
effective_switches | EmbeddingSwitches または null | 必須 | What the embedding sweep does today; null for a configuration that is not the document one. |
elastic_query_string | string または null | 必須 | |
embedding_config_id | string | 必須 | |
embedding_model | string | 必須 | |
field_name | string | 必須 | |
is_document | boolean | 必須 | True for the document configuration the embedding sweep reads. |
metadata_columns | string の配列 | 必須 | |
name | string | 必須 | |
type | string | 必須 |
EmbeddingConfigPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
config | EmbeddingConfigPatchValueInput または null | 任意 | The settings keys to change. |
database_type | string または null | 任意 | |
datasource | string または null | 任意 | |
effective_switches | object または null | 任意 | |
elastic_query_string | string または null | 任意 | |
embedding_config_id | string または null | 任意 | |
embedding_model | string または null | 任意 | |
field_name | string または null | 任意 | |
is_document | boolean または null | 任意 | |
metadata_columns | string の配列 または null | 任意 | |
name | string または null | 任意 | |
type | string または null | 任意 |
EmbeddingConfigPatchValueInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
count_vectorizer_config | object または null | 任意 | |
generate_embeddings | boolean または null | 任意 | |
generate_image_embeddings | boolean または null | 任意 | |
generate_metadata_embeddings | boolean または null | 任意 | |
hbdscan_config | object または null | 任意 | |
language | string または null | 任意 | |
lemmatization_config | object または null | 任意 | |
recreate_embeddings | boolean または null | 任意 | |
recreate_raw_content | boolean または null | 任意 | |
reduce_outliers | boolean または null | 任意 | |
representation_model | string または null | 任意 | |
rerank | object または null | 任意 | |
small_n_clustering_config | object または null | 任意 | |
tfidf_vectorizer_config | object または null | 任意 | |
umap_config | object または null | 任意 | |
upload_doc_parts | boolean または null | 任意 |
EmbeddingSwitches
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
generate_embeddings | boolean | 必須 | |
generate_image_embeddings | boolean | 必須 | |
generate_metadata_embeddings | boolean | 必須 |