Sentence Similarity
English
txtai
File size: 1,040 Bytes
da25ec9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
inference: false
language: en
license:
- cc-by-sa-3.0
- gfdl
library_name: txtai
tags:
- sentence-similarity
datasets:
- NeuML/constellations
---

# Astronomy txtai embeddings

This is a [txtai](https://github.com/neuml/txtai) embeddings index for a filtered set of articles about astronomy from [txtai-wikipedia](https://hf.co/neuml/txtai-wikipedia) combined with this [dataset of stars by constellation](https://hf.co/datasets/neuml/constellations).

txtai must be [installed](https://neuml.github.io/txtai/install/) to use this model.

## Example

This index can be loaded from the Hugging Face Hub with txtai as shown below.

```python
from txtai import Embeddings

# Load the index from the HF Hub
embeddings = Embeddings()
embeddings.load(provider="huggingface-hub", container="neuml/txtai-astronomy")

# Search for matching documents
embeddings.search("potential habitable planets")
```

## More information

Read more about this model and how it was built in [this article](https://neuml.hashnode.dev/parsing-the-s-with-txtai).