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.
Files changed (32) hide show
  1. {vxdb-0.2.0 → vxdb-0.2.1}/Cargo.lock +3 -3
  2. {vxdb-0.2.0 → vxdb-0.2.1}/Cargo.toml +1 -1
  3. {vxdb-0.2.0 → vxdb-0.2.1}/PKG-INFO +1 -1
  4. {vxdb-0.2.0 → vxdb-0.2.1}/pyproject.toml +1 -1
  5. vxdb-0.2.1/python/vxdb/__init__.py +16 -0
  6. {vxdb-0.2.0 → vxdb-0.2.1}/python/vxdb/embedding.py +3 -5
  7. vxdb-0.2.0/python/vxdb/__init__.py +0 -7
  8. {vxdb-0.2.0 → vxdb-0.2.1}/README.md +0 -0
  9. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/Cargo.toml +0 -0
  10. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/collection.rs +0 -0
  11. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/cosine.rs +0 -0
  12. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/dot.rs +0 -0
  13. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/euclidean.rs +0 -0
  14. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/distance/mod.rs +0 -0
  15. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/error.rs +0 -0
  16. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/filter.rs +0 -0
  17. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/hybrid.rs +0 -0
  18. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/index/flat.rs +0 -0
  19. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/index/hnsw.rs +0 -0
  20. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/index/mod.rs +0 -0
  21. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/lib.rs +0 -0
  22. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/metadata.rs +0 -0
  23. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/mmap.rs +0 -0
  24. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/mod.rs +0 -0
  25. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/persistent.rs +0 -0
  26. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/storage/wal.rs +0 -0
  27. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-core/src/types.rs +0 -0
  28. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-python/Cargo.toml +0 -0
  29. {vxdb-0.2.0 → vxdb-0.2.1}/crates/vxdb-python/src/lib.rs +0 -0
  30. {vxdb-0.2.0 → vxdb-0.2.1}/python/vxdb/_vxdb.pyi +0 -0
  31. {vxdb-0.2.0 → vxdb-0.2.1}/python/vxdb/client.py +0 -0
  32. {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.0"
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.0"
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.0"
1787
+ version = "0.2.1"
1788
1788
  dependencies = [
1789
1789
  "axum",
1790
1790
  "clap",
@@ -3,6 +3,6 @@ resolver = "2"
3
3
  members = ["crates/vxdb-core", "crates/vxdb-python"]
4
4
 
5
5
  [workspace.package]
6
- version = "0.2.0"
6
+ version = "0.2.1"
7
7
  edition = "2021"
8
8
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vxdb
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "vxdb"
7
- version = "0.2.0"
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
- collection.upsert(
18
- ids=["a"],
19
- documents=["hello"],
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
@@ -1,7 +0,0 @@
1
- """vxdb — A lightweight, high-performance vector store."""
2
-
3
- from vxdb._vxdb import Collection, Database
4
- from vxdb.client import Client
5
-
6
- __all__ = ["Database", "Collection", "Client"]
7
- __version__ = "0.1.0"
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