UNPKG

@inductiv/node-red-openai-api

Version:

Enhance your Node-RED projects with advanced AI capabilities.

162 lines (143 loc) 8.33 kB
<section> <details> <summary style="font-weight: bold;">🗃️ Vector Stores</summary> <a href="https://platform.openai.com/docs/api-reference/vector-stores" target="_blank">Official Documentation <i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <h4 style="font-weight: bolder;"> ⋙ Create Vector Store</h4> <p>Create a vector store.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt class="optional"> file_ids <a href="https://platform.openai.com/docs/api-reference/vector-stores/create" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">array</span> </dt> <dd>A list of File IDs that the vector store should use. Useful for tools like file_search that can access files.</dd> <dt class="optional"> name <a href="https://platform.openai.com/docs/api-reference/vector-stores/create#vector-stores-create-name" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>The name of the vector store.</dd> <dt class="optional"> expires_after <a href="https://platform.openai.com/docs/api-reference/vector-stores/create#vector-stores-create-expires_after" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">object</span> </dt> <dd>The expiration policy for a vector store.</dd> <dt class="optional"> chunking_strategy <a href="https://platform.openai.com/docs/api-reference/vector-stores/create#vector-stores-create-chunking_strategy" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">object</span> </dt> <dd>The chunking strategy used to chunk the file(s).</dd> <dt class="optional"> metadata <a href="https://platform.openai.com/docs/api-reference/vector-stores/create#vector-stores-create-metadata" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">object</span> </dt> <dd>Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.</dd> </dl> <h4 style="font-weight: bolder;"> ⋙ List Vector Stores</h4> <p>Returns a list of vector stores.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt class="optional"> limit <a href="https://platform.openai.com/docs/api-reference/vector-stores/list#vector-stores-list-limit" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">integer</span> </dt> <dd>A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.</dd> <dt class="optional"> order <a href="https://platform.openai.com/docs/api-reference/vector-stores/list#vector-stores-list-order" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.</dd> <dt class="optional"> after <a href="https://platform.openai.com/docs/api-reference/vector-stores/list#vector-stores-list-after" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>A cursor for use in pagination. after is an object ID that defines your place in the list.</dd> <dt class="optional"> before <a href="https://platform.openai.com/docs/api-reference/vector-stores/list#vector-stores-list-before" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>A cursor for use in pagination. before is an object ID that defines your place in the list.</dd> </dl> <h4 style="font-weight: bolder;"> ⋙ Retrieve Vector Store</h4> <p>Retrieves a vector store.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> vector_store_id <a href="https://platform.openai.com/docs/api-reference/vector-stores/retrieve#vector-stores-retrieve-vector_store_id" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>The ID of the vector store to retrieve.</dd> </dl> <h4 style="font-weight: bolder;"> ⋙ Modify Vector Store</h4> <p>Modifies a vector store.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> vector_store_id <a href="https://platform.openai.com/docs/api-reference/vector-stores/modify#vector-stores-modify-vector_store_id" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>The ID of the vector store to modify.</dd> <dt class="optional"> name <a href="https://platform.openai.com/docs/api-reference/vector-stores/modify#vector-stores-modify-name" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>The name of the vector store.</dd> <dt class="optional"> expires_after <a href="https://platform.openai.com/docs/api-reference/vector-stores/modify#vector-stores-modify-expires_after" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">object</span> </dt> <dd>The expiration policy for a vector store.</dd> <dt class="optional"> metadata <a href="https://platform.openai.com/docs/api-reference/vector-stores/modify#vector-stores-modify-metadata" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">object</span> </dt> <dd>Set of 16 key-value pairs that can be attached to an object.</dd> </dl> <dl> <h4 style="font-weight: bolder;"> ⋙ Delete Vector Store</h4> <p>Delete a vector store.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> vector_store_id <a href="https://platform.openai.com/docs/api-reference/vector-stores/delete#vector-stores-delete-vector_store_id" target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <span class="property-type">string</span> </dt> <dd>The ID of the vector store to delete.</dd> </dl> </details> </section>