模型:
NeuML/txtai-intro
这是一个来自示例笔记本的 txtai 嵌入索引。
要使用此模型,需要安装 installed 。
版本5.4新增了从Hugging Face Hub加载嵌入索引的支持。请参见下面的示例。
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")