Datasets:
Update README.md with more detailed information about the project and how to contribute. Fix formatting and spelling errors.
Browse files
README.md
CHANGED
@@ -30,7 +30,6 @@ Based on the [wikipedia dumps](https://dumps.wikimedia.org/). Please check this
|
|
30 |
- revid: The revision ID of the page.
|
31 |
- url: The URL of the page.
|
32 |
- title: The title of the page.
|
33 |
-
- origin_storage_id: The storage ID of the original page.
|
34 |
- ignored: Whether the page is ignored.
|
35 |
- created_at: The creation time of the page.
|
36 |
- updated_at: The update time of the page.
|
@@ -40,7 +39,6 @@ Based on the [wikipedia dumps](https://dumps.wikimedia.org/). Please check this
|
|
40 |
- id: A unique identifier for the chunk.
|
41 |
- title: The title of the page.
|
42 |
- url: The URL of the page.
|
43 |
-
- snapshot: The snapshot of the page.
|
44 |
- source_id: The source ID of the page.
|
45 |
- chunk_index: The index of the chunk.
|
46 |
- chunk_text: The text of the chunk.
|
@@ -62,7 +60,6 @@ CREATE TABLE IF NOT EXISTS ts_wikipedia_en (
|
|
62 |
revid BIGINT NOT NULL,
|
63 |
url VARCHAR NOT NULL,
|
64 |
title VARCHAR NOT NULL DEFAULT '',
|
65 |
-
origin_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
66 |
ignored BOOLEAN NOT NULL DEFAULT FALSE,
|
67 |
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
68 |
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
@@ -72,7 +69,6 @@ CREATE TABLE IF NOT EXISTS ts_wikipedia_en_embed (
|
|
72 |
id BIGSERIAL PRIMARY KEY,
|
73 |
title VARCHAR NOT NULL,
|
74 |
url VARCHAR NOT NULL,
|
75 |
-
snapshot VARCHAR NOT NULL,
|
76 |
source_id BIGINT NOT NULL,
|
77 |
chunk_index BIGINT NOT NULL,
|
78 |
chunk_text VARCHAR NOT NULL,
|
@@ -88,9 +84,9 @@ CREATE TABLE IF NOT EXISTS ts_wikipedia_en_embed (
|
|
88 |
|
89 |
```sql
|
90 |
\copy ts_wikipedia_en FROM 'data/meta/ts_wikipedia_en.csv' CSV HEADER;
|
91 |
-
\copy ts_wikipedia_en_embed FROM 'data/chunks/
|
92 |
-
\copy ts_wikipedia_en_embed FROM 'data/chunks/
|
93 |
-
\copy ts_wikipedia_en_embed FROM 'data/chunks/
|
94 |
...
|
95 |
```
|
96 |
|
@@ -98,9 +94,9 @@ CREATE TABLE IF NOT EXISTS ts_wikipedia_en_embed (
|
|
98 |
|
99 |
```sql
|
100 |
copy ts_wikipedia_en FROM 'data/meta/ts_wikipedia_en.csv' CSV HEADER;
|
101 |
-
copy ts_wikipedia_en_embed FROM 'data/chunks/
|
102 |
-
copy ts_wikipedia_en_embed FROM 'data/chunks/
|
103 |
-
copy ts_wikipedia_en_embed FROM 'data/chunks/
|
104 |
...
|
105 |
```
|
106 |
|
@@ -116,7 +112,6 @@ The `vector` column is a halfvec(768) column, which is a 16-bit half-precision v
|
|
116 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_revid_index ON ts_wikipedia_en (revid);
|
117 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_url_index ON ts_wikipedia_en (url);
|
118 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_title_index ON ts_wikipedia_en (title);
|
119 |
-
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_origin_storage_id_index ON ts_wikipedia_en (origin_storage_id);
|
120 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_ignored_index ON ts_wikipedia_en (ignored);
|
121 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_created_at_index ON ts_wikipedia_en (created_at);
|
122 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_updated_at_index ON ts_wikipedia_en (updated_at);
|
|
|
30 |
- revid: The revision ID of the page.
|
31 |
- url: The URL of the page.
|
32 |
- title: The title of the page.
|
|
|
33 |
- ignored: Whether the page is ignored.
|
34 |
- created_at: The creation time of the page.
|
35 |
- updated_at: The update time of the page.
|
|
|
39 |
- id: A unique identifier for the chunk.
|
40 |
- title: The title of the page.
|
41 |
- url: The URL of the page.
|
|
|
42 |
- source_id: The source ID of the page.
|
43 |
- chunk_index: The index of the chunk.
|
44 |
- chunk_text: The text of the chunk.
|
|
|
60 |
revid BIGINT NOT NULL,
|
61 |
url VARCHAR NOT NULL,
|
62 |
title VARCHAR NOT NULL DEFAULT '',
|
|
|
63 |
ignored BOOLEAN NOT NULL DEFAULT FALSE,
|
64 |
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
65 |
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
|
69 |
id BIGSERIAL PRIMARY KEY,
|
70 |
title VARCHAR NOT NULL,
|
71 |
url VARCHAR NOT NULL,
|
|
|
72 |
source_id BIGINT NOT NULL,
|
73 |
chunk_index BIGINT NOT NULL,
|
74 |
chunk_text VARCHAR NOT NULL,
|
|
|
84 |
|
85 |
```sql
|
86 |
\copy ts_wikipedia_en FROM 'data/meta/ts_wikipedia_en.csv' CSV HEADER;
|
87 |
+
\copy ts_wikipedia_en_embed FROM 'data/chunks/0000000.csv' CSV HEADER;
|
88 |
+
\copy ts_wikipedia_en_embed FROM 'data/chunks/0000001.csv' CSV HEADER;
|
89 |
+
\copy ts_wikipedia_en_embed FROM 'data/chunks/0000002.csv' CSV HEADER;
|
90 |
...
|
91 |
```
|
92 |
|
|
|
94 |
|
95 |
```sql
|
96 |
copy ts_wikipedia_en FROM 'data/meta/ts_wikipedia_en.csv' CSV HEADER;
|
97 |
+
copy ts_wikipedia_en_embed FROM 'data/chunks/0000000.csv' CSV HEADER;
|
98 |
+
copy ts_wikipedia_en_embed FROM 'data/chunks/0000001.csv' CSV HEADER;
|
99 |
+
copy ts_wikipedia_en_embed FROM 'data/chunks/0000002.csv' CSV HEADER;
|
100 |
...
|
101 |
```
|
102 |
|
|
|
112 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_revid_index ON ts_wikipedia_en (revid);
|
113 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_url_index ON ts_wikipedia_en (url);
|
114 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_title_index ON ts_wikipedia_en (title);
|
|
|
115 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_ignored_index ON ts_wikipedia_en (ignored);
|
116 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_created_at_index ON ts_wikipedia_en (created_at);
|
117 |
CREATE INDEX IF NOT EXISTS ts_wikipedia_en_updated_at_index ON ts_wikipedia_en (updated_at);
|