23 lines
1.2 KiB
C++
23 lines
1.2 KiB
C++
#include "vendors/retrieval/voyage/voyage.h"
|
|
|
|
namespace molo::retrieval {
|
|
|
|
// CALLS-BEGIN (parsed by tools/check_spec.py; one row per line, strings in order:
|
|
// name, host, http method, path, spec operation id (or reference page / "doc:"),
|
|
// body fields, query parameters, flags (d destructive, w writes, r read-only POST,
|
|
// p paid), response schema)
|
|
static const CallRow kRows[] = {
|
|
{"embed", "main", "POST", "/v1/embeddings", "sdk:Embedding", "input,model,input_type,truncation,output_dimension,output_dtype,encoding_format", "", "p", "-"},
|
|
{"multimodal_embed", "main", "POST", "/v1/multimodalembeddings", "sdk:MultimodalEmbedding", "inputs,model,input_type,truncation,output_dimension,output_dtype", "", "p", "-"},
|
|
{"contextualized_embed", "main", "POST", "/v1/contextualizedembeddings", "sdk:ContextualizedEmbedding", "inputs,model,input_type,output_dimension,output_dtype,encoding_format", "", "p", "-"},
|
|
{"rerank", "main", "POST", "/v1/rerank", "sdk:Reranking", "query,documents,model,top_k,truncation", "", "p", "-"},
|
|
};
|
|
// CALLS-END
|
|
|
|
const CallTable& voyage_calls() {
|
|
static const CallTable table{kRows, sizeof(kRows) / sizeof(kRows[0])};
|
|
return table;
|
|
}
|
|
|
|
} // namespace molo::retrieval
|