Why does answering your question take a whole minute

Why does it take me a full minute to generate an answer using the following code?

def answer_with_pinecone(query, documents, embeddings):
    docsearch = Pinecone.from_texts(
        texts=[t.page_content for t in documents],
        embedding=embeddings, index_name=os.environ.get('index_name'))
    docs = docsearch.similarity_search(query)
    llm = OpenAI(temperature=0, openai_api_key=openai.api_key)
    chain = load_qa_chain(llm, chain_type="map_reduce")
    answer = chain.run(input_documents=docs, question=query).lstrip()
    return answer

I would much rather would take one second especially since this is for a production use case

By the way I’m sure that you are going to notice some other mistakes that I’ve made and I would love to hear your feedback because I could really use the constructive criticism to make my product the best as it possibly can be for the use case of being a customer facing chat bot

thank you so very much for your valuable time and assistance!!