documents = SimpleDirectoryReader('data2').load_data() index = VectorStoreIndex.from_documents(documents, service_context=service_context) query_engine = index.as_query_engine(similarity_top_k=10) query_preamble= "Given the provided product details, recommend several products from the provided data, and describe them, that satisfies the following search query or question: " prompt = query_preamble + query.content response = query_engine.query(prompt + ". Now output this data in a numbered list without including 'Product Name' and 'Description' keywords. Then summarize everything at the end.")
this was working fine in my local, and i have tested out endpoints so theres no problem with connecting to this api from frontend. However, i am getting this issue when i access /stream endpoint.