update embedding batch size

This commit is contained in:
Sha Zhou 2025-06-18 14:45:52 +08:00
parent 73154a05b0
commit d835ccfd7c

View File

@ -3,7 +3,7 @@ import { JinaEmbeddingRequest, JinaEmbeddingResponse } from "../types";
import axiosClient from "../utils/axios-client";
import { logError, logDebug, logWarning } from '../logging';
const BATCH_SIZE = 128;
const BATCH_SIZE = 32;
const API_URL = "https://api.jina.ai/v1/embeddings";
const MAX_RETRIES = 3; // Maximum number of retries for missing embeddings