Skip to content

Commit

Permalink
some fixes for public visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchieGoodwin committed Apr 1, 2023
1 parent 61df494 commit aaa94e2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Sources/PineconeSwift/PineconeModels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public struct PineconeQueryRequest: Codable {


public struct PineconeVector: Codable {
let id: String
let values: [Double]
let metadata: [String: String]
let score: Double?
public let id: String
public let values: [Double]
public let metadata: [String: String]
public let score: Double?

public init(id: String, values: [Double], metadata: [String : String], score: Double?) {
self.id = id
Expand All @@ -52,8 +52,8 @@ public struct PineconeVector: Codable {
}

public struct PineconeQueryResponse: Codable {
let matches: [PineconeVector]
let namespace: String
public let matches: [PineconeVector]
public let namespace: String

public init(matches: [PineconeVector], namespace: String) {
self.matches = matches
Expand All @@ -62,7 +62,7 @@ public struct PineconeQueryResponse: Codable {
}

public struct PineconeUpsertResponse: Codable {
let upsertedCount: Int
public let upsertedCount: Int

public init(upsertedCount: Int) {
self.upsertedCount = upsertedCount
Expand Down Expand Up @@ -94,8 +94,8 @@ public struct PineconeFetchRequest: Codable {
}

public struct PineconeFetchResponse: Codable {
let vectors: FetchVectors
let namespace: String
public let vectors: FetchVectors
public let namespace: String

public init(vectors: FetchVectors, namespace: String) {
self.vectors = vectors
Expand All @@ -104,7 +104,7 @@ public struct PineconeFetchResponse: Codable {
}

public struct FetchVectors: Codable {
let additionalProp: [PineconeVector]
public let additionalProp: [PineconeVector]

public init(additionalProp: [PineconeVector]) {
self.additionalProp = additionalProp
Expand Down

0 comments on commit aaa94e2

Please sign in to comment.