mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-23 11:11:00 -05:00
Misc edge dev env fixes (#7456)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -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
1
lib/edge/python/examples/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/data
|
||||
4
lib/edge/python/examples/qdrant-edge.py
Normal file → Executable file
4
lib/edge/python/examples/qdrant-edge.py
Normal file → Executable 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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user