Datasets:
File size: 4,593 Bytes
2561b87 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
---
license: cc0-1.0
language:
- en
pretty_name: TreeOfLife-10M Vector database
task_categories: [image-feature-extraction]
tags:
- biology
- image
- animals
- CV
size_categories: 1M<n<10M
---
<!--
Image with caption (jpg or png):
||
|:--|
|**Figure #.** [Image of <>](https://huggingface.co/datasets/imageomics/<data-repo>/raw/main/<filepath>) <caption description>.|
-->
<!--
Notes on styling:
To render LaTex in your README, wrap the code in `\\(` and `\\)`. Example: \\(\frac{1}{2}\\)
Escape underscores ("_") with a "\". Example: image\_RGB
-->
# Dataset Card for TreeOfLife-10M Vector database
Persistent files for vector Database created with [chromadb](https://docs.trychroma.com/docs/overview/introduction)
containing the embeddings for all images in the [imageomics/TreeOfLife-10M](https://huggingface.co/datasets/imageomics/TreeOfLife-10M) dataset.
## Dataset Details
### Dataset Description
- **Curated by:** Sreejith Menon - [git](https://github.com/smenon8) [in](https://www.linkedin.com/in/smenon8/)
<!-- Provide the basic links for the dataset. These will show up on the sidebar to the right of your dataset card ("Curated by" too). -->
- **Homepage:** https://imageomics.github.io/
- **Repository:** [imageonomics/bioclip-vector-db](https://github.com/Imageomics/bioclip-vector-db)
- **Paper:** N/A
This dataset contains the generated vector database built using ChromaDb as the backend vector database solution for the entire TreeOfLife-10M dataset.
The rationale behind creating a vector database was to enable blazingly fast nearest neighbor search.
The vector database is loaded into memory and for a given query embedding in the same dimension as the vectors in the database, we calculate the inner product (ip) to calculate distances.
In this case all vectors are of the same dimension i.e. 512 dims.
The files in this dataset are binaries and cannot be read in raw format. The files in this dataset are intended to be used with chromadb.
Below is an example usage:
```py
import chromadb
client = chromadb.PersistentClient(path=self._collection_dir)
collection = client.get_or_create_collection(
name="imageomics/TreeOfLife-10M",
metadata={"hnsw:space": "ip", "hnsw:search_ef": 10},
)
# returns ID of 10 nearest neighbor. If an exact match exists,
# that will be the first returned result with a distance of 0.
collection.query(query_embeddings=[query_embedding], n_results=10)
```
## Dataset Structure
```
tol_vector_db/
βββ 97283350-138c-49b4-a4d4-9b93a33960da/
β βββ header.bin
β βββ index_metadata.pickle
β βββ data_level0.bin
β βββ link_lists.bin
β βββ length.bin
βββ chroma.sqlite3
```
## Dataset Creation
### Source Data
[imageomics/TreeOfLife-10M](https://huggingface.co/datasets/imageomics/TreeOfLife-10M) dataset was the source for all images in the database.
Along with every image in the database we also store the taxonomic information as additional columns in the vector database:
* kingdom
* phylum
* class
* order
* family
* genus
* species
* common name
The image embedding were generated using the [`TreeOfLifeClassifier`](https://github.com/Imageomics/pybioclip/blob/35ad338bb904d18b295dabf8b23377a343273c06/src/bioclip/predict.py#L429) available in the [pybioclip](https://github.com/Imageomics/pybioclip/tree/main) library.
## Citation
**BibTeX:**
**Data**
```
@misc{<ref_code>,
author = {Sreejith Menon},
title = {Tree Of Life 10M Vector Database},
year = {2025},
url = {https://huggingface.co/datasets/imageomics/tree-of-life-vector-db},
}
```
## Acknowledgements
This work was supported by the [Imageomics Institute](https://imageomics.org), which is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) program under [Award #2118240](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118240) (Imageomics: A New Frontier of Biological Information Powered by Knowledge-Guided Machine Learning). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
Speical thanks to:
* [Matt Thompson](https://github.com/thompsonmj)
## Dataset Card Authors
Sreejith Menon - [git](https://github.com/smenon8) [in](https://www.linkedin.com/in/smenon8/)
## Dataset Card Contact
Sreejith Menon - [git](https://github.com/smenon8) [in](https://www.linkedin.com/in/smenon8/)
|