Skip to content

Commit

Permalink
fix: add debug info to qdrant setup
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Jun 3, 2024
1 parent fdf4be3 commit 389b0f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/indexing/src/storage/qdrant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ impl Qdrant {

pub async fn create_index_if_not_exists(&self) -> Result<()> {
if self.client.collection_exists(&self.collection_name).await? {
tracing::warn!("Collection {} exists", self.collection_name);
return Ok(());
}

tracing::warn!("Creating collection {}", self.collection_name);
self.client
.create_collection(&CreateCollection {
collection_name: self.collection_name.to_string(),
Expand Down

0 comments on commit 389b0f1

Please sign in to comment.