Community: OpenAI Citation for File Retrieval RAG
detail.loadingPreview
Enhances OpenAI assistant responses with accurate citations from file retrieval in RAG setups.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow demonstrates how to ensure that all texts generated by an OpenAI assistant, when using file retrieval from a vector store, are accompanied by accurate citations and sources.
It addresses issues with assistants sometimes generating strange characters or missing citations and allows for formatting the output with Markdown or HTML.
Key Features
- Automatically extracts and formats citations from OpenAI file retrieval.
- Ensures all sources are linked to the generated text.
- Allows for dynamic formatting of output (Markdown or HTML).
- Provides a clear example for implementing citation-aware RAG with OpenAI assistants.
How To Use
- Setup OpenAI Credentials: Ensure your OpenAI API key is configured in n8n.
- Configure Assistant: Use an existing OpenAI assistant with a vector store configured for file retrieval, or create one.
- Input Data: The workflow is designed to be triggered, simulating a user query to the OpenAI assistant.
- Format Output: Adjust the final
Setnode to customize the output format (Markdown, HTML) and how citations are displayed.
Apps Used
Workflow JSON
{
"id": "8f080b77-605a-4b64-b953-ed6cb2941850",
"name": "Community: OpenAI Citation for File Retrieval RAG",
"nodes": 0,
"category": "Community Contributed",
"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: 8f080b77-605a...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Community Template: Unverified Data to Vector DB Chat
Load data from Google Drive into Pinecone, then chat with it using OpenAI.
RAG on Living Data
Integrates RAG (Retrieval-Augmented Generation) with dynamic, living data sources to provide context-aware answers.
Community Contributed: Google Drive to Social Media Upload
Automate video uploads from Google Drive to social media platforms like TikTok and Instagram.
Community Unverified PDF Conversion
This template allows community users to convert files to PDF/A format.
Community Contributed: Screenshot Generation and Emailing (Unverified)
This workflow generates screenshots of a specified URL and emails them.
Get Synonyms of a German Word
Retrieves synonyms for a given German word using the OpenThesaurus API.