← Questions

Batching service around an embedding model

0
PerplexityCodingLast asked Oct 2025

Put a service around an embedding model: many callers send texts at once, the service groups them into batches for the model, returns each caller its vectors, and stops without losing work. A variant limits every batch both by number of texts and by total tokens.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding