Skip to content

Commit

Permalink
Removed print statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbean393 committed May 31, 2024
1 parent f54ea69 commit 07a610f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,13 @@ extension SimilarityIndex {

let savedVectorStore = try vectorStore.saveIndex(items: indexItems, to: basePath, as: indexName)

print("Saved \(indexItems.count) index items to \(savedVectorStore.absoluteString)")

return savedVectorStore
}

public func loadIndex(fromDirectory path: URL? = nil, name: String? = nil) throws -> [IndexItem]? {
if let indexPath = try getIndexPath(fromDirectory: path, name: name) {
indexItems = try vectorStore.loadIndex(from: indexPath)
print("Loaded \(indexItems.count) index items from \(indexPath.absoluteString)")
return indexItems
}

Expand Down

0 comments on commit 07a610f

Please sign in to comment.