pub struct CreateVectorStoreFileRequest<'a> {
pub vector_store_id: &'a str,
pub file_id: String,
pub chunking_strategy: Option<Value>,
pub attributes: Option<Value>,
pub extra_body_map: Option<Map<String, Value>>,
}Expand description
Adds a file to a vector store via
POST /vector_stores/{vector_store_id}/files.
Fields§
§vector_store_id: &'a strThe ID of the vector store, e.g. vs_....
file_id: StringThe ID of the FileObject to add.
chunking_strategy: Option<Value>The chunking strategy applied to the file, as raw JSON
({"type": "auto"} or
{"type": "static", "max_chunk_size_tokens": ..., "chunk_overlap_tokens": ...}).
attributes: Option<Value>The attributes attached to the file (filterable at search time), as raw JSON.
extra_body_map: Option<Map<String, Value>>Additional JSON properties flattened into the request body, for fields not covered by the typed struct.
Trait Implementations§
Source§impl<'a> Clone for CreateVectorStoreFileRequest<'a>
impl<'a> Clone for CreateVectorStoreFileRequest<'a>
Source§impl<'a> Debug for CreateVectorStoreFileRequest<'a>
impl<'a> Debug for CreateVectorStoreFileRequest<'a>
Source§impl Post for CreateVectorStoreFileRequest<'_>
impl Post for CreateVectorStoreFileRequest<'_>
Source§impl PostNoStream for CreateVectorStoreFileRequest<'_>
impl PostNoStream for CreateVectorStoreFileRequest<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateVectorStoreFileRequest<'a>
impl<'a> RefUnwindSafe for CreateVectorStoreFileRequest<'a>
impl<'a> Send for CreateVectorStoreFileRequest<'a>
impl<'a> Sync for CreateVectorStoreFileRequest<'a>
impl<'a> Unpin for CreateVectorStoreFileRequest<'a>
impl<'a> UnsafeUnpin for CreateVectorStoreFileRequest<'a>
impl<'a> UnwindSafe for CreateVectorStoreFileRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more