Spaces:
Build error
Build error
Update app.py
Browse files1104 unmodified lines1105110611071108110911105 unmodified lines11161117111811191120112111221104 unmodified linesprompt = f"""Context:{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 linesAnswer:"""llm = ChatOpenAI(model="gpt-4o", temperature=0.2, api_key=openai_api_key)response = llm.invoke(prompt)return response.content.strip()1104 unmodified lines11051106110711081109111011115 unmodified lines11171118111911201121112211231104 unmodified linesprompt = 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 linesAnswer:"""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