From 78d1df88e94e841d3ec6c9d7ee6d5737a1899a1a Mon Sep 17 00:00:00 2001 From: Abhi Dangeti Date: Thu, 7 Dec 2023 09:20:52 -0700 Subject: [PATCH] Beautify & Fix cmd line tooling output for vector content (#194) --- cmd/zap/cmd/vector.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/zap/cmd/vector.go b/cmd/zap/cmd/vector.go index eb7eab7f..7df479b2 100644 --- a/cmd/zap/cmd/vector.go +++ b/cmd/zap/cmd/vector.go @@ -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")