Retrieve vector store
vector_stores.retrieve(vector_store_id) -> VectorStore { id, created_at, file_counts, 8 more }
GET/vector_stores/{vector_store_id}
Retrieve vector store
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
vector_store = openai.vector_stores.retrieve("vector_store_id")
puts(vector_store){
"id": "vs_abc123",
"object": "vector_store",
"created_at": 1699061776,
"name": "Support FAQ",
"file_counts": {
"in_progress": 0,
"completed": 3,
"failed": 0,
"cancelled": 0,
"total": 3
},
"usage_bytes": 139920,
"status": "completed",
"last_active_at": null,
"metadata": {}
}
Returns Examples
{
"id": "vs_abc123",
"object": "vector_store",
"created_at": 1699061776,
"name": "Support FAQ",
"file_counts": {
"in_progress": 0,
"completed": 3,
"failed": 0,
"cancelled": 0,
"total": 3
},
"usage_bytes": 139920,
"status": "completed",
"last_active_at": null,
"metadata": {}
}