An open API service indexing awesome lists of open source software.

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

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