llama_index
llama_index copied to clipboard
Add embedding predictor
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.