Skip to content

Local Files

Upload files directly from your computer to Agent Context. Agent Context automatically detects the schema and makes your data queryable with SQL. No database or cloud storage required.

  1. Go to Agent Context in the dashboard
  2. Click Add SourceUpload File
  3. Drag and drop your file, or click to browse
  4. The schema is auto-detected — review and confirm
  5. Your data is immediately queryable
ParameterRequiredDescription
FileYesThe file to upload (.csv, .tsv, .parquet, .json, .jsonl, .xlsx, .xls, .duckdb, .sqlite)
File FormatNoAuto-detected from extension. Override: csv, tsv, parquet, json, jsonl
FormatExtensionNotes
CSV.csvAuto-detects delimiter, headers, and column types
TSV.tsvTab-separated values
Parquet.parquetColumnar format. Preserves types exactly. Best for large datasets.
JSON.jsonJSON array format.
JSONL.jsonlNewline-delimited JSON. One record per line.
Excel.xlsx, .xlsEach sheet becomes a separate table
SQLite.sqliteAll tables in the database are discovered
DuckDB.duckdbAll tables in the database are discovered
  • Quick exploration — drop a CSV export and start querying immediately
  • One-off analysis — upload a spreadsheet your team shared for a specific task
  • Prototyping — test queries on local data before connecting a production database
  • Small datasets — reference data, lookup tables, configuration data

For regularly updated data, consider connecting a database or cloud storage source instead.

IssueFix
Schema not detectedEnsure the file has consistent column structure. For CSV, check that the delimiter is consistent.
Wrong column typesTry uploading in Parquet format for exact type preservation.
File too largeFor files over 50 MB, consider uploading to cloud storage (S3, GCS, Azure) and connecting that way.