Skip to content

Commit 7e39f69

Browse files
committedMar 22, 2025·
correctly upgrade dependencies in imports
1 parent 413e374 commit 7e39f69

File tree

6 files changed

+22
-330
lines changed

6 files changed

+22
-330
lines changed
 

‎app/services/authentication/provider/oauth/github/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/Southclaws/fault/fmsg"
1414
"github.com/Southclaws/fault/ftag"
1515
"github.com/Southclaws/opt"
16-
"github.com/google/go-github/v66/github"
16+
"github.com/google/go-github/v70/github"
1717
"golang.org/x/oauth2"
1818
oauth2_github "golang.org/x/oauth2/github"
1919

‎app/services/semdex/semdexer/pinecone_semdexer/index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (s *pineconeSemdexer) buildIndexOps(ctx context.Context, object datagraph.I
136136

137137
return &pinecone.Vector{
138138
Id: id,
139-
Values: vec,
139+
Values: &vec,
140140
Metadata: metadata,
141141
}, nil
142142
})

‎app/services/semdex/semdexer/pinecone_semdexer/recommend.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/Southclaws/dt"
77
"github.com/Southclaws/fault"
88
"github.com/Southclaws/fault/fctx"
9-
"github.com/pinecone-io/go-pinecone/pinecone"
9+
"github.com/pinecone-io/go-pinecone/v3/pinecone"
1010

1111
"github.com/Southclaws/storyden/app/resources/datagraph"
1212
)
@@ -39,7 +39,7 @@ func (s *pineconeSemdexer) RecommendRefs(ctx context.Context, object datagraph.I
3939
chunkvecs := [][]float32{}
4040

4141
for _, v := range response.Vectors {
42-
chunkvecs = append(chunkvecs, v.Values)
42+
chunkvecs = append(chunkvecs, *v.Values)
4343
}
4444

4545
targetvec := averageVectors(chunkvecs)

‎go.mod

-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ require (
5555
github.com/glebarez/go-sqlite v1.22.0
5656
github.com/golang-jwt/jwt/v5 v5.2.2
5757
github.com/google/go-github/v70 v70.0.0
58-
github.com/google/go-github/v70 v70.0.0
5958
github.com/iancoleman/strcase v0.3.0
6059
github.com/jackc/pgx/v5 v5.7.3
6160
github.com/jmoiron/sqlx v1.4.0
@@ -74,7 +73,6 @@ require (
7473
github.com/pb33f/libopenapi v0.21.8
7574
github.com/philippgille/chromem-go v0.7.0
7675
github.com/pinecone-io/go-pinecone/v3 v3.1.0
77-
github.com/pinecone-io/go-pinecone/v3 v3.1.0
7876
github.com/puzpuzpuz/xsync/v3 v3.5.1
7977
github.com/redis/rueidis v1.0.56
8078
github.com/rs/cors v1.11.1
@@ -218,13 +216,11 @@ require (
218216
github.com/go-openapi/jsonpointer v0.21.1 // indirect
219217
github.com/go-openapi/swag v0.23.1 // indirect
220218
github.com/go-webauthn/webauthn v0.12.2
221-
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
222219
github.com/google/go-cmp v0.7.0 // indirect
223220
github.com/google/uuid v1.6.0
224221
github.com/gorilla/mux v1.8.1 // indirect
225222
github.com/gosimple/unidecode v1.0.1 // indirect
226223
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
227-
github.com/invopop/yaml v0.3.1 // indirect
228224
github.com/jackc/pgpassfile v1.0.0 // indirect
229225
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
230226
github.com/josharian/intern v1.0.0 // indirect

‎go.sum

+13-319
Large diffs are not rendered by default.

‎internal/infrastructure/vector/pinecone/pinecone.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/Southclaws/fault"
88
"github.com/Southclaws/fault/fctx"
9-
"github.com/pinecone-io/go-pinecone/pinecone"
9+
"github.com/pinecone-io/go-pinecone/v3/pinecone"
1010
"go.uber.org/fx"
1111

1212
"github.com/Southclaws/storyden/internal/config"
@@ -68,10 +68,12 @@ func (c *Client) GetOrCreateIndex(ctx context.Context, name string) (*Index, err
6868
return nil, err
6969
}
7070

71+
cosine := pinecone.Cosine
72+
7173
index, err = c.CreateServerlessIndex(ctx, &pinecone.CreateServerlessIndexRequest{
7274
Name: name,
73-
Dimension: c.size,
74-
Metric: "cosine",
75+
Dimension: &c.size,
76+
Metric: &cosine,
7577
Cloud: c.cloud,
7678
Region: c.region,
7779
})

0 commit comments

Comments
 (0)
Please sign in to comment.