Retrievers

CSV Document Search

Tool that allows searching within CSV documents using text search or pandas query expressions.

Category: Retrievers · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: CSVDocument

Inputs#

FieldTypeRequiredDefaultWhat it does
CSV File URLTextNo(empty)The CSV file to load from URL.
CSV Document IDChoiceNo—The ID of the CSV document to search in.
Max ResultsNumberYes5000Maximum number of results to return.
Case SensitiveYes/NoNoOffWhether the search should be case sensitive.
DelimiterTextNo,The delimiter character used in the CSV file.
Cache TTLTextNo2 weeksCache the content of the CSV file for defined amount of time. Options: No cache, 5 minutes, 30 minutes, 1 hour, 12 hours, 1 day, 1 week, 2 weeks, 1 month, 3 months, 6 months, 1 year
Search QueryTextNo{input}The search term to look for in the CSV document.
Search ColumnTextNo—Optional column name to restrict search to a specific column.
Query ExpressionTextNo—Pandas query expression (e.g., ‘Price > 100 and Category == “Electronics”’).
Sort ByTextNo—Column(s) to sort by. Use comma for multiple, minus (-) for descending (e.g., ‘Price,-Date’).
Group ByTextNo—Column(s) to group by. Requires Aggregate Function to be set.
Aggregate FunctionTextNo—Aggregation functions (e.g., ‘Price:mean,Quantity:sum’). Supported: sum, mean, min, max, count, median, first, last.
Pivot TableTextNo—Create pivot table. Format: ‘index,columns,values[:agg_func]’ (e.g., ‘Category,Region,Price:mean’).
Calculated ColumnTextNo—Add a calculated column. Format: ’new_col:expression’ (e.g., ‘Discount:Price*0.1’).
String FilterTextNo—Regex string filter. Format: ‘column:pattern[:case_sensitive]’ (e.g., ‘Name:john:false’).

Outputs#

OutputType
Row CountAny
Column CountAny
ColumnsAny
Matched RowsAny
Search ResultsAny
Operations AppliedAny

Use as an agent tool#

Tool name: csvdocument

Tool that allows searching within CSV documents using text search or pandas query expressions.