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.0.tar.gz (120.8 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.0-py3-none-any.whl (192.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: melowrag-0.0.0.tar.gz
  • Upload date:
  • Size: 120.8 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.0.tar.gz
Algorithm Hash digest
SHA256 20a2772331807a7035edd12aa305bcfe38849c2d5adef340b4762274edaff615
MD5 4f8563848bcf702f7c981ac44126a0a2
BLAKE2b-256 fc7e497314a1952746bee84e9cea0a9a0e377a80cc7a781b2977c26011297b30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: melowrag-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 192.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33f149847199ac40aefd64117ea740e1b639c5a31ec4d4bb9727723bfa1cbf0e
MD5 c44ae8126adc807405053ab49b2bb2bd
BLAKE2b-256 aff888420e12b08e9325355ea2de63528b0bfc087d1deda082fc023197b393a9

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