vxdb 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vxdb-0.3.0 → vxdb-0.3.1}/Cargo.lock +3 -3
- {vxdb-0.3.0 → vxdb-0.3.1}/Cargo.toml +1 -1
- {vxdb-0.3.0 → vxdb-0.3.1}/PKG-INFO +1 -1
- {vxdb-0.3.0 → vxdb-0.3.1}/pyproject.toml +1 -1
- {vxdb-0.3.0 → vxdb-0.3.1}/python/vxdb/embedded.py +6 -1
- {vxdb-0.3.0 → vxdb-0.3.1}/README.md +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/Cargo.toml +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/collection.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/distance/cosine.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/distance/dot.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/distance/euclidean.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/distance/mod.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/error.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/filter.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/hybrid.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/index/flat.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/index/hnsw.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/index/mod.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/lib.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/storage/metadata.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/storage/mmap.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/storage/mod.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/storage/persistent.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/storage/wal.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-core/src/types.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-python/Cargo.toml +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/crates/vxdb-python/src/lib.rs +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/python/vxdb/__init__.py +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/python/vxdb/_vxdb.pyi +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/python/vxdb/client.py +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/python/vxdb/embedding.py +0 -0
- {vxdb-0.3.0 → vxdb-0.3.1}/python/vxdb/py.typed +0 -0
|
@@ -1761,7 +1761,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
|
1761
1761
|
|
|
1762
1762
|
[[package]]
|
|
1763
1763
|
name = "vxdb-core"
|
|
1764
|
-
version = "0.3.
|
|
1764
|
+
version = "0.3.1"
|
|
1765
1765
|
dependencies = [
|
|
1766
1766
|
"memmap2",
|
|
1767
1767
|
"parking_lot",
|
|
@@ -1775,7 +1775,7 @@ dependencies = [
|
|
|
1775
1775
|
|
|
1776
1776
|
[[package]]
|
|
1777
1777
|
name = "vxdb-python"
|
|
1778
|
-
version = "0.3.
|
|
1778
|
+
version = "0.3.1"
|
|
1779
1779
|
dependencies = [
|
|
1780
1780
|
"pyo3",
|
|
1781
1781
|
"serde_json",
|
|
@@ -1784,7 +1784,7 @@ dependencies = [
|
|
|
1784
1784
|
|
|
1785
1785
|
[[package]]
|
|
1786
1786
|
name = "vxdb-server"
|
|
1787
|
-
version = "0.3.
|
|
1787
|
+
version = "0.3.1"
|
|
1788
1788
|
dependencies = [
|
|
1789
1789
|
"axum",
|
|
1790
1790
|
"clap",
|
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vxdb"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "A lightweight, high-performance vector database with a Rust backend. Hybrid search, embedded + server modes, zero dependencies."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -58,7 +58,12 @@ class Collection:
|
|
|
58
58
|
vector = _embed(self.embedding_function, [query_text])[0]
|
|
59
59
|
return self._native.query(vector=vector, top_k=top_k, filter=filter)
|
|
60
60
|
|
|
61
|
-
def hybrid_query(self,
|
|
61
|
+
def hybrid_query(self, vector=None, query=None, top_k=10, alpha=0.5):
|
|
62
|
+
# `vector` stays first to match the native positional order
|
|
63
|
+
# `hybrid_query(vector, query, ...)`. `query` (the BM25 text) is required;
|
|
64
|
+
# `vector` is embedded from it when omitted.
|
|
65
|
+
if query is None:
|
|
66
|
+
raise ValueError("hybrid_query requires `query` text (the keyword/BM25 component)")
|
|
62
67
|
if vector is None:
|
|
63
68
|
vector = _embed(self.embedding_function, [query])[0]
|
|
64
69
|
return self._native.hybrid_query(vector=vector, query=query, top_k=top_k, alpha=alpha)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|