Find answers from the community

Updated last year

yo how do i use gpt4 turbo

yo how do i use gpt4 turbo
b
e
6 comments
query_engine = index.as_query_engine(response_mode="tree_summarize")
something like:
Plain Text
llm = OpenAI(
            temperature=0,
            model='gpt-4-1106-preview',
               )

sc = ServiceContext.from_defaults(
            llm=llm,
            
        )
index = SummaryIndex(

            service_context=sc,
        )
index.as....
gotcha, appreciate it
Add a reply
Sign up and join the conversation on Discord