Misc edge dev env fixes (#7456)

This commit is contained in:
xzfc
2025-10-25 08:48:18 +00:00
committed by timvisee
parent af32c530d3
commit 828f6bc275
5 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@@ -16,4 +16,5 @@ tests/storage-compat/compatibility.tar
tests/storage-compat/full-snapshot.snapshot.gz
tests/storage-compat/storage.tar.bz2
venv
.venv
.env

View File

@@ -19,8 +19,5 @@ maturin develop --no-default-features
Run example
```bash
cd examples
mkdir shard
python qdrant-edge.py
python examples/qdrant-edge.py
```

1
lib/edge/python/examples/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/data

4
lib/edge/python/examples/qdrant-edge.py Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/usr/bin/env python3
import os
import shutil
import uuid
@@ -6,7 +8,7 @@ from qdrant_edge import *
print("---- Load shard ----")
DATA_DIRECTORY = "./data"
DATA_DIRECTORY = os.path.join(os.path.dirname(__file__), "data")
# Clear and recreate data directory
if os.path.exists(DATA_DIRECTORY):

View File

@@ -48,6 +48,7 @@ mkShell {
pkgs.glsl_analyzer # language server for editing *.comp files
pkgs.gnuplot # optional runtime dep for criterion
pkgs.jq # used in ./tests and ./tools
pkgs.maturin # mentioned in lib/edge/python/README.md
pkgs.nixfmt-rfc-style # to format this file
pkgs.npins # used in tools/nix/update.py
pkgs.poetry # used to update poetry.lock