Retrieve vector store file content
vector_stores.files.content(file_id, **kwargs) -> Page<FileContentResponse { text, type } >
GET/vector_stores/{vector_store_id}/files/{file_id}/content
Retrieve the parsed contents of a vector store file.
Retrieve vector store file content
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
page = openai.vector_stores.files.content("file-abc123", vector_store_id: "vs_abc123")
puts(page){
"object": "vector_store.file_content.page",
"data": [
{"type": "text", "text": "file content"}
],
"has_more": false,
"next_page": null
}
Returns Examples
{
"object": "vector_store.file_content.page",
"data": [
{"type": "text", "text": "file content"}
],
"has_more": false,
"next_page": null
}