Skip to main content

a modular Python framework for semantic search, vector indexing, and retrieval-augmented generation

Project description

MelowRAG

MelowRAG is a modular Python framework for semantic search, vector indexing, and retrieval-augmented generation (RAG). It provides a unified interface for embedding, indexing, searching, and managing data using dense, sparse, and hybrid vector models.

Features

  • Embeddings Management: Transform data into embeddings using various backends.
  • Flexible Indexing: Build, update, and search indexes with support for dense, sparse, and hybrid models.
  • Database Integration: Store and retrieve content using pluggable database backends.
  • Graph Algorithms: Advanced graph-based search and topic modeling.
  • Pipelines: Modular pipelines for text, audio, and image processing.
  • Remote Storage: Archive and load indexes from local or cloud storage.
  • Extensible: Easily add new models, scoring functions, or storage backends.

Quick Start

from melowrag import Embeddings

# Initialize embeddings
embedding = Embeddings()

# Index some texts
texts = ["The cat sat on the mat.", "Dogs are wonderful companions."]
embedding.index(texts)

# Search for similar content
results = embedding.search("animal companions", 1)
for result in results:
    print(f"Index: {result.index}, Score: {result.score}")

Installation

pip install -e .

License

This project is licensed under the terms of the MIT license.

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

melowrag-0.0.2.tar.gz (123.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

melowrag-0.0.2-py3-none-any.whl (258.0 kB view details)

Uploaded Python 3

File details

Details for the file melowrag-0.0.2.tar.gz.

File metadata

  • Download URL: melowrag-0.0.2.tar.gz
  • Upload date:
  • Size: 123.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-29-generic

File hashes

Hashes for melowrag-0.0.2.tar.gz
Algorithm Hash digest
SHA256 61ab4c5a3b1053afecbcd43acfad7600f235cb7f09854100fbf074fecfb11652
MD5 7323dee9d6e2dcdfc99f97d1258179c1
BLAKE2b-256 f6e3863cbe75a3ebb4184eb1e39fa963181c7e9566f9830369af30178b666523

See more details on using hashes here.

File details

Details for the file melowrag-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: melowrag-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 258.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-29-generic

File hashes

Hashes for melowrag-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf63f0094e2609cc71c556e7f1a69ac1da5ddcd6d3eadffe9a6adc7a5bce3d5
MD5 cd13885a22a985a023f21e0bb0ee0697
BLAKE2b-256 6ebd1a9efd663195474c71c61230f866378d10a5c761afb104cc87566fde72c3

See more details on using hashes here.

Supported by

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