Create a vector store.
Request body which must comply to the following JSON Schema:
{ "type" : "object", "properties" : { "file_ids" : { "maxItems" : 500, "type" : "array", "description" : "A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.", "items" : { "type" : "string" } }, "name" : { "type" : "string", "description" : "The name of the vector store." }, "expires_after" : { "title" : "Vector store expiration policy", "required" : [ "anchor", "days" ], "type" : "object", "properties" : { "anchor" : { "type" : "string", "description" : "Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.", "enum" : [ "last_active_at" ] }, "days" : { "maximum" : 365, "minimum" : 1, "type" : "integer", "description" : "The number of days after the anchor time that the vector store will expire." } }, "description" : "The expiration policy for a vector store." }, "chunking_strategy" : { "type" : "object", "description" : "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.", "oneOf" : [ { "title" : "Auto Chunking Strategy", "required" : [ "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "Always `auto`.", "enum" : [ "auto" ] } }, "additionalProperties" : false, "description" : "The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`." }, { "title" : "Static Chunking Strategy", "required" : [ "static", "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "Always `static`.", "enum" : [ "static" ] }, "static" : { "required" : [ "chunk_overlap_tokens", "max_chunk_size_tokens" ], "type" : "object", "properties" : { "max_chunk_size_tokens" : { "maximum" : 4096, "minimum" : 100, "type" : "integer", "description" : "The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`." }, "chunk_overlap_tokens" : { "type" : "integer", "description" : "The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n" } }, "additionalProperties" : false } }, "additionalProperties" : false } ], "x-oaiExpandable" : true }, "metadata" : { "type" : "object", "description" : "metadata_description", "nullable" : true, "x-oaiTypeLabel" : "map" } }, "additionalProperties" : false }
Specify how the response should be mapped to the table output. The following formats are available:
Raw Response: Returns the raw response in a single row with the following columns:
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension OpenAI Nodes from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.