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.
🚀 Install pip install -e .
⚙️ CLI Usage
-
Init (set config) qmem init
-
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)
- 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 collection
qm.create(collection_name="test_learn", dim=1536, distance_metric="cosine")
Ingest data from file
qm.ingest( file="/home/aniruddha/Desktop/QMEM_PIP/qmem_pip/qmem/data.jsonl", embed_field="sql_query", payload_field="query,response", # keep these in payload (optional) )
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
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 qmem-0.0.1.tar.gz.
File metadata
- Download URL: qmem-0.0.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
254f218139c02cd6b427f923db413e30e1360725dea2f88976022b16a82edd40
|
|
| MD5 |
7178b95a7dfe22828cfd8d1981225502
|
|
| BLAKE2b-256 |
0adfc0962efb2a21179ab2fcfaf78112b627b87d0e64b8f04cfbf768f3feeb35
|
File details
Details for the file qmem-0.0.1-py3-none-any.whl.
File metadata
- Download URL: qmem-0.0.1-py3-none-any.whl
- Upload date:
- Size: 18.4 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 |
84d7b25c9a19d94900fd8fafeaaefd82ff0451dcaf3c36f7440d3d73b22d7814
|
|
| MD5 |
1105f88194341b2fa6eb4fd657ccd9cb
|
|
| BLAKE2b-256 |
cddb13dc1ba9e00ce34c3ceb50db35e5689a379b4949833bd2d957a249173e2d
|