mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-28 13:41:08 -05:00
* Fixups of amalgamator
Fix issues that break `qdrant-edge` build process:
- `use … as segment;` - this causes `ast-grep` rules to replace wrong
paths. So, rename to avoid collisions.
- `#[macro_use]` and `extern crate` required be in the top-level
`lib.rs`.
- `format!("…", crate::something::…)` - `ast-grep` can't fix paths
inside macros. Fixed by moving `crate::something::…` out of the macro.
* Add lib/edge/publish workspace and amalgamation script
* Move `lib/edge/examples` into `lib/edge/publish/` workspace
And fix them to use the generated `qdrant-edge` crate.
* Add github workflow
* Cleanup `qdrant-edge` public API
Removes empty modules. Checked by `cargo doc`.
Python Bindings for Qdrant Edge
Setup environment
python -m venv .venv
source .venv/bin/activate
pip install --user maturin
Build and install the package
cd lib/edge/python
maturin develop --no-default-features
Run example
python examples/qdrant-edge.py