]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
embedding: add raw option for --embd-output-format (#16541)
authorSam Malayek <redacted>
Tue, 28 Oct 2025 10:51:41 +0000 (03:51 -0700)
committerGitHub <redacted>
Tue, 28 Oct 2025 10:51:41 +0000 (12:51 +0200)
commit1c1409e13169d0ced4b1b4d39fb5b268b7525091
tree5e763466589814c53ce45acc534d1261d25bd0ba
parent7a0e900e3615fa46c074a7fdf900b47d3c0a1c7e
embedding: add raw option for --embd-output-format (#16541)

* Add --embd-output-format raw for plain numeric embedding output

This new option outputs embeddings as raw space-separated floats, without JSON or 'embedding N:' prefixes. Useful for downstream vector pipelines and scripting.

* Move raw output handling into format handling section

* Move raw output handling into else-if block with other format handlers

* Use LOG instead of printf for raw embedding output

* docs: document 'raw' embedding output format in arg.cpp and README
common/arg.cpp
examples/embedding/README.md
examples/embedding/embedding.cpp