File size: 820 Bytes
09a2638
41b10c5
 
09a2638
41b10c5
 
 
09a2638
41b10c5
f351035
41b10c5
f351035
41b10c5
 
 
 
 
 
 
 
 
 
 
 
cf41664
41b10c5
 
 
 
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
---
inference: false
language: en
license: apache-2.0
library_name: txtai
tags:
- sentence-similarity
---

# Introducing txtai embeddings index

This is a [txtai](https://github.com/neuml/txtai) embeddings index from the [Introducing txtai](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/01_Introducing_txtai.ipynb) example notebook.

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

## Example

Version 5.4 added support for loading embeddings indexes from the Hugging Face Hub. See the example below.

```python
from txtai.embeddings import Embeddings

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

# Run a search
embeddings.search("Tell me a feel good story")
```