Update README.md
Browse files
README.md
CHANGED
|
@@ -14,6 +14,8 @@ configs:
|
|
| 14 |
data_files: openai/text-embedding-3-large/*.parquet
|
| 15 |
- config_name: snowflake-arctic-embed
|
| 16 |
data_files: ollama/snowflake-arctic/*.parquet
|
|
|
|
|
|
|
| 17 |
size_categories:
|
| 18 |
- 100K<n<1M
|
| 19 |
---
|
|
@@ -33,8 +35,7 @@ You can also load the dataset with vectors, like this:
|
|
| 33 |
|
| 34 |
```python
|
| 35 |
from datasets import load_dataset
|
| 36 |
-
dataset = load_dataset("weaviate/wiki-sample", "
|
| 37 |
-
# dataset = load_dataset("weaviate/wiki-sample", "snowflake-arctic-embed", split="train", streaming=True)
|
| 38 |
|
| 39 |
for item in dataset:
|
| 40 |
print(item["text"])
|
|
@@ -61,6 +62,33 @@ from datasets import load_dataset
|
|
| 61 |
dataset = load_dataset("weaviate/wiki-sample", split="train", streaming=True)
|
| 62 |
```
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
### AWS
|
| 65 |
|
| 66 |
**aws-titan-embed-text-v2** - 1024d vectors - generated with AWS Bedrock
|
|
|
|
| 14 |
data_files: openai/text-embedding-3-large/*.parquet
|
| 15 |
- config_name: snowflake-arctic-embed
|
| 16 |
data_files: ollama/snowflake-arctic/*.parquet
|
| 17 |
+
- config_name: weaviate-snowflake-arctic-v2
|
| 18 |
+
data_files: weaviate/snowflake-arctic-v2/*.parquet
|
| 19 |
size_categories:
|
| 20 |
- 100K<n<1M
|
| 21 |
---
|
|
|
|
| 35 |
|
| 36 |
```python
|
| 37 |
from datasets import load_dataset
|
| 38 |
+
dataset = load_dataset("weaviate/wiki-sample", "weaviate-snowflake-arctic-v2", split="train", streaming=True)
|
|
|
|
| 39 |
|
| 40 |
for item in dataset:
|
| 41 |
print(item["text"])
|
|
|
|
| 62 |
dataset = load_dataset("weaviate/wiki-sample", split="train", streaming=True)
|
| 63 |
```
|
| 64 |
|
| 65 |
+
### Weaviate Embedding Service
|
| 66 |
+
|
| 67 |
+
**snowflake-arctic-embed-l-v2.0** - 1024d vectors - generated with Weaviate Embedding Service
|
| 68 |
+
|
| 69 |
+
```python
|
| 70 |
+
from datasets import load_dataset
|
| 71 |
+
dataset = load_dataset("weaviate/wiki-sample", "weaviate-snowflake-arctic-v2", split="train", streaming=True)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
#### Weaviate collection configuration:
|
| 75 |
+
|
| 76 |
+
```python
|
| 77 |
+
from weaviate.classes.config import Configure
|
| 78 |
+
|
| 79 |
+
client.collections.create(
|
| 80 |
+
name="Wiki",
|
| 81 |
+
|
| 82 |
+
vectorizer_config=[
|
| 83 |
+
Configure.NamedVectors.text2vec_weaviate(
|
| 84 |
+
name="main_vector",
|
| 85 |
+
model="Snowflake/snowflake-arctic-embed-l-v2.0",
|
| 86 |
+
source_properties=['title', 'text'], # which properties should be used to generate a vector
|
| 87 |
+
)
|
| 88 |
+
],
|
| 89 |
+
)
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
### AWS
|
| 93 |
|
| 94 |
**aws-titan-embed-text-v2** - 1024d vectors - generated with AWS Bedrock
|