llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

Add embedding predictor

Open jerryjliu opened this issue 2 years ago • 0 comments

Add MockEmbedding class. The user can now use this to predict embedding token usage before calling the actual embedding API.

Can be used in tandem with MockLLMPredictor.

jerryjliu avatar Jan 24 '23 08:01 jerryjliu