From e63d5a1fd4975e754a416d4b257afcfe3d687474 Mon Sep 17 00:00:00 2001 From: Garance Date: Mon, 23 Sep 2024 15:53:09 -0400 Subject: [PATCH] style: cargo fmt --- rig-lancedb/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rig-lancedb/src/lib.rs b/rig-lancedb/src/lib.rs index 815344ae..f81a643c 100644 --- a/rig-lancedb/src/lib.rs +++ b/rig-lancedb/src/lib.rs @@ -2,7 +2,7 @@ use std::sync::Arc; use lancedb::{ arrow::arrow_schema::{DataType, Field, Fields, Schema}, - index::{Index}, + index::Index, query::QueryBase, DistanceType, }; @@ -70,14 +70,14 @@ impl LanceDbVectorStore { ])) } - pub async fn create_document_index(&self, index: Index) -> Result<(), lancedb::Error>{ + pub async fn create_document_index(&self, index: Index) -> Result<(), lancedb::Error> { self.document_table .create_index(&["id"], index) .execute() .await } - pub async fn create_embedding_index(&self, index: Index) -> Result<(), lancedb::Error>{ + pub async fn create_embedding_index(&self, index: Index) -> Result<(), lancedb::Error> { self.embedding_table .create_index(&["id", "document_id"], index) .execute()