Usage
Basic usage example
A simple example demonstrating the basic usage of the library. The example demonstrates:
- Creating a 3-dimensional vector database
- Upserting sample data
- Querying for similar vectors
- Deleting a vector
Advanced usage example
A more advanced example,
using a real-world dataset (Wikipedia embeddings) and querying for similar entries.
The example uses the hf-hub
crate to fetch the dataset and the parquet
crate to read
parquet files. The example demonstrates:
- Loading a dataset from Hugging Face Hub
- Reading Parquet files
- Upserting embedding data into the database
- Querying for similar entries
- Displaying results