Datasets:
Update README.md with additional setup instructions
Browse files- Added detailed setup instructions for new users.
- Clarified the installation process and prerequisites.
- Included examples for better understanding.
- Improved formatting for readability.
README.md
CHANGED
|
@@ -16,7 +16,7 @@ This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/I
|
|
| 16 |
|
| 17 |
### Dataset Description
|
| 18 |
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
|
| 21 |
### Dataset Sources
|
| 22 |
|
|
@@ -49,15 +49,15 @@ CREATE TABLE IF NOT EXISTS is_pd12m (
|
|
| 49 |
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{
|
| 54 |
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
);
|
| 59 |
```
|
| 60 |
-
|
| 61 |
2. Load csv file to database
|
| 62 |
|
| 63 |
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
|
@@ -94,17 +94,16 @@ CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
|
| 94 |
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS
|
| 98 |
residual_quantization = true
|
| 99 |
[build.internal]
|
| 100 |
lists = [20000]
|
| 101 |
build_threads = 6
|
| 102 |
spherical_centroids = false
|
| 103 |
$$);
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
```
|
| 108 |
|
| 109 |
## Dataset Structure
|
| 110 |
-
|
|
|
|
| 16 |
|
| 17 |
### Dataset Description
|
| 18 |
|
| 19 |
+
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
|
| 21 |
### Dataset Sources
|
| 22 |
|
|
|
|
| 49 |
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
+
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
+
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
);
|
| 59 |
```
|
| 60 |
+
|
| 61 |
2. Load csv file to database
|
| 62 |
|
| 63 |
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
|
|
|
| 94 |
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
+
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
residual_quantization = true
|
| 99 |
[build.internal]
|
| 100 |
lists = [20000]
|
| 101 |
build_threads = 6
|
| 102 |
spherical_centroids = false
|
| 103 |
$$);
|
| 104 |
+
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
+
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
+
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
```
|
| 108 |
|
| 109 |
## Dataset Structure
|
|
|