fastembed 0.0.1
pip install fastembed==0.0.1
Newer version available (0.7.1)
Released:
Fast Embedding Creation and Simpler API for Qdrant
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Other/Proprietary License (Apache License)
- Author: NirantK
- Tags vector , embedding , neural , search , qdrant , sentence-transformers
- Requires: Python >=3.8.0, <3.12
Classifiers
- License
- Programming Language
Project description
FastEmbed Library
FastEmbed is a Python library that provides convenient methods for indexing and searching text documents using Qdrant, a high-dimensional vector indexing and search system.
Features
- Batch document insertion with automatic embedding using SentenceTransformers. With support for OpenAI and custom embeddings.
- Efficient batch searching with support for filtering by metadata.
- Automatic generation of unique IDs for documents.
- Convenient alias methods for adding documents and performing queries.
Installation
To install the FastEmbed library, we install Qdrant client as well with pip:
pip install fastembed qdrant-client
Usage
Here's a simple usage example, which works as is:
from qdrant_client import QdrantClient
# Initialize the client
client = QdrantClient(":memory:") # or QdrantClient(path="path/to/db")
# Prepare your documents, metadata, and IDs
docs = ["Qdrant has Langchain integrations", "Qdrant also has Llama Index integrations"]
metadatas = [
{"source": "Langchain-docs"},
{"source": "Linkedin-docs"},
]
ids = [42, 2]
# Use the new add method
client.add(collection_name="demo_collection", docs={"documents": docs, "metadatas": metadatas, "ids": ids})
search_result = client.query(collection_name="demo_collection", query_texts=["This is a query document"])
print(search_result)
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Other/Proprietary License (Apache License)
- Author: NirantK
- Tags vector , embedding , neural , search , qdrant , sentence-transformers
- Requires: Python >=3.8.0, <3.12
Classifiers
- License
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fastembed-0.0.1.tar.gz
.
File metadata
- Download URL: fastembed-0.0.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
97bed27ff672277d3329ca2585d56dbbfc7ba26cb4f0ea71975e9d4328ca5b02
|
|
MD5 |
0d3dfc1620ca5cc5559556aec7ef5242
|
|
BLAKE2b-256 |
a6d31a444d366b3263aa6121f7fabcdada2439902a82a5208e1865834a223040
|
File details
Details for the file fastembed-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: fastembed-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
53e4a355792d0848591d090ee80d03cef5ee27b1914f2dfc77dde09dd506100c
|
|
MD5 |
2bb7a556dc2b1f2509cd9c4938ac677c
|
|
BLAKE2b-256 |
ac7354aaed0e8b5a8cb4f3b3dc3b4117a66fc05c00b988c3e27755d4ae31cda5
|