Spaces:
Build error
Build error
Update app.py
Browse files1104 unmodified lines11051106110711081109111011115 unmodified lines111711181119111911201121112211231104 unmodified lines prompt = f""" Context: {context} You are an expert assistant tasked with providing precise and accurate answers based only on the provided context.
1. Use only the provided context to generate your answer. 2. Match headings and content exactly as they appear in the knowledge base. Do not add, modify, or generalize content.5 unmodified lines
Answer: """ llm = ChatOpenAI(model="gpt-4o", temperature=0.2, api_key=openai_api_key) llm = ChatOpenAI(model="gpt-4-32k", temperature=0.2, api_key=openai_api_key) response = llm.invoke(prompt)
return response.content.strip()app.py+2-1