sync: migrate ai-operator to Gitea (2026-08-10)

This commit is contained in:
konturai-ops
2026-08-10 15:26:52 +00:00
commit 53652b95ad
173 changed files with 16676 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package embedding
import (
"fmt"
"strings"
)
func VectorLiteral(v Vector) string {
parts := make([]string, len(v))
for i, x := range v {
parts[i] = fmt.Sprintf("%.8f", x)
}
return "[" + strings.Join(parts, ",") + "]"
}