AI Search (2)·续19
boolean
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>
namespace: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>
<details>
<summary>
next_action: "INDEX"or "DELETE"
</summary>
One of the following:
"INDEX"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20next_action%20%3E%20(member)%200">Link to this property</a>
"DELETE"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20next_action%20%3E%20(member)%201">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20next_action">Link to this property</a>
source_id: string
Identifies which data source this item belongs to. “builtin” for uploaded files, “{type}:{source}” for external sources, null for legacy items.
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20source_id">Link to this property</a>
<details>
<summary>
status: "queued"or "running"or "completed"or 3 more
</summary>
One of the following:
"queued"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>
"running"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>
"completed"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>
"error"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>
"skipped"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>
"outdated"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>
error: optional string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>
</details>
<details>
<summary>
ItemSyncResponse object {id, checksum, chunks_count, 10 more }
</summary>
id: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>
checksum: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20checksum">Link to this property</a>
chunks_count: number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20chunks_count">Link to this property</a>
created_at: string
formatdate-time
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>
file_size: number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20file_size">Link to this property</a>
key: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20key">Link to this property</a>
last_seen_at: string
formatdate-time
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>
<details>
<summary>
metadata: map[stringor numberor boolean]
Built-in, configured filterable, and retained source metadata for the item.
</summary>
One of the following:
string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>
number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>
boolean
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>
namespace: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>
<details>
<summary>
next_action: "INDEX"or "DELETE"
</summary>
One of the following:
"INDEX"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20next_action%20%3E%20(member)%200">Link to this property</a>
"DELETE"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20next_action%20%3E%20(member)%201">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20next_action">Link to this property</a>
source_id: string
Identifies which data source this item belongs to. “builtin” for uploaded files, “{type}:{source}” for external sources, null for legacy items.
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20source_id">Link to this property</a>
<details>
<summary>
status: "queued"or "running"or "completed"or 3 more
</summary>
One of the following:
"queued"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>
"running"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>
"completed"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>
"error"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>
"skipped"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>
"outdated"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>
error: optional string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_sync_response%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>
</details>
<details>
<summary>
ItemDeleteResponse object {key }
</summary>
key: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20key">Link to this property</a>
</details>
<details>
<summary>
ItemLogsResponse = array of object {action, chunkCount, errorType, 4 more }
</summary>
action: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>
chunkCount: number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20chunkCount">Link to this property</a>
errorType: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20errorType">Link to this property</a>
fileKey: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20fileKey">Link to this property</a>
message: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>
processingTimeMs: number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20processingTimeMs">Link to this property</a>
timestamp: string
formatdate-time
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_logs_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20timestamp">Link to this property</a>
</details>
<details>
<summary>
ItemChunksResponse = array of object {id, item, text, 5 more }
</summary>
id: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>
<details>
<summary>
item: object {key, metadata, timestamp }
</summary>
key: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20key">Link to this property</a>
metadata: optional map[unknown]
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20metadata">Link to this property</a>
timestamp: optional number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20timestamp">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20item">Link to this property</a>
text: string
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20text">Link to this property</a>
end_byte: optional number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20end_byte">Link to this property</a>
media_end_ms: optional number
Audio/video transcript chunks only: end, in milliseconds from the start of the media (whole seconds), of the last transcript section the chunk covers.
minimum0
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20media_end_ms">Link to this property</a>
media_start_ms: optional number
Audio/video transcript chunks only: start, in milliseconds from the start of the media (whole seconds), of the transcript section the chunk begins in.
minimum0
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20media_start_ms">Link to this property</a>
<details>
<summary>
source_media_type: optional "audio"or "video"
Audio/video transcript chunks only: type of the source media file. Omitted for all other chunks.
</summary>
One of the following:
"audio"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20source_media_type%20%3E%20(member)%200">Link to this property</a>
"video"
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20source_media_type%20%3E%20(member)%201">Link to this property</a>
</details>
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20source_media_type">Link to this property</a>
start_byte: optional number
<a href="#(resource)%20ai_search.namespaces.instances.items%20%3E%20(model)%20item_chunks_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20start_byte">Link to this property</a>
</details>
AI SearchInstances
List AI Search instances.
Deprecated
GET/accounts/{account_id}/ai-search/instances
Create an AI Search instance.
Deprecated
POST/accounts/{account_id}/ai-search/instances
Get an AI Search instance.
Deprecated
GET/accounts/{account_id}/ai-search/instances/{id}
Update an AI Search instance.
Deprecated
PUT/accounts/{account_id}/ai-search/instances/{id}
Delete an AI Search instance.
Deprecated
DELETE/accounts/{account_id}/ai-search/instances/{id}
Get instance statistics.
Deprecated
GET/accounts/{account_id}/ai-search/instances/{id}/stats
Search
Deprecated
POST/accounts/{account_id}/ai-search/instances/{id}/search
Chat Completions
Deprecated
POST/accounts/{account_id}/ai-search/instances/{id}/chat/completions
ModelsExpand Collapse
<details>
<summary>
InstanceListResponse object {id, ai_gateway_id, ai_search_model, 42 more }
</summary>
id: string
<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>
ai_gateway_id: string
<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20ai_gateway_id">Link to this property</a>
ai_search_model: string
<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20ai_search_model">Link to this property</a>
cache: boolean
<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache">Link to this property</a>
<details>
<summary>
cache_threshold: "super_strict_match"or "close_enough"or "flexible_friend"or "anything_goes"
</summary>
One of the following:
"super_strict_match"
<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_list_response%20%3E%20(schema)%20%3E%20(property)%20cache_threshold%20%3E%20(member)%200">Link to this property</a>
