OpenAI Assistant with Vector Store for File Retrieval
detail.loadingPreview
Automates the retrieval and formatting of AI-generated content from an OpenAI assistant, ensuring citations and sources are correctly identified and presented.
About This Workflow
This workflow leverages an OpenAI assistant configured with a vector store for file retrieval. It aims to accurately capture and format citations and sources generated by the assistant, addressing potential issues with character encoding and providing dynamic references like citation numbers. The output can be tailored for Markdown or HTML.
Key Features
- Integrates with OpenAI Assistants API for file retrieval.
- Extracts and formats citations from assistant responses.
- Retrieves file names based on file IDs.
- Allows for Markdown or HTML output formatting.
- Provides a chat trigger for interactive testing within n8n.
How To Use
- Setup OpenAI Key: Ensure your OpenAI API key is configured in n8n credentials.
- Assistant Configuration: Use an OpenAI assistant that has a vector store configured for file retrieval.
- Trigger Workflow: Initiate the workflow, potentially via the integrated chat button.
- Review Output: The workflow retrieves all thread content, splits messages and citations, retrieves file names, and then formats the output to replace original citation placeholders with filename references.
- Optional HTML Conversion: The
Optional Markdown to HTMLnode (currently disabled) can be enabled to convert the Markdown output to HTML.
Apps Used
Workflow JSON
{
"id": "69026025-5ffe-4cc9-b364-b44e0427c945",
"name": "OpenAI Assistant with Vector Store for File Retrieval",
"nodes": 13,
"category": "AI & Machine Learning",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 69026025-5ffe...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Telegram AI Langchain Bot with DALL-E 3 Image Generation
An n8n workflow that acts as a Telegram bot, powered by Langchain, for AI chat interactions and image generation using DALL-E 3.
Visa Requirement Checker
A workflow to check visa requirements based on user input, leveraging Langchain, Cohere embeddings, Weaviate vector store, and Anthropic LLM.
NeurochainAI Basic API Integration for Telegram
Integrates NeurochainAI's text and image generation APIs with a Telegram bot.