Skip to content

Commit

Permalink
style: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marieaurore123 committed Sep 23, 2024
1 parent 7b71aa1 commit e63d5a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rig-lancedb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::Arc;

use lancedb::{
arrow::arrow_schema::{DataType, Field, Fields, Schema},
index::{Index},
index::Index,
query::QueryBase,
DistanceType,
};
Expand Down Expand Up @@ -70,14 +70,14 @@ impl<M: EmbeddingModel> LanceDbVectorStore<M> {
]))
}

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()
Expand Down

0 comments on commit e63d5a1

Please sign in to comment.