Interface JinaApi
public interface JinaApi
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call
<JinaEmbeddingResponse> embed
(JinaEmbeddingRequest request, String authorizationHeader) retrofit2.Call
<JinaRerankingResponse> rerank
(JinaRerankingRequest request, String authorizationHeader)
-
Method Details
-
embed
@POST("v1/embeddings") @Headers("Content-Type: application/json") retrofit2.Call<JinaEmbeddingResponse> embed(@Body JinaEmbeddingRequest request, @Header("Authorization") String authorizationHeader) -
rerank
@POST("rerank") @Headers("Content-Type: application/json") retrofit2.Call<JinaRerankingResponse> rerank(@Body JinaRerankingRequest request, @Header("Authorization") String authorizationHeader)
-