mirror of
https://github.com/qdrant/fastembed.git
synced 2026-08-04 00:51:08 -05:00
9fb7c0678f5eb7cc99eaac1775a8ab2fb6eb55a4
FastEmbed Library
FastEmbed is a Python library that provides convenient methods for indexing and searching text documents
Installation
To install the FastEmbed library, we recommend using Poetry, alternatively -- pip works:
pip install fastembed
Usage
from fastembed.embedding import DefaultEmbedding
documents: List[str] = [
"Hello, World!",
"This is an example document.",
"fastembed is supported by and maintained by Qdrant." * 128,
]
# Initialize the DefaultEmbedding class with the desired parameters
# model_name="BAAI/bge-small-en"
embedding_model = DeafultEmbedding()
embeddings: List[np.ndarray] = list(embedding_model.encode(documents))
Description
Languages
Python
87%
Jupyter Notebook
13%