Skip to content

A simple Go client for the clip-as-service server

Notifications You must be signed in to change notification settings

samber/dagobert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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