Qdrant wrapper for simple ingestion & retrieval with pluggable embeddings
Project description
qmem — Qdrant Memory Wrapper
qmem is a lightweight wrapper around Qdrant for easy ingestion and retrieval with embeddings.
Supports both CLI and Python API.
🚀 Installation
pip install -e .
⚙️ CLI Usage
1. Init (configure keys & embedding model)
qmem init
2. Ingest data
qmem ingest
You’ll be prompted for:
- collection_name
- data file path (JSON or JSONL)
- field to embed (e.g.
query,response,sql_query,doc_id) - payload fields (comma-separated, leave empty to keep all)
3. Retrieve results
qmem retrieve
You’ll be prompted for:
- collection_name
- query
- top_k (number of results to return)
🐍 Python API
import qmem as qm
# Create a collection
qm.create(collection_name="test_learn", dim=1536, distance_metric="cosine")
# Ingest data from a file
qm.ingest(
file="/home/aniruddha/Desktop/QMEM_PIP/qmem_pip/qmem/data.jsonl",
embed_field="sql_query",
payload_field="query,response", # optional, keep these fields in payload
)
# Retrieve results (pretty table by default)
table = qm.retrieve(query="list customers", top_k=5)
print(table)
📄 License
MIT
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
qmem-0.0.3.tar.gz
(16.1 kB
view details)
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
qmem-0.0.3-py3-none-any.whl
(18.5 kB
view details)
File details
Details for the file qmem-0.0.3.tar.gz.
File metadata
- Download URL: qmem-0.0.3.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5107884958e662dd9f1946f99bb4e9c7888400eaa04f69a60fd29fa9874ba00f
|
|
| MD5 |
05270597a48d7805189f7152f5382861
|
|
| BLAKE2b-256 |
94cc8e43119390b54a7a6aa397d0f70392186d55f753b8b72276af67409ee712
|
File details
Details for the file qmem-0.0.3-py3-none-any.whl.
File metadata
- Download URL: qmem-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe1ec3bce789bc2194a5fad06062e8c53ef643efa7b66bb0cf2a4ffdc2bc7fc8
|
|
| MD5 |
67e9a818645f58d0aea14ff1a472952c
|
|
| BLAKE2b-256 |
dd961c0e2afbd442a099f87aee9c5c9a3e621b4a8fd1a3df0fa2d9ce0a67068d
|