Airtable Document Loader
The Airtable Document Loader is a node that allows you to load data from an Airtable table into your document processing pipeline. It’s part of the Document Loaders category and is designed to fetch records from Airtable and convert them into document objects that can be used in various natural language processing tasks.
Node Details
- Name: airtable
- Type: Document
- Version: 3.02
- Category: Document Loaders
Parameters
Credential
- Label: Connect Credential
- Name: credential
- Type: credential
- Credential Names: airtableApi
Inputs
-
Text Splitter (optional)
- Type: TextSplitter
- Description: A text splitter to process the loaded documents
-
Base Id (required)
- Type: string
- Description: The Airtable base ID
-
Table Id (required)
- Type: string
- Description: The Airtable table ID
-
View Id (optional)
- Type: string
- Description: The Airtable view ID
-
Include Only Fields (optional)
- Type: string
- Description: Comma-separated list of field names or IDs to include
-
Return All (optional)
- Type: boolean
- Default: true
- Description: Whether to return all results or limit them
-
Limit (optional)
- Type: number
- Default: 100
- Description: Number of results to return when Return All is disabled
-
Additional Metadata (optional)
- Type: json
- Description: Additional metadata to be added to the extracted documents
-
Omit Metadata Keys (optional)
- Type: string
- Description: Comma-separated list of metadata keys to omit
-
Filter By Formula (optional)
- Type: string
- Description: Airtable formula to filter records
Outputs
-
Document
- Description: Array of document objects containing metadata and pageContent
- Base Classes: Document, json
-
Text
- Description: Concatenated string from pageContent of documents
- Base Classes: string, json
Functionality
The Airtable Document Loader fetches data from the specified Airtable base and table using the provided credentials. It can optionally filter the data, limit the number of records, and include only specific fields. The loader converts each Airtable record into a document object with the record data as the page content and additional metadata.
Key features include:
- Pagination support for fetching large datasets
- Optional text splitting of loaded documents
- Custom metadata addition and omission
- Filtering records using Airtable formulas
- Option to return all records or a limited number
Use Cases
- Loading structured data from Airtable for natural language processing tasks
- Integrating Airtable data into document-based workflows
- Preprocessing Airtable records for use in language models or other AI applications
Notes
- Ensure you have the necessary Airtable API credentials and permissions to access the desired base and table.
- Be mindful of API rate limits when fetching large amounts of data.
- Use the text splitter option if you need to process large text fields from Airtable.