vxdb 0.2.0__tar.gz → 0.2.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.2.0 → vxdb-0.2.1}/Cargo.lock +3 -3
- {vxdb-0.2.0 → vxdb-0.2.1}/Cargo.toml +1 -1
- {vxdb-0.2.0 → vxdb-0.2.1}/PKG-INFO +1 -1
- {vxdb-0.2.0 → vxdb-0.2.1}/pyproject.toml +1 -1
- vxdb-0.2.1/python/vxdb/__init__.py +16 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/python/vxdb/embedding.py +3 -5
- vxdb-0.2.0/python/vxdb/__init__.py +0 -7
- {vxdb-0.2.0 → vxdb-0.2.1}/README.md +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/Cargo.toml +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/collection.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/cosine.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/dot.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/euclidean.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/mod.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/error.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/filter.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/hybrid.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/index/flat.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/index/hnsw.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/index/mod.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/lib.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/metadata.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/mmap.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/mod.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/persistent.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/wal.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/types.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-python/Cargo.toml +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-python/src/lib.rs +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/python/vxdb/_vxdb.pyi +0 -0
- {vxdb-0.2.0 → vxdb-0.2.1}/python/vxdb/client.py +0 -0
- {vxdb-0.2.0 → vxdb-0.2.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.2.
|
|
1764
|
+
version = "0.2.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.2.
|
|
1778
|
+
version = "0.2.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.2.
|
|
1787
|
+
version = "0.2.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.2.
|
|
7
|
+
version = "0.2.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"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""vxdb — A lightweight, high-performance vector store."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
from vxdb._vxdb import Collection, Database
|
|
6
|
+
from vxdb.client import Client
|
|
7
|
+
from vxdb.embedding import EmbeddingFunction
|
|
8
|
+
|
|
9
|
+
__all__ = ["Database", "Collection", "Client", "EmbeddingFunction"]
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
# Single-source the version from installed package metadata so it can never
|
|
13
|
+
# drift from pyproject/Cargo again.
|
|
14
|
+
__version__ = version("vxdb")
|
|
15
|
+
except PackageNotFoundError: # running from a source tree without an installed dist
|
|
16
|
+
__version__ = "0.0.0+source"
|
|
@@ -14,11 +14,9 @@ class EmbeddingFunction(ABC):
|
|
|
14
14
|
def embed(self, texts: list[str]) -> list[list[float]]:
|
|
15
15
|
return [[0.1, 0.2] for _ in texts]
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
embedding_fn=my_embedder,
|
|
21
|
-
)
|
|
17
|
+
embedder = MyEmbedder()
|
|
18
|
+
docs = ["hello"]
|
|
19
|
+
collection.upsert(ids=["a"], vectors=embedder.embed(docs), documents=docs)
|
|
22
20
|
"""
|
|
23
21
|
|
|
24
22
|
@abstractmethod
|
|
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
|