Find answers from the community

Updated 4 months ago

Following this tutorial... https://docs.

At a glance
Following this tutorial... https://docs.llamaindex.ai/en/stable/examples/index_structs/struct_indices/SQLIndexDemo.html#plug-into-our-retrieverqueryengine

and I see that the llm and service_context are instantiated, but then never used.
Plain Text
llm = OpenAI(temperature=0.1, model="gpt-3.5-turbo")
service_context = ServiceContext.from_defaults(llm=llm)


What do these objects do?
S
L
2 comments
Hmm I see that the service context should be passed into the SQLTableRetrieverQueryEngine

as written I think it just defaults though
You are correct
Add a reply
Sign up and join the conversation on Discord