Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Import CSV or Excel files into seekdb vector database and manage collections. Supports automatic vectorization of specified columns using embedding functions. When users need to: (1) Read and preview Excel files, (2) Import CSV/Excel data into seekdb, (3) Create vector collections from tabular data, (4) Vectorize specific text columns for semantic search, (5) Batch insert product/document data with embeddings, (6) Delete collections, or (7) Access sample data files (sample_products.csv/xlsx) for
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 90% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 56% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 106% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 110% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 73% | 0% |
Read, preview, and import CSV or Excel files into seekdb vector database with optional column vectorization for semantic search. Also provides collection delete functionality.
> Note: All paths in this document (e.g., scripts/, example-data/) are relative to THIS skill directory, not the project root.
bashpip install pyseekdb pandas openpyxl
Sample data files are provided in the example-data/ directory:
| File | Description | |------|-------------| | sample_products.csv | Sample product data in CSV format | | sample_products.xlsx | Sample product data in Excel format |
Use the provided scripts/import_to_seekdb.py script:
bash# Import with vectorization on Details column python scripts/import_to_seekdb.py import example-data/sample_products.csv --vectorize-column Details # Import without vectorization python scripts/import_to_seekdb.py import example-data/sample_products.csv # Import Excel with custom collection name python scripts/import_to_seekdb.py import example-data/sample_products.xlsx -v Description -c my_products # Delete a collection python scripts/import_to_seekdb.py delete my_collection
> Note: To list all collections, use query_from_seekdb.py list from the querying-from-seekdb skill.
This skill provides the following scripts in the scripts/ directory:
| Script | Description | |--------|-------------| | import_to_seekdb.py | Main script with CLI interface for importing data and managing collections | | read_excel.py | Read and preview Excel files with detailed information |
| Command | Description | |---------|-------------| | import <file> | Import CSV/Excel file to seekdb with optional vectorization | | delete <name> | Delete a collection from seekdb |
Read and preview Excel files before importing:
bash# Basic preview (show file info and first 5 rows) python scripts/read_excel.py example-data/sample_products.xlsx # List all sheets python scripts/read_excel.py example-data/sample_products.xlsx --list-sheets # Preview specific sheet with more rows python scripts/read_excel.py data.xlsx --sheet "Sheet2" --rows 20 # Show column information and statistics python scripts/read_excel.py example-data/sample_products.xlsx --columns --stats # Export to CSV python scripts/read_excel.py example-data/sample_products.xlsx --to-csv output.csv
| Option | Description | |--------|-------------| | --sheet, -s | Sheet name to read (default: first sheet) | | --rows, -r | Number of rows to preview (default: 5) | | --list-sheets, -l | List all sheets and exit | | --columns, -c | Show detailed column information | | --stats | Show statistics for numeric columns | | --to-csv | Export sheet to CSV file | | --all-rows, -a | Display all rows |
The import_to_seekdb.py script automatically handles the following steps:
When user wants to preview or inspect an Excel file before importing:
bash# Preview file structure and data python scripts/read_excel.py <file_path> # With column details and statistics python scripts/read_excel.py <file_path> --columns --stats
This helps users:
When user requests data import, ask:
example-data/ directoryread_excel.py to preview the file firstquery_from_seekdb.py list from the querying-from-seekdb skillpython scripts/import_to_seekdb.py delete <collection_name>The script uses the default embedding function (all-MiniLM-L6-v2, 384 dimensions) when vectorization is enabled via --vectorize-column.
For files with >10,000 rows, the import_to_seekdb.py script uses batch processing automatically. You can configure batch size:
bashpython scripts/import_to_seekdb.py import large_file.csv -v Details --batch-size 500
Other measured skills in the registry, with their headline benchmark lift.