The model text-divinchi-003 has been deprecated
with llama-index version 0.7.7. ChatOpenAI
module in llamaIndex for the version you are running with.from llama_index.llms import OpenAI llm = OpenAI(model="gpt-3.5-turbo") service_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)
embed_model = OpenAIEmbedding(
model='text-embedding-ada-002', embed_batch_size=100)
llm = OpenAI(model="gpt-3.5-turbo")
service_context = ServiceContext.from_defaults(
llm=llm, embed_model=embed_model)
policies_index = load_index_from_storage(
policies_storage_context, service_context=service_context)
text-davinci-003