These notebooks show end-to-end VecDB ingestion flows for metadata-only, BYO vectors with IDs, and BYO vectors with auto-generated IDs. Open the notebook that matches the scenario you need:
01_integrated_embedding.ipynb– Bulk load metadata into a table with integrated embeddings.02_byov_ids.ipynb– Bulk load bring-your-own vectors with manual IDs.03_byov_auto_ids.ipynb– Bulk load bring-your-own vectors with database-generated IDs.
Embedding model prep: Scenario A assumes an embedding model already exists in VecDB. Deploy it beforehand and set
EMBED_MODELin.envto that model’s name. This scenario does not upload or load ONNX artifacts on your behalf.
Fresh example datasets live under bulk_loading/data/ so you can upload them to Object Storage and reuse the signed URL in .env:
| Scenario | Sample file | Columns | .env variable |
Sample PAR |
|---|---|---|---|---|
| Integrated embeddings | bulktable_integrated_embedding.csv |
METADATA, ID |
INTEGRATED_CSV_URL |
https://objectstorage.<region>.oraclecloud.com/p/<PAR_TOKEN>/n/<namespace>/b/<bucket>/o/sample_csv_data/bulktable_integrated_embedding.csv |
| BYO vectors (manual IDs) | bulktable_byov_ids.csv |
ID, DENSE_VECTOR, METADATA |
BYO_MANUAL_CSV_URL |
https://objectstorage.<region>.oraclecloud.com/p/<PAR_TOKEN>/n/<namespace>/b/<bucket>/o/sample_csv_data/bulktable_byov_ids.csv |
| BYO vectors (auto IDs) | bulktable_byov_auto_ids.csv |
DENSE_VECTOR, METADATA |
BYO_AUTO_CSV_URL |
https://objectstorage.<region>.oraclecloud.com/p/<PAR_TOKEN>/n/<namespace>/b/<bucket>/o/sample_csv_data/bulktable_byov_auto_ids.csv |
- Pick a bucket/object path. The repo already includes ready-to-upload files under
bulk_loading/data/. Use predictable object names so you can rotate URLs without guessing. - Upload each CSV via direct
curl -T. Example (repeat per file with the right filename):Replacecurl -T bulk_loading/data/bulktable_byov_auto_ids.csv \ "https://objectstorage.<region>.oraclecloud.com/p/<PAR_TOKEN>/n/<namespace>/b/<bucket>/o/sample_csv_data/bulktable_byov_auto_ids.csv"<PAR_TOKEN>,<namespace>, and<bucket>with your actual values (the sample URLs in the table show the expected shape). - Update
.env. Paste the exact HTTPS URL you used for the upload intoINTEGRATED_CSV_URL,BYO_MANUAL_CSV_URL, orBYO_AUTO_CSV_URLas needed. The notebooks download directly from these links. - Quick validation. Open the uploaded object in a browser to ensure the header row and quoting look identical to the local file. VecDB requires commas as separators, quoted vector/JSON fields, and escaped double quotes (
"") inside the metadata JSON.
Each scenario walks through table provisioning, load_vectors, job inspection, pagination via list_vectors, catalog checks via list_vector_tables, and an automated cleanup at the end so the environment stays tidy.
- Python 3.10+ with
oracle-vecdb,python-dotenv, andpandas(a%pip installhelper cell is provided). - A
.envfile that provides: VECDB_REST_URL,VECDB_USERNAME,VECDB_PASSWORDEMBED_MODEL→ name of an embedding model that already exists inside VecDB (deploy it using the model-management example before running Scenario A)EMBED_MODEL_URL→ (optional) retained for backward compatibility; Scenario A no longer auto-loads models from Object StorageINTEGRATED_CSV_URL→ signed Object Storage URL forbulktable_integrated_embedding.csvBYO_MANUAL_CSV_URL→ signed Object Storage URL forbulktable_byov_ids.csvBYO_AUTO_CSV_URL→ signed Object Storage URL forbulktable_byov_auto_ids.csv
- Object Storage access to host the CSVs (public PAR URLs or buckets readable by VecDB).
Auto-ID reminder: Scenario C only produces database-generated IDs when the CSV omits the
IDcolumn (or leaves it empty). Create an ID-free dataset (seebulktable_byov_auto_ids.csv), upload it to Object Storage, and pointBYO_AUTO_CSV_URLto that object before running the auto-ID cells.
- Open the scenario notebook you need (
01_...,02_..., or03_...) and run the setup cells to install dependencies and authenticate. - Execute the scenario cells in order (table creation → load → job inspection → listings).
- Finish with the cleanup cell so the demo tables do not linger in your VecDB environment.
Run checklist
- Upload/refresh the CSV in Object Storage.
- Create or verify a PAR and update
.env.- Drop/recreate the scenario table (integrated, BYO-ID, BYO-auto).
- Execute the load job, inspect job logs/details, then move to listings and cleanup.