Update app.py
Browse files490 unmodified lines4914924934944954964975 unmodified lines503504505506507508509490 unmodified linesinitial_prompt = f"""Using the following context from web search results:{context}Write a detailed and complete response that answers the following user query: '{query}'Stick closely to the information provided in the context and avoid making unsupported claims."""try:5 unmodified lines# Generate critiquecritique = critique_response(initial_response, context, query, model)final_prompt = f"""Given the following initial response, context, critique, and original query, provide a revised response that addresses the identified issues and sticks closely to the information provided in the context while fully answering the user's query.User Query: {query}490 unmodified lines4914924934944954964974985 unmodified lines504505506507508509510490 unmodified linesinitial_prompt = f"""Using the following context from web search results:{context}Write a detailed and complete research document that fulfills the following user request: '{query}'After writing the document, please provide a list of sources used in your response.Stick closely to the information provided in the context and avoid making unsupported claims."""try:5 unmodified lines# Generate critiquecritique = critique_response(initial_response, context, query, model)final_prompt = f"""Given the following initial response, context, critique, and original query, provide a revised response that addresses the identified issues and sticks closely to the information provided in the context while fully answering the user's query in a detailed and complete research document that fulfills the user request, After writing the document, please provide a list of sources used in your response.User Query: {query}
app.py+3-2