Skip to main content This node allows you to query a CSV based on a natural language query.
This node allows you to query a CSV based on a natural language query.
- CSV File: The CSV file to be queried (file must be a CSV). Note: Ensure connecting node is of type File not text.
- Search Query: The question you want to be answered by the CSV
For providing the file you have two options:
- If toggle is on Upload: Upload a file by clicking the upload button
- If toggle is on Variable: Reference files from other nodes.
Node Outputs
- Output: The answer to the query based on the CSV
- Type: Text
- Example usage: {{csv_query_0.output}}
 
Considerations
- Delimiter for the CSV must be commas.
Example
The below example shows a pipeline that takes in a CSV file containing e-commerce product data and queries the CSV for the answer based on a question (in this case: “How many items are sold?”.
- Input Node: Allows the user to ask a question. Here, “How many items are sold?”
- CSV Query Agent Node: Queries the CSV based on the question
- Search Query: {{input_0.text}}
 
- Output Node: Displays the answer to the question
- Output: {{csv_query_0.output}}
 
