Skip to content

Commit

Permalink
refactor: Make minimum macOS version supported to be 11 (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Nagengast <[email protected]>
  • Loading branch information
wiktorwojcik112 and ZachNagengast authored Jun 27, 2023
1 parent be8cca2 commit 789c72d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import PackageDescription
let package = Package(
name: "SimilaritySearchKit",
platforms: [
.macOS(.v13),
.iOS(.v16),
.macOS(.v11),
.iOS(.v15),
],
products: [
.library(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Combine

/// A protocol for embedding models that can generate vector representations of text.
/// Implement this protocol to support different models for encoding text into vectors.
@available(macOS 12.0, iOS 15.0, *)
@available(macOS 11.0, iOS 15.0, *)
public protocol EmbeddingsProtocol {
/// The associated tokenizer type for the embedding model.
associatedtype TokenizerType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import NaturalLanguage

@available(macOS 12.0, iOS 15.0, *)
@available(macOS 11.0, iOS 15.0, *)
public class NativeEmbeddings: EmbeddingsProtocol {
public let model = ModelActor()
public let tokenizer: any TokenizerProtocol
Expand Down
4 changes: 2 additions & 2 deletions Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public typealias SimilarityMetricType = SimilarityIndex.SimilarityMetricType
public typealias TextSplitterType = SimilarityIndex.TextSplitterType
public typealias VectorStoreType = SimilarityIndex.VectorStoreType

@available(macOS 12.0, iOS 15.0, *)
@available(macOS 11.0, iOS 15.0, *)
public class SimilarityIndex {
// MARK: - Properties

Expand Down Expand Up @@ -203,7 +203,7 @@ public class SimilarityIndex {

// MARK: - CRUD

@available(macOS 12.0, iOS 15.0, *)
@available(macOS 11.0, iOS 15.0, *)
extension SimilarityIndex {
// MARK: Create

Expand Down

0 comments on commit 789c72d

Please sign in to comment.