Retrieve vector store file content
FileContentPage vectorStores().files().content(FileContentParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/vector_stores/{vector_store_id}/files/{file_id}/content
Retrieve vector store file content
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.vectorstores.files.FileContentPage;
import com.openai.models.vectorstores.files.FileContentParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
FileContentParams params = FileContentParams.builder()
.vectorStoreId("vs_abc123")
.fileId("file-abc123")
.build();
FileContentPage page = client.vectorStores().files().content(params);
}
}{
"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
}