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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20a2772331807a7035edd12aa305bcfe38849c2d5adef340b4762274edaff615
|
|
| MD5 |
4f8563848bcf702f7c981ac44126a0a2
|
|
| BLAKE2b-256 |
fc7e497314a1952746bee84e9cea0a9a0e377a80cc7a781b2977c26011297b30
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f149847199ac40aefd64117ea740e1b639c5a31ec4d4bb9727723bfa1cbf0e
|
|
| MD5 |
c44ae8126adc807405053ab49b2bb2bd
|
|
| BLAKE2b-256 |
aff888420e12b08e9325355ea2de63528b0bfc087d1deda082fc023197b393a9
|