OpenAI LLM Snap Pack examples

Example Snaps used

Create, add, and run the thread

This example pipeline demonstrates how to create a thread, add the message to the specified thread, and run it to get results.

Fetch temperature of a location along with tool integration

The pipeline demonstrates the functionality of OpenAI Assistant's tool-calling capabilities to fetch weather information and also obtain the list of tools used, which can be further fed into the model.

Generate vector embeddings

This example pipeline demonstrates how to generate vector embeddings for sample data.

Generate prompt and chat response with OpenAI

This example pipeline demonstrates how to generate a prompt and subsequent chat response using OpenAI.

Create OpenAI vector store

This example pipeline demonstrates how to create a vector store in OpenAI.

List and add files to OpenAI vector store

This example pipeline demonstrates how to list files from OpenAI and add those files to the OpenAI vector store.

List and remove vector store files from OpenAI

This example pipeline demonstrates how to list and remove vector store files from OpenAI.

Upload multiple files to OpenAI

This example pipeline demonstrates how to upload multiple files to OpenAI storage.

Parallel tool calling

This example pipeline demonstrates how to use OpenAI Tool Calling Snap to simultaneously fetch weather information and Wikipedia URLs by leveraging OpenAI Function Generator Snaps and API integrations.

Summarize document and query information with OpenAI

This example pipeline demonstrates how to summarize a document and extract required information with OpenAI.