https://github.com/samber/dagobert
A simple Go client for the clip-as-service server
https://github.com/samber/dagobert
bert bert-as-service clip clip-as-service deep-learning embedding golang mlops onnx openai pytorch semantic tensorflow vector
Last synced: 4 months ago
JSON representation
A simple Go client for the clip-as-service server
- Host: GitHub
- URL: https://github.com/samber/dagobert
- Owner: samber
- Created: 2022-12-11T01:03:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T03:24:45.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T01:13:58.245Z (over 1 year ago)
- Topics: bert, bert-as-service, clip, clip-as-service, deep-learning, embedding, golang, mlops, onnx, openai, pytorch, semantic, tensorflow, vector
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DaGoBert
Simple Go client for the awesome [clip-as-service](https://clip-as-service.jina.ai/) server.
## Why this name ?
🤴 France had a king named Dagobert.
## Gettings start
```sh
cd example
docker-compose up -d
``````go
client, err := dagobert.NewClient("grpc://localhost:51000")
if err != nil {
log.Fatal(err)
}docs, err := client.Encode(
[]*dagobert.Document{
dagobert.NewTextDocument("hello world"),
dagobert.NewTextDocument("hi there"),
},
)
if err != nil {
log.Fatal(err)
}for _, doc := range docs {
fmt.Println(doc.GetEmbedding().GetDense().GetBuffer())
}
```## Todo
- [x] Encoding
- [ ] Ranking
- [ ] Indexing
- [ ] Searching
- [ ] Profiling