INNER CODE UNIT · Swift
func
ZachNagengast/similarity-search-kit · Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:25
public static func == (lhs: SimilarityIndex, rhs: SimilarityIndex) -> Bool {
return lhs.id == rhs.id
}
public func hash(into hasher: inout Hasher) {
hasher.combine(id)
}
/// The items stored in the index.
public var indexItems: [IndexItem] = []
/// The dimension of the embeddings in the index.
/// Used to validate emebdding updates
public private(set) var dimension: Int = 0
/// The name of the index.
public var indexName: String