---
title: "Comment by Parna Mishra on \"Building an Interactive Chatbot with Langchain, ChatGPT, Pinecone, and Streamlit\" | Hashnode"
description: "I am getting the below error when main.py file KeyError: &#39;st.session_state has no key &quot;responses&quot;. Did you forget to initialize it? Can anyone ple"
url: "https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/6566219144ab01484e94c4f8"
---

[Discussion](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77)

Comment [Building an Interactive Chatbot with Langchain, ChatGPT, Pinecone, and Streamlit](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77)

[Parna Mishra](https://hashnode.com/@parnamishra)

[Nov 28, 2023](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/6566219144ab01484e94c4f8)

I am getting the below error when main.py file

KeyError: 'st.session\_state has no key "responses". Did you forget to initialize it?

Can anyone please help me rectify this?

[Vamshi Krishna](https://hashnode.com/@krishna309)

[Jan 2, 2024](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/6566219144ab01484e94c4f8#reply-6593e4758010c2ed87e998c9)

Did you resolve this issue [Parna Mishra](https://hashnode.com/@parnamishra)
