Skip to content

Commit 1abbf7a

Browse files
committed
fixed the review comments
1 parent e78d1be commit 1abbf7a

6 files changed

Lines changed: 21 additions & 19 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI version](https://img.shields.io/pypi/v/qql-cli?color=blue&label=PyPI)](https://pypi.org/project/qql-cli/)
66
[![Python 3.12+](https://img.shields.io/pypi/pyversions/qql-cli)](https://pypi.org/project/qql-cli/)
77
[![MIT License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
8-
[![Tests](https://img.shields.io/badge/tests-371%20passing-brightgreen)](tests/)
8+
[![Tests](https://img.shields.io/badge/tests-375%20passing-brightgreen)](tests/)
99

1010
Write `INSERT`, `SEARCH`, `RECOMMEND`, `DELETE`, and `CREATE COLLECTION` statements instead of Python SDK calls. Supports hybrid dense+sparse vector search, cross-encoder reranking, quantization (scalar, binary, product), SQL-style `WHERE` filters, script execution, and collection dump/restore.
1111

@@ -23,7 +23,7 @@ qql> SEARCH notes SIMILAR TO 'vector databases' LIMIT 5 USING HYBRID RERANK
2323
✓ Found 1 result(s) (hybrid, reranked)
2424
Score │ ID │ Payload
2525
────────┼──────────────────────────────────────┼──────────────────────────────────────
26-
5.3714 │ 3f2e1a4b-8c91-4d0e-b123-abc123def456 │ {'text': 'Qdrant is a ...', 'author': 'alice', 'year': 2024}
26+
5.3754 │ 3f2e1a4b-8c91-4d0e-b123-abc123def456 │ {'text': 'Qdrant is a ...', 'author': 'alice', 'year': 2024}
2727
```
2828

2929
---
@@ -134,7 +134,7 @@ Tests do not require a running Qdrant instance — the Qdrant client is mocked.
134134
pytest tests/ -v
135135
```
136136

137-
Expected: **371 tests passing**.
137+
Expected: **375 tests passing**.
138138

139139
---
140140

docs/collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ CREATE COLLECTION <name> ... QUANTIZE PRODUCT [ALWAYS RAM]
8585
```
8686

8787
- **`QUANTILE <float>`** — (scalar only) calibration quantile for the INT8 conversion; defaults to Qdrant's built-in default (0.99) when omitted.
88-
- **`ALWAYS RAM`** — keep the **original** (unquantized) vectors in RAM for rescoring, sacrificing memory savings but preserving accuracy during re-ranking. Supported by all three types.
88+
- **`ALWAYS RAM`** — keep the **quantized** vectors in RAM at all times, regardless of the collection's `on_disk` setting. Improves search throughput at the cost of higher RAM usage for the compressed index. The original full-precision vectors are stored and managed independently of this flag. Supported by all three quantization types.
8989
- **`QUANTIZE`** always appears **after** all other clauses (`HYBRID`, `USING MODEL`, etc.).
9090
- For `PRODUCT`, the compression ratio is fixed at **** in this version.
9191
- When used with `HYBRID` collections, quantization applies only to the **dense** vector.
@@ -97,7 +97,7 @@ Scalar quantization (recommended default):
9797
CREATE COLLECTION research_papers QUANTIZE SCALAR
9898
```
9999

100-
Scalar with explicit calibration and original vectors kept in RAM:
100+
Scalar with explicit calibration and quantized vectors pinned to RAM:
101101
```sql
102102
CREATE COLLECTION research_papers QUANTIZE SCALAR QUANTILE 0.95 ALWAYS RAM
103103
```

docs/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h1>QQL</h1>
114114
<a href="https://pypi.org/project/qql-cli/"><img src="https://img.shields.io/pypi/v/qql-cli?color=blue&label=PyPI" alt="PyPI version" /></a>
115115
<a href="https://pypi.org/project/qql-cli/"><img src="https://img.shields.io/pypi/pyversions/qql-cli" alt="Python versions" /></a>
116116
<a href="https://github.com/pavanjava/qql/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT License" /></a>
117-
<a href="https://github.com/pavanjava/qql/actions"><img src="https://img.shields.io/badge/tests-371%20passing-brightgreen" alt="371 tests" /></a>
117+
<a href="https://github.com/pavanjava/qql/actions"><img src="https://img.shields.io/badge/tests-375%20passing-brightgreen" alt="375 tests" /></a>
118118
</div>
119119

120120
<pre><span class="cmt"># Install</span>
@@ -139,35 +139,35 @@ <h1>QQL</h1>
139139
<div class="links">
140140
<h2>Documentation</h2>
141141
<div class="grid">
142-
<a class="card" href="getting-started.md">
142+
<a class="card" href="getting-started">
143143
<h3>Getting Started</h3>
144144
<p>Installation, connecting to Qdrant, your first queries</p>
145145
</a>
146-
<a class="card" href="insert.md">
146+
<a class="card" href="insert">
147147
<h3>INSERT / INSERT BULK</h3>
148148
<p>Adding documents, batch inserts, payload types</p>
149149
</a>
150-
<a class="card" href="search.md">
150+
<a class="card" href="search">
151151
<h3>SEARCH / RECOMMEND</h3>
152152
<p>Semantic search, hybrid search, reranking, recommendations</p>
153153
</a>
154-
<a class="card" href="filters.md">
154+
<a class="card" href="filters">
155155
<h3>WHERE Filters</h3>
156156
<p>Full SQL-style filter operators — range, IN, MATCH, AND/OR/NOT</p>
157157
</a>
158-
<a class="card" href="collections.md">
158+
<a class="card" href="collections">
159159
<h3>Collections &amp; Quantization</h3>
160160
<p>CREATE, DROP, quantize (scalar/binary/product), payload indexes</p>
161161
</a>
162-
<a class="card" href="scripts.md">
162+
<a class="card" href="scripts">
163163
<h3>Scripts: EXECUTE / DUMP</h3>
164164
<p>Run script files, export collections for backup/migration</p>
165165
</a>
166-
<a class="card" href="programmatic.md">
166+
<a class="card" href="programmatic">
167167
<h3>Programmatic Usage</h3>
168168
<p>Use QQL as a Python library without the CLI</p>
169169
</a>
170-
<a class="card" href="reference.md">
170+
<a class="card" href="reference">
171171
<h3>Reference</h3>
172172
<p>Embedding models, config file, project structure, error guide</p>
173173
</a>
@@ -177,7 +177,7 @@ <h3>Reference</h3>
177177
<div class="cta">
178178
<a class="btn btn-primary" href="https://github.com/pavanjava/qql">View on GitHub</a>
179179
<a class="btn btn-secondary" href="https://pypi.org/project/qql-cli/">PyPI Package</a>
180-
<a class="btn btn-secondary" href="getting-started.md">Get Started →</a>
180+
<a class="btn btn-secondary" href="getting-started">Get Started →</a>
181181
</div>
182182

183183
<footer>

docs/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Tests do not require a running Qdrant instance — the Qdrant client is mocked.
159159
pytest tests/ -v
160160
```
161161

162-
Expected output: **371 tests passing**.
162+
Expected output: **375 tests passing**.
163163

164164
---
165165

docs/scripts.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ Done. 3/3 statement(s) succeeded.
7272

7373
## DUMP COLLECTION — export collection to a .qql script file
7474

75-
Export every point in a collection to a `.qql` script file. The generated file is valid QQL — it can be re-imported with `qql execute` to restore or migrate the collection. Points are written in batches of 50 as `INSERT BULK` statements.
75+
Export every point in a collection to a `.qql` script file. The generated file is valid QQL that re-creates the collection and re-inserts all payload data. Points are written in batches of 50 as `INSERT BULK` statements.
76+
77+
> **Scope of a dump:** The generated script preserves collection topology (dense vs hybrid) and all point payloads. It does **not** preserve quantization config, pinned model / vector dimensions, or payload indexes — those must be re-applied manually after import if needed.
7678
7779
**CLI usage:**
7880
```bash
@@ -136,7 +138,7 @@ INSERT BULK INTO COLLECTION medical_records VALUES [
136138
-- ============================================================
137139
```
138140

139-
**Round-trip workflow — backup and restore:**
141+
**Round-trip workflow — data migration / partial restore:**
140142
```bash
141143
# 1. Dump the collection
142144
qql dump medical_records backup.qql

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "qql-cli"
3-
version = "2.0.0"
3+
version = "1.4.0"
44
description = "QQL is a SQL-like query language and CLI for Qdrant vector database. Write INSERT, SEARCH, RECOMMEND, DELETE, and CREATE COLLECTION statements instead of Python SDK calls. Supports hybrid dense+sparse vector search, cross-encoder reranking, quantization (scalar, binary, product), WHERE clause filters, script execution, and collection dump/restore."
55
readme = "README.md"
66
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)