Skip to main content

Lightweight & Fast Python library to add low-footprint (all-MiniLM-* equivalent) multilingual retrievers to your RAG and Search & Retrieval pipelines.

Project description

What is FlashEmbed?

Lightweight & Fast Python library to add low-footprint (all-MiniLM-* equivalent) multilingual retrievers to your RAG and Search & Retrieval pipelines. No heavy torch or transformer dependencies like it's Sister library FlashRank. FlashEmbed uses miniMiracle* series of models. Ofcourse we will be adding more retrievers in future.

📖 License & Terms

The library is licensed under Apache 2.0 but the weights are licensed differently see below for details. Note: The below license & terms apply ONLY for miniMiracle series models. Use responsibly.

🚀 Installation

pip install flashembed

Supported Models

📖 Usage

from flashembed import Embedder
from typing import List

passages = [
    'एक आदमी खाना खा रहा है।',
    'लोग ब्रेड का एक टुकड़ा खा रहे हैं।',
    'लड़की एक बच्चे को उठाए हुए है।',
    'एक आदमी घोड़े पर सवार है।',
    'एक महिला वायलिन बजा रही है।',
    'दो आदमी जंगल में गाड़ी धकेल रहे हैं।',
    'एक आदमी एक सफेद घोड़े पर एक बंद मैदान में सवारी कर रहा है।',
    'एक बंदर ड्रम बजा रहा है।',
    'एक चीता अपने शिकार के पीछे दौड़ रहा है।',
    'एक बड़ा डिनर है।'
]
    

# Onetime Init and Load model
embedder = Embedder('prithivida/miniMiracle_hi_v1')

embeddings = embedder.encode(passages) 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flashembed-0.0.2.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

flashembed-0.0.2-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page