GPTCache 如何使用LLamaIndex进行工作

ia2d9nvy  于 2个月前  发布在  其他
关注(0)|答案(2)|浏览(48)

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'

o0lyfsai

o0lyfsai1#

LlamaIndex已经升级,现在如何访问?

j9per5c4

j9per5c42#

因为LlamaIndex已经移除了这个参数。

相关问题