Improve model card: Add metadata, description, project page, and usage example

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +70 -4
README.md CHANGED
@@ -2,10 +2,76 @@
2
  tags:
3
  - model_hub_mixin
4
  - pytorch_model_hub_mixin
 
 
 
5
  ---
6
 
7
- This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
8
 
9
- [![GitHub Repo](https://img.shields.io/badge/github-repo-blue?logo=github)](https://github.com/NolanKoblischke/AION-Search) [![arXiv](https://img.shields.io/badge/arXiv-2512.11982-b31b1b.svg)](https://arxiv.org/abs/2512.11982)
10
- - Code: [Github](https://github.com/NolanKoblischke/AION-Search)
11
- - Paper: [ArXiv](https://arxiv.org/abs/2512.11982)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  tags:
3
  - model_hub_mixin
4
  - pytorch_model_hub_mixin
5
+ license: mit
6
+ pipeline_tag: visual-document-retrieval
7
+ library_name: aionsearch
8
  ---
9
 
10
+ # AION-Search: Semantic search for 100M+ galaxy images using AI-generated captions
11
 
12
+ AION-Search is a novel text-based search engine for galaxy images, developed to find scientifically interesting phenomena using natural language queries from completely unlabeled image data. As presented in the paper [Semantic search for 100M+ galaxy images using AI-generated captions](https://huggingface.co/papers/2512.11982), this method leverages Vision-Language Models (VLMs) to generate descriptions for galaxy images, then contrastively aligns a pre-trained multimodal astronomy foundation model to produce searchable embeddings at scale. It was trained on 300k captions generated by GPT-4.1-mini.
13
+
14
+ This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration.
15
+
16
+ - **Paper:** [Semantic search for 100M+ galaxy images using AI-generated captions](https://huggingface.co/papers/2512.11982)
17
+ - **Code:** [GitHub Repository](https://github.com/NolanKoblischke/AION-Search)
18
+ - **Project Page:** [AION-Search Project Page](https://aion-search.github.io)
19
+ - **Demo:** [AION-Search App](https://astronolan-aion-search.hf.space/)
20
+ - **Datasets:** [HuggingFace Datasets Collection](https://huggingface.co/collections/astronolan/aion-search)
21
+
22
+ ## Quick Start
23
+
24
+ ### Installation
25
+
26
+ ```bash
27
+ git clone https://github.com/astronolan/aion-search.git
28
+ cd aion-search
29
+ pip install -e . # or uv pip install -e .
30
+ ```
31
+
32
+ ### Requirements
33
+
34
+ This package requires an **OpenAI API key** for generating text embeddings.
35
+
36
+ 1. Get your API key at [platform.openai.com](https://platform.openai.com)
37
+ 2. Create a `.env` file in the project root:
38
+ ```bash
39
+ OPENAI_API_KEY=sk-your-key-here
40
+ ```
41
+
42
+ ### Usage
43
+
44
+ ```python
45
+ from aionsearch import AIONSearchClipModel
46
+
47
+ # Load pretrained model from HuggingFace
48
+ model = AIONSearchClipModel.from_pretrained()
49
+
50
+ # Project AION image embeddings into shared space
51
+ aion_embedding = # Embedding of an image using github.com/PolymathicAI/AION
52
+ projected_image = model.image_projector(aion_embedding) # (batch, 768) -> (batch, 1024)
53
+
54
+ # Project OpenAI text embeddings into shared space
55
+ text_embedding = # Embedding of text using text-embedding-3-large
56
+ projected_text = model.text_projector(text_embedding) # (batch, 3072) -> (batch, 1024)
57
+
58
+ # Compute similarity for semantic search
59
+ similarity = projected_image @ projected_text.T
60
+ ```
61
+
62
+ See [`examples/quick_start.ipynb`](https://github.com/NolanKoblischke/AION-Search/blob/main/examples/quick_start.ipynb) for a complete walkthrough that downloads a galaxy image, generates embeddings with AION, and performs text-to-image similarity search.
63
+
64
+ ## Citation
65
+
66
+ If you find this work useful, please cite:
67
+
68
+ ```bibtex
69
+ @misc{koblischke2025semantic,
70
+ title={Semantic search for 100M+ galaxy images using AI-generated captions},
71
+ author={Nolan Koblischke and Liam Parker and Francois Lanusse and Irina Espejo Morales and Jo Bovy and Shirley Ho},
72
+ year={2025},
73
+ eprint={2512.11982},
74
+ archivePrefix={arXiv},
75
+ primaryClass={astro-ph.IM},
76
+ url={https://arxiv.org/abs/2512.11982},
77
+ }