Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 707 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 707 Bytes

DaGoBert

Simple Go client for the awesome clip-as-service server.

Why this name ?

🤴 France had a king named Dagobert.

Gettings start

cd example
docker-compose up -d
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

  • Encoding
  • Ranking
  • Indexing
  • Searching
  • Profiling