Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fastembed #28967

Merged
merged 16 commits into from
Feb 14, 2025
72 changes: 72 additions & 0 deletions recipes/fastembed/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
context:
version: 0.5.1

package:
name: fastembed
version: ${{ version }}

source:
- url: https://pypi.org/packages/source/f/fastembed/fastembed-${{ version }}.tar.gz
sha256: 93ccdbead9daadde6af37862c53b92fd15fa3115d20bbddb258faa0a5eb36718

build:
number: 0
noarch: python
script: ${{ PYTHON }} -m pip install .

requirements:
host:
- python
- poetry-core
- pip
run:
- python
- huggingface_hub <1.0,>=0.20
- loguru <0.8.0,>=0.7.2
- mmh3 <5.0.0,>=4.1.0
- if: match(python, "<3.10")
then: numpy >=1.21,<2.1.0
else:
- if: match(python, ">=3.10,<3.12")
then: numpy >=1.21
else:
- if: match(python, ">=3.12,<3.13")
then: numpy >=1.26
else: numpy >=2.1.0
- if: match(python, "<3.10")
then: numpy >=1.21,<2.1.0
else:
- if: match(python, ">=3.10,<3.12")
then: numpy >=1.21
else:
- if: match(python, ">=3.12,<3.13")
moritzwilksch marked this conversation as resolved.
Show resolved Hide resolved
then: numpy >=1.26
else: numpy >=2.1.0
- if: match(python, "<3.10")
then: onnxruntime >=1.17.0,<1.20.0
else:
- if: match(python, ">=3.10,<3.13")
then: onnxruntime >=1.17.0,!=1.20.0
else: onnxruntime >1.20.0
- pillow <11.0.0,>=10.3.0
- py-rust-stemmers <0.2.0,>=0.1.0
- requests <3.0,>=2.31
- tokenizers <1.0,>=0.15
- tqdm <5.0,>=4.66

tests:
- python:
imports:
- fastembed
pip_check: true

about:
homepage: https://github.com/qdrant/fastembed
summary: Fast, light, accurate library built for retrieval embedding generation
license: Apache-2.0
license_file:
- LICENSE

extra:
recipe-maintainers:
- moritzwilksch