fix formatting
Browse files
README.md
CHANGED
@@ -98,7 +98,9 @@ Alternatively, you can stream portions of the dataset as needed.
|
|
98 |
```python
|
99 |
from datasets import load_dataset
|
100 |
|
101 |
-
dataset = load_dataset(
|
|
|
|
|
102 |
|
103 |
for data in dataset:
|
104 |
data_id = data["id"]
|
@@ -135,8 +137,8 @@ from upstash_vector import Index
|
|
135 |
# You can create Upstash Vector with dimension set to 1024,
|
136 |
# and similarity search function to dot product.
|
137 |
index = Index(
|
138 |
-
url="
|
139 |
-
token="
|
140 |
)
|
141 |
|
142 |
vectors = []
|
|
|
98 |
```python
|
99 |
from datasets import load_dataset
|
100 |
|
101 |
+
dataset = load_dataset(
|
102 |
+
"Upstash/wikipedia-2024-06-bge-m3", "en", split="train", streaming=True
|
103 |
+
)
|
104 |
|
105 |
for data in dataset:
|
106 |
data_id = data["id"]
|
|
|
137 |
# You can create Upstash Vector with dimension set to 1024,
|
138 |
# and similarity search function to dot product.
|
139 |
index = Index(
|
140 |
+
url="<UPSTASH_VECTOR_REST_URL>",
|
141 |
+
token="<UPSTASH_VECTOR_REST_TOKEN>",
|
142 |
)
|
143 |
|
144 |
vectors = []
|