Crates.io | arc-vector-rust |
lib.rs | arc-vector-rust |
version | 1.4.0 |
source | src |
created_at | 2023-08-07 10:03:28.385158 |
updated_at | 2023-08-07 10:03:28.385158 |
description | Rust client for Arc Vector Search Engine |
homepage | https://arc_vector.tech/ |
repository | https://gitee.com/giraffedb/arc-vector-rust |
max_upload_size | |
id | 937799 |
size | 455,666 |
Rust client for arc vector search engine.
cargo add arc-vector-rust
Or add the following line to your Cargo.toml:
arc-vector-rust = "1.4.0"
Package is available in crates.io
The client uses gRPC via the Tonic library.
To change anything in the protocol buffer definitions, you need the protoc
Protocol Buffers compiler, along with Protocol Buffers resource files.
Refer to the Tonic installation guide for more details.
Run ArcVector with enabled gRPC interface:
# With env variable
docker run -p 6333:6333 -p 6334:6334 \
-e ARC_VECTOR__SERVICE__GRPC_PORT="6334" \
arc_vector/arc_vector
Or by updating the configuration file:
service:
grpc_port: 6334
More info about gRPC in documentation.
Add necessary dependencies:
cargo arc-vector-rust anyhow tonic tokio --features tokio/rt-multi-thread
Add search example from examples/search.rs
to your src/main.rs
:
Or run the example from this project directly:
cargo run --example search