Open Source, Llamaindex, Gpt 4, Llm, OpenAI.
model_name=HF_ENDPOINT_URL, token=HF_TOKEN, temperature=0.1, do_sample=True, top_p=0.95, top_k=40, repetition_penalty=1.1, ) os.environ["OPENAI_API_KEY"] = "YOUR OPENAI API KEY" from llama_index.llms import OpenAI gpt4_llm = OpenAI("gpt-4") Prompt templates. We will use the same prompts for the