INNER CODE UNIT · Swift

hash

ZachNagengast/similarity-search-kit · Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:29

    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

    public let indexModel: any EmbeddingsProtocol
    public var indexMetric: any DistanceMetricProtocol
    public let vectorStore: any VectorStoreProtocol

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…