openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}
from llama_index.llms.deepseek import DeepSeek # Set up the DeepSeek class with the required model and API key llm = DeepSeek(model="deepseek-chat", api_key="******************") # Call the complete method with a query response = llm.complete("Explain the importance of low latency LLMs") print(f'Response: {response}')
from llama_index.core.postprocessor import SentenceTransformerRerank rerank = SentenceTransformerRerank( model="cross-encoder/ms-marco-MiniLM-L-2-v2", top_n=3 )
pip install torch sentence-transformers
')ImportError: libcufft.so.11: failed to map segment from shared object