Skip to content

Commit 88ba6f5

Browse files
elibengopherbot
authored andcommitted
ragserver: add ragserver-genkit variant
Change-Id: I9e34c00ea00a01190e898c4de236061da1e1f55e Reviewed-on: https://go-review.googlesource.com/c/example/+/608737 Auto-Submit: Eli Bendersky <[email protected]> TryBot-Bypass: Eli Bendersky <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> Reviewed-by: Eli Bendersky <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 131af90 commit 88ba6f5

File tree

6 files changed

+646
-2
lines changed

6 files changed

+646
-2
lines changed

ragserver/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Weaviate has the be installed locally; the easiest way to do so is by using
2323
/add/: POST {"documents": [{"text": "..."}, {"text": "..."}, ...]}
2424
response: OK (no body)
2525
26-
/query/: GET {"content": "..."}
26+
/query/: POST {"content": "..."}
2727
response: model response as a string
2828
```
2929

@@ -33,6 +33,8 @@ Weaviate has the be installed locally; the easiest way to do so is by using
3333
and the Weaviate Go client library directly for interacting with Weaviate.
3434
* `ragserver-langchaingo`: uses [LangChain for Go](https://github.com/tmc/langchaingo)
3535
to interact with Weaviate and Google's LLM and embedding models.
36+
* `ragserver-genkit`: uses [Genkit Go](https://firebase.google.com/docs/genkit-go/get-started-go)
37+
to interact with Weaviate and Google's LLM and embedding models.
3638

3739
## Usage
3840

ragserver/ragserver-genkit/go.mod

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
module golang.org/x/example/ragserver/ragserver-genkit
2+
3+
go 1.23.0
4+
5+
require github.com/firebase/genkit/go v0.1.1
6+
7+
require (
8+
cloud.google.com/go v0.115.0 // indirect
9+
cloud.google.com/go/ai v0.8.1-0.20240711230438-265963bd5b91 // indirect
10+
cloud.google.com/go/auth v0.7.0 // indirect
11+
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
12+
cloud.google.com/go/compute/metadata v0.4.0 // indirect
13+
cloud.google.com/go/longrunning v0.5.9 // indirect
14+
github.com/PuerkitoBio/purell v1.1.1 // indirect
15+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
16+
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
17+
github.com/bahlo/generic-list-go v0.2.0 // indirect
18+
github.com/buger/jsonparser v1.1.1 // indirect
19+
github.com/felixge/httpsnoop v1.0.4 // indirect
20+
github.com/go-logr/logr v1.4.1 // indirect
21+
github.com/go-logr/stdr v1.2.2 // indirect
22+
github.com/go-openapi/analysis v0.21.2 // indirect
23+
github.com/go-openapi/errors v0.22.0 // indirect
24+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
25+
github.com/go-openapi/jsonreference v0.19.6 // indirect
26+
github.com/go-openapi/loads v0.21.1 // indirect
27+
github.com/go-openapi/spec v0.20.4 // indirect
28+
github.com/go-openapi/strfmt v0.23.0 // indirect
29+
github.com/go-openapi/swag v0.22.3 // indirect
30+
github.com/go-openapi/validate v0.21.0 // indirect
31+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
32+
github.com/golang/protobuf v1.5.4 // indirect
33+
github.com/google/generative-ai-go v0.16.1-0.20240711222609-09946422abc6 // indirect
34+
github.com/google/s2a-go v0.1.7 // indirect
35+
github.com/google/uuid v1.6.0 // indirect
36+
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
37+
github.com/googleapis/gax-go/v2 v2.12.5 // indirect
38+
github.com/invopop/jsonschema v0.12.0 // indirect
39+
github.com/josharian/intern v1.0.0 // indirect
40+
github.com/mailru/easyjson v0.7.7 // indirect
41+
github.com/mitchellh/mapstructure v1.5.0 // indirect
42+
github.com/oklog/ulid v1.3.1 // indirect
43+
github.com/pkg/errors v0.9.1 // indirect
44+
github.com/weaviate/weaviate v1.26.0-rc.1 // indirect
45+
github.com/weaviate/weaviate-go-client/v4 v4.15.0 // indirect
46+
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
47+
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
48+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
49+
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
50+
go.mongodb.org/mongo-driver v1.14.0 // indirect
51+
go.opencensus.io v0.24.0 // indirect
52+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect
53+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect
54+
go.opentelemetry.io/otel v1.26.0 // indirect
55+
go.opentelemetry.io/otel/metric v1.26.0 // indirect
56+
go.opentelemetry.io/otel/sdk v1.26.0 // indirect
57+
go.opentelemetry.io/otel/trace v1.26.0 // indirect
58+
golang.org/x/crypto v0.25.0 // indirect
59+
golang.org/x/exp v0.0.0-20240318143956-a85f2c67cd81 // indirect
60+
golang.org/x/net v0.27.0 // indirect
61+
golang.org/x/oauth2 v0.21.0 // indirect
62+
golang.org/x/sync v0.7.0 // indirect
63+
golang.org/x/sys v0.22.0 // indirect
64+
golang.org/x/text v0.16.0 // indirect
65+
golang.org/x/time v0.5.0 // indirect
66+
google.golang.org/api v0.188.0 // indirect
67+
google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect
68+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240708141625-4ad9e859172b // indirect
69+
google.golang.org/grpc v1.65.0 // indirect
70+
google.golang.org/protobuf v1.34.2 // indirect
71+
gopkg.in/yaml.v3 v3.0.1 // indirect
72+
)

0 commit comments

Comments
 (0)