arc-vector-rust

Crates.ioarc-vector-rust
lib.rsarc-vector-rust
version1.4.0
sourcesrc
created_at2023-08-07 10:03:28.385158
updated_at2023-08-07 10:03:28.385158
descriptionRust client for Arc Vector Search Engine
homepagehttps://arc_vector.tech/
repositoryhttps://gitee.com/giraffedb/arc-vector-rust
max_upload_size
id937799
size455,666
yunju.lly (yangmeilly)

documentation

https://gitee.com/giraffedb/arc-vector-rust

README

arc-vector-rust

Rust client for arc vector search engine.

Installation

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

Dependencies

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.

Usage

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.

Making requests

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
Commit count: 0

cargo fmt