Skip to content

Commit 252563d

Browse files
committed
docs: document 'raw' embedding output format in arg.cpp and README
1 parent 3696e28 commit 252563d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

common/arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
32483248
).set_examples({LLAMA_EXAMPLE_EMBEDDING}));
32493249
add_opt(common_arg(
32503250
{"--embd-output-format"}, "FORMAT",
3251-
"empty = default, \"array\" = [[],[]...], \"json\" = openai style, \"json+\" = same \"json\" + cosine similarity matrix",
3251+
"empty = default, \"array\" = [[],[]...], \"json\" = openai style, \"json+\" = same \"json\" + cosine similarity matrix, \"raw\" = plain whitespace-delimited output (one embedding per line)",
32523252
[](common_params & params, const std::string & value) {
32533253
params.embd_out = value;
32543254
}

examples/embedding/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ The above command will output space-separated float values.
3838
| | multiple embeddings | $[[x_1,...,x_n],[x_1,...,x_n],...,[x_1,...,x_n]]$
3939
| 'json' | openai style |
4040
| 'json+' | add cosine similarity matrix |
41+
| 'raw' | plain text output |
4142

4243
### --embd-separator $"string"$
4344
| $"string"$ | |

0 commit comments

Comments
 (0)