Open nathangary opened 6 months ago
index = GPTVectorStoreIndex.from_documents( documents, service_context=ServiceContext.from_defaults( llm_predictor=LLMPredictor(cache=gptcache_obj) ), ) query_engine = index.as_query_engine()
this is error.
LLMPredictor.init() got an unexpected keyword argument 'cache'
LlamaIndex has been upgraded, how do I access it now?
because the LlamaIndex has remove this param
index = GPTVectorStoreIndex.from_documents( documents, service_context=ServiceContext.from_defaults( llm_predictor=LLMPredictor(cache=gptcache_obj) ), ) query_engine = index.as_query_engine()
this is error.
LLMPredictor.init() got an unexpected keyword argument 'cache'