move embedding truncation to base model
This commit is contained in:
parent
2b780ee7b2
commit
4e90e45999
5 changed files with 48 additions and 34 deletions
|
@ -72,7 +72,6 @@ pub trait EmbeddingProvider: Sync + Send {
|
|||
fn is_authenticated(&self) -> bool;
|
||||
async fn embed_batch(&self, spans: Vec<String>) -> Result<Vec<Embedding>>;
|
||||
fn max_tokens_per_batch(&self) -> usize;
|
||||
fn truncate(&self, span: &str) -> (String, usize);
|
||||
fn rate_limit_expiration(&self) -> Option<Instant>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue