Loading...
Loading...
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 testing - IMPORTANT: sample files are located in this skill's example-data/ directory, you MUST read this skill file first to get the correct path.
npx skill4agent add oceanbase/seekdb-ecology-plugins importing-to-seekdbNote: All paths in this document (e.g.,,scripts/) are relative to THIS skill directory, not the project root.example-data/
pip install pyseekdb pandas openpyxlexample-data/| File | Description |
|---|---|
| Sample product data in CSV format |
| Sample product data in Excel format |
scripts/import_to_seekdb.py# 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_collectionNote: To list all collections, usefrom thequery_from_seekdb.py listskill.querying-from-seekdb
scripts/| Script | Description |
|---|---|
| Main script with CLI interface for importing data and managing collections |
| Read and preview Excel files with detailed information |
| Command | Description |
|---|---|
| Import CSV/Excel file to seekdb with optional vectorization |
| Delete a collection from seekdb |
# 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 name to read (default: first sheet) |
| Number of rows to preview (default: 5) |
| List all sheets and exit |
| Show detailed column information |
| Show statistics for numeric columns |
| Export sheet to CSV file |
| Display all rows |
import_to_seekdb.py# 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 --statsexample-data/read_excel.pyquery_from_seekdb.py listquerying-from-seekdbpython scripts/import_to_seekdb.py delete <collection_name>--vectorize-columnimport_to_seekdb.pypython scripts/import_to_seekdb.py import large_file.csv -v Details --batch-size 500