Find answers from the community

Updated 3 months ago

Updating llama-index version and using ServiceContext

At a glance

The community member is updating their llama-index version and notices that ServiceContext has become deprecated. They provide two code snippets and ask if the second one is the correct way to handle this change, assuming they don't want to set Settings globally. The only comment is a simple "Thanks!".

Hello folks πŸ™‚

i'm finally updating my llama-index version and i see that ServiceContext became deprecated.

I had the code seen on first image

Would that be the correct way to do it now? (second image)

Supposing i dont want to set Settings globally...
Attachments
image.png
image.png
v
1 comment
Add a reply
Sign up and join the conversation on Discord