print(llm.complete("hi")) print(embeddings.get_text_embedding("hi"))
from llama_index import ServiceContext from llama_index import set_global_service_context service_context = ServiceContext.from_defaults( llm=llm, embed_model=embed_model) set_global_service_context(service_context)