Skip to content
Snippets Groups Projects
Commit 205656bf authored by Mingchung Xia's avatar Mingchung Xia
Browse files

Removed durable hnsw from linux

parent c95f26ac
No related branches found
No related tags found
1 merge request!13HNSW Implementation with Testcases
Pipeline #114966 canceled
......@@ -24,6 +24,8 @@
// Created by Mingchung Xia on 2024-02-26.
//
#if os(macOS)
import Foundation
extension DurableHNSWCorpus {
......@@ -68,3 +70,5 @@ extension DurableHNSWCorpus {
)
}
}
#endif
......@@ -24,6 +24,8 @@
// Created by Mingchung Xia on 2024-03-12.
//
#if os(macOS)
import Foundation
import System
......@@ -147,3 +149,5 @@ extension DurableHNSWCorpus {
return dictionary
}
}
#endif
......@@ -24,6 +24,8 @@
// Created by Mingchung Xia on 2024-03-16.
//
#if os(macOS)
import Foundation
/// HNSWCorpus iterates through its dictionary of key to document vector pairs
......@@ -63,3 +65,5 @@ extension DurableHNSWCorpus: Sequence, Collection {
return dictionary.keys.sorted().index(after: i)
}
}
#endif
......@@ -23,6 +23,9 @@
//
// Created by Mingchung Xia on 2024-02-26.
//
// MARK: DurableHNSWCorpus is only available on MacOS, not Linux
#if os(macOS)
import Foundation
import CoreLMDB
......@@ -76,3 +79,5 @@ final class DurableHNSWCorpus<Scalar: BinaryFloatingPoint & Codable & UnsafeMemo
)
}
}
#endif
......@@ -24,6 +24,8 @@
// Created by Mingchung Xia on 2024-02-26.
//
#if os(macOS)
import Foundation
import PriorityHeapModule
import PriorityHeapAlgorithms
......@@ -80,3 +82,5 @@ public struct DeterministicDurableVectorIndex<VectorComponent: UnsafeMemoryLayou
return self.size
}
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment