GPTCache icon indicating copy to clipboard operation
GPTCache copied to clipboard

How to work with LLamaIndex

Open nathangary opened this issue 1 year ago • 2 comments

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'

nathangary avatar Jan 09 '24 06:01 nathangary

LlamaIndex has been upgraded, how do I access it now?

nathangary avatar Jan 09 '24 07:01 nathangary

because the LlamaIndex has remove this param

SimFG avatar Jan 10 '24 03:01 SimFG