Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Mar 25, 2024
1 parent c1409ca commit 7aa81f1
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 57 deletions.
6 changes: 3 additions & 3 deletions documentcompressor/cohere_rerank.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func (c *CohereRerank) Compress(ctx context.Context, docs []schema.Document, que
items := make([]*cohere.RerankRequestDocumentsItem, len(docs))

for i, doc := range docs {
items[i] = cohere.NewRerankRequestDocumentsItemFromRerankRequestDocumentsItemText(&cohere.RerankRequestDocumentsItemText{
Text: doc.PageContent,
})
items[i] = &cohere.RerankRequestDocumentsItem{
String: doc.PageContent,
}
}

res, err := c.client.Rerank(ctx, &cohere.RerankRequest{
Expand Down
108 changes: 54 additions & 54 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ go 1.22
toolchain go1.22.1

require (
cloud.google.com/go/ai v0.3.2
cloud.google.com/go/aiplatform v1.62.2
github.com/aws/aws-sdk-go-v2 v1.25.3
github.com/aws/aws-sdk-go-v2/service/sagemakerruntime v1.27.2
cloud.google.com/go/ai v0.3.4
cloud.google.com/go/aiplatform v1.65.0
github.com/aws/aws-sdk-go-v2 v1.26.0
github.com/aws/aws-sdk-go-v2/service/sagemakerruntime v1.27.3
github.com/cohere-ai/tokenizer v1.1.2
github.com/go-git/go-billy/v5 v5.5.0
github.com/go-openapi/strfmt v0.22.2
github.com/googleapis/gax-go/v2 v2.12.2
github.com/go-openapi/strfmt v0.23.0
github.com/googleapis/gax-go/v2 v2.12.3
github.com/mitchellh/mapstructure v1.5.0
github.com/nlpodyssey/spago v1.1.0
github.com/sashabaranov/go-openai v1.20.2
github.com/sashabaranov/go-openai v1.20.4
github.com/stretchr/testify v1.9.0
github.com/weaviate/weaviate v1.24.1
github.com/weaviate/weaviate v1.24.5
golang.org/x/net v0.22.0
golang.org/x/sys v0.18.0
google.golang.org/grpc v1.62.1
google.golang.org/protobuf v1.33.0
)

require (
cloud.google.com/go/longrunning v0.5.5 // indirect
cloud.google.com/go/longrunning v0.5.6 // indirect
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
Expand All @@ -34,44 +34,44 @@ require (
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.7 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.9 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.0 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.4 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.4 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.20.2 // indirect
github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.20.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.5 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.6 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.20.3 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.3 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.5 // indirect
github.com/aws/smithy-go v1.20.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/dlclark/regexp2 v1.11.0 // indirect
github.com/ebitengine/oto/v3 v3.1.0 // indirect
github.com/ebitengine/oto/v3 v3.1.1 // indirect
github.com/ebitengine/purego v0.6.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
github.com/go-openapi/analysis v0.22.3 // indirect
github.com/go-openapi/errors v0.21.1 // indirect
github.com/go-openapi/inflect v0.20.0 // indirect
github.com/go-openapi/jsonpointer v0.20.3 // indirect
github.com/go-openapi/jsonreference v0.20.5 // indirect
github.com/go-openapi/loads v0.21.6 // indirect
github.com/go-openapi/spec v0.20.15 // indirect
github.com/go-openapi/swag v0.22.10 // indirect
github.com/go-openapi/validate v0.23.2 // indirect
github.com/go-openapi/analysis v0.23.0 // indirect
github.com/go-openapi/errors v0.22.0 // indirect
github.com/go-openapi/inflect v0.21.0 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/loads v0.22.0 // indirect
github.com/go-openapi/spec v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-openapi/validate v0.24.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/flatbuffers v23.5.26+incompatible // indirect
github.com/google/flatbuffers v24.3.7+incompatible // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
github.com/hajimehoshi/go-mp3 v0.3.4 // indirect
Expand All @@ -84,54 +84,54 @@ require (
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/nlpodyssey/gopickle v0.2.0 // indirect
github.com/nlpodyssey/gopickle v0.3.0 // indirect
github.com/nlpodyssey/gotokenizers v0.2.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/richardlehane/msoleps v1.0.3 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rs/zerolog v1.31.0 // indirect
github.com/rs/zerolog v1.32.0 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/skeema/knownhosts v1.2.1 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/zclconf/go-cty v1.14.3 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
go.mongodb.org/mongo-driver v1.14.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect
golang.org/x/mod v0.16.0 // indirect
golang.org/x/oauth2 v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.19.0 // indirect
google.golang.org/api v0.169.0 // indirect
google.golang.org/api v0.171.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20240308144416-29370a3891b7 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240308144416-29370a3891b7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240308144416-29370a3891b7 // indirect
google.golang.org/genproto v0.0.0-20240325164216-beb30f47624b // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240325164216-beb30f47624b // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240325164216-beb30f47624b // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
ariga.io/atlas v0.19.2
ariga.io/atlas v0.20.0
github.com/PuerkitoBio/goquery v1.9.1
github.com/antonmedv/expr v1.15.5
github.com/avast/retry-go v3.0.0+incompatible
github.com/aws/aws-sdk-go-v2/config v1.27.7
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.13.9
github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime v1.4.2
github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.7.2
github.com/aws/aws-sdk-go-v2/service/comprehend v1.31.2
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.30.4
github.com/aws/aws-sdk-go-v2/service/kendra v1.49.2
github.com/aws/aws-sdk-go-v2/service/polly v1.39.4
github.com/aws/aws-sdk-go-v2/service/textract v1.30.2
github.com/aws/aws-sdk-go-v2/service/translate v1.24.2
github.com/cohere-ai/cohere-go/v2 v2.5.2
github.com/aws/aws-sdk-go-v2/config v1.27.9
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.13.12
github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime v1.4.3
github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.7.3
github.com/aws/aws-sdk-go-v2/service/comprehend v1.31.3
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.31.0
github.com/aws/aws-sdk-go-v2/service/kendra v1.50.0
github.com/aws/aws-sdk-go-v2/service/polly v1.39.5
github.com/aws/aws-sdk-go-v2/service/textract v1.30.4
github.com/aws/aws-sdk-go-v2/service/translate v1.24.3
github.com/cohere-ai/cohere-go/v2 v2.7.0
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-git/go-git/v5 v5.11.0
github.com/go-redis/redis/v8 v8.11.5
Expand All @@ -146,9 +146,9 @@ require (
github.com/nlpodyssey/cybertron v0.2.1
github.com/olekukonko/tablewriter v0.0.5
github.com/pinecone-io/go-pinecone v0.3.0
github.com/playwright-community/playwright-go v0.4201.0
github.com/playwright-community/playwright-go v0.4201.1
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/serpapi/google-search-results-golang v0.0.0-20230616000151-95707d993dc6
github.com/serpapi/google-search-results-golang v0.0.0-20240325113416-ec93f510648e
github.com/unidoc/unioffice v1.30.0
github.com/weaviate/weaviate-go-client/v4 v4.13.1
golang.org/x/crypto v0.21.0 // indirect
Expand Down
Loading

0 comments on commit 7aa81f1

Please sign in to comment.