Skip to content

Commit

Permalink
Beautify & Fix cmd line tooling output for vector content (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti authored Dec 7, 2023
1 parent 6a57ac5 commit 78d1df8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/zap/cmd/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ var vectorCmd = &cobra.Command{
faiss.MetricInnerProduct: "inner product",
faiss.MetricL2: "l2 distance",
}
fmt.Printf("decoded vector section content for field %v:\n", args[1])
fmt.Printf("the number of vectors %v\n", numVecs)
fmt.Printf("the size of the serialized vector index %v\n", indexSize)
fmt.Printf("the dimension of vectors in the vector index %v\n", index.D())
fmt.Printf("the dimension of vectors in the vector index %v\n", metrics[index.MetricType()])
fmt.Printf("decoded vector section content for field `%v`:\n", args[1])
fmt.Printf(" number of vectors: %v\n", numVecs)
fmt.Printf(" size of the serialized vector index: %v\n", indexSize)
fmt.Printf(" dimensionality of vectors in the index: %v\n", index.D())
fmt.Printf(" similarity metric used: %v\n", metrics[index.MetricType()])
case 3:
if args[2] == "list" {
fmt.Printf("listing the vector IDs in the index\n")
Expand Down

0 comments on commit 78d1df8

Please sign in to comment.