Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,43 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
---
|
4 |
+
|
5 |
+
A dataset consisting of Pokémon embeddings: text embeddings encoded from large amount of Pokémon metadata using [nomic-ai/nomic-embed-text-v1.5](https://huggingface.co/nomic-ai/nomic-embed-text-v1.5), and image embeddings encoded from the official Pokémon artwork using [nomic-ai/nomic-embed-vision-v1.5](https://huggingface.co/nomic-ai/nomic-embed-vision-v1.5).
|
6 |
+
|
7 |
+
No other metadata is present to avoid invoking the Nintendo Ninjas. To see how to retrieve additional metadata, see the "Get More Metadata" section.
|
8 |
+
|
9 |
+
## Fields
|
10 |
+
|
11 |
+
- `id`: Pokémon National Dex ID, which mapes to PokeAPI. "Special" Pokemon will have an id > 10000.
|
12 |
+
- `text_embedding`: 768D embedding of Pokémon medatadata
|
13 |
+
- `image_embedding`: 768D embedding of Pokémon images.
|
14 |
+
- `umap_2d_x`: x-coordinate value of a UMAP projection to 2D by concatenating the embeddings.
|
15 |
+
- `umap_2d_y`: y-coordinate value of a UMAP projection to 2D by concatenating the embeddings.
|
16 |
+
|
17 |
+
## Get More Metadata
|
18 |
+
|
19 |
+
You can retrieve more metadata using PokeAPI. An example:
|
20 |
+
|
21 |
+
```py3
|
22 |
+
import requests
|
23 |
+
|
24 |
+
graphql_query = """
|
25 |
+
{
|
26 |
+
pokemon_v2_pokemon(order_by: {id: asc}) {
|
27 |
+
id
|
28 |
+
name
|
29 |
+
}
|
30 |
+
}
|
31 |
+
"""
|
32 |
+
|
33 |
+
r = requests.post(
|
34 |
+
"https://beta.pokeapi.co/graphql/v1beta",
|
35 |
+
json={
|
36 |
+
"query": graphql_query,
|
37 |
+
},
|
38 |
+
)
|
39 |
+
|
40 |
+
pokemon = r.json()["data"]["pokemon_v2_pokemon"]
|
41 |
+
pokemon[0:10]
|
42 |
+
```
|
43 |
+
|