VectorStoreFileCreateRequest

@Serializable
class VectorStoreFileCreateRequest(val fileId: FileId? = null, val attributes: Map<String, JsonPrimitive>? = null, val chunkingStrategy: ChunkingStrategy? = null)

A request to create a vector store file by attaching a File to a vector store.

Constructors

Link copied to clipboard
constructor(fileId: FileId? = null, attributes: Map<String, JsonPrimitive>? = null, chunkingStrategy: ChunkingStrategy? = null)

Properties

Link copied to clipboard
@SerialName(value = "attributes")
val attributes: Map<String, JsonPrimitive>? = null

File attributes used for filtering search results.

Link copied to clipboard
@SerialName(value = "chunking_strategy")
val chunkingStrategy: ChunkingStrategy? = null

Chunking strategy used to process the file(s).

Link copied to clipboard
@SerialName(value = "file_id")
val fileId: FileId? = null

A File ID that the vector store should use. Useful for tools like file_search that can access files.