txtai-intro / README.md
davidmezzetti's picture
Add model
41b10c5
metadata
inference: false
language: en
license: apache-2.0
library_name: txtai
tags:
  - sentence-similarity

Introducing txtai model

This is a saved txtai embeddings index from the Introducing txtai example notebook.

txtai must be installed to use this model.

Example

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

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")