Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work with LLamaIndex #596

Open
nathangary opened this issue Jan 9, 2024 · 2 comments
Open

How to work with LLamaIndex #596

nathangary opened this issue Jan 9, 2024 · 2 comments

Comments

@nathangary
Copy link

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
Copy link
Author

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

@SimFG
Copy link
Collaborator

SimFG commented Jan 10, 2024

because the LlamaIndex has remove this param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants