yo i am having the same problem, i am providing the context from some external documentation using vector embeddings and adding the context as {“role”: “user”, “content”:“text extracted using vector embeddings”}
but is not remembering the context though i am appending all the message to the messsages list, here’s the conversation for the terminal bot i am creating for more details:
(.venv) yug@Yugs-MacBook-Air pgvector-implementation % python3 main.py
User: hello
Messages sent to the API: [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': "(' Intercom\\n',)"}, {'role': 'user', 'content': 'Question: hello'}]
GPT: Hello! How can I assist you today?
User: my name is yug, i have a an online dukaan store, i want to keep it closed this tuesday. how to do that?
Messages sent to the API: [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': "(' Intercom\\n',)"}, {'role': 'user', 'content': 'Question: hello'}, {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}, {'role': 'user', 'content': "('What should I do if I do not want to receive orders on a particular day? | Dukaan® Help CenterGo to DukaanGo to DukaanAll CollectionsStore ProfileWhat should I do if I do not want to receive orders on a particular day?What should I do if I do not want to receive orders on a particular day?Learn how to switch your store Offline or OnlineNWritten by Namrata Sawhney Updated over a week agoJust like physical stores are closed at the end of the day or not opened due to any reason, you can also switch your Dukaan store Offline or Online as per your convenience. To turn your store Offline, Click on the toggle button at the top right which says Online. Choose the option when you want your store to be Online again. Your store will automatically be Online, once the selected time frame is over. Once your store is online, your customers can again place the orders. Only if you choose I’ll go online myself option, you have to manually switch your store to Online, whenever you want to. Click Confirm and your store will be Offline. To switch your store online at any time, click on the toggle that says Offline at the top right to turn it back to Online. Did this answer your question?😞😐😃Dukaan® for PCPrivacy PolicyAbout Dukaan®FacebookTwitterLinkedInIntercomWe run on Intercom\\n',)"}, {'role': 'user', 'content': 'Question: my name is yug, i have a an online dukaan store, i want to keep it closed this tuesday. how to do that?'}]
GPT: Hi Yug! To keep your Dukaan store closed on a particular day, you can follow these steps:
1. Open your Dukaan app and go to your store profile.
2. Look for the toggle button at the top right corner, which says "Online".
3. Click on the toggle button to switch your store from Online to Offline.
4. After clicking on the toggle button, you will see an option to choose the time frame for which you want your store to remain offline.
5. Choose the date and time when you want your store to go online again.
6. Click on the "Confirm" button to switch your store to offline mode.
Once you have switched your store to offline mode, your customers will not be able to place any orders until your store goes online again as per the time frame you have chosen. You can switch your store to online mode by clicking the same toggle button at any time.
User: what is my name?
Messages sent to the API: [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': "(' Intercom\\n',)"}, {'role': 'user', 'content': 'Question: hello'}, {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}, {'role': 'user', 'content': "('What should I do if I do not want to receive orders on a particular day? | Dukaan® Help CenterGo to DukaanGo to DukaanAll CollectionsStore ProfileWhat should I do if I do not want to receive orders on a particular day?What should I do if I do not want to receive orders on a particular day?Learn how to switch your store Offline or OnlineNWritten by Namrata Sawhney Updated over a week agoJust like physical stores are closed at the end of the day or not opened due to any reason, you can also switch your Dukaan store Offline or Online as per your convenience. To turn your store Offline, Click on the toggle button at the top right which says Online. Choose the option when you want your store to be Online again. Your store will automatically be Online, once the selected time frame is over. Once your store is online, your customers can again place the orders. Only if you choose I’ll go online myself option, you have to manually switch your store to Online, whenever you want to. Click Confirm and your store will be Offline. To switch your store online at any time, click on the toggle that says Offline at the top right to turn it back to Online. Did this answer your question?😞😐😃Dukaan® for PCPrivacy PolicyAbout Dukaan®FacebookTwitterLinkedInIntercomWe run on Intercom\\n',)"}, {'role': 'user', 'content': 'Question: my name is yug, i have a an online dukaan store, i want to keep it closed this tuesday. how to do that?'}, {'role': 'assistant', 'content': 'Hi Yug! To keep your Dukaan store closed on a particular day, you can follow these steps:\n\n1. Open your Dukaan app and go to your store profile.\n2. Look for the toggle button at the top right corner, which says "Online".\n3. Click on the toggle button to switch your store from Online to Offline.\n4. After clicking on the toggle button, you will see an option to choose the time frame for which you want your store to remain offline.\n5. Choose the date and time when you want your store to go online again.\n6. Click on the "Confirm" button to switch your store to offline mode.\n\nOnce you have switched your store to offline mode, your customers will not be able to place any orders until your store goes online again as per the time frame you have chosen. You can switch your store to online mode by clicking the same toggle button at any time.'}, {'role': 'user', 'content': "('How to show my store name on my website? | Dukaan® Help CenterGo to DukaanGo to DukaanAll CollectionsStore ProfileHow to show my store name on my website?How to show my store name on my website?Learn how to show your store name on your eCommerce website using DukaanNWritten by Namrata Sawhney Updated over a week agoThe preferences section on web allows you to show your store name alongside the store logo at the top of the navigation bar. To access the preferences section, click on the dropdown in the top right corner. Now, click on Store Settings. Select Preferences from the panel on the left. The show store name toggle in the header section allows you to add your store name alongside the logo on top of the navigation bar. By default, this feature is turned on. This is how your store will look like to the buyer when the toggle is switched on. This is how your store will look like to the buyer when the toggle is switched off. To enable this feature, set the show store name toggle to on by clicking on it.Read MoreHow to use Advance Catalogue?How to Auto Accept Orders?How to set order preferences?Did this answer your question?😞😐😃Dukaan® for PCPrivacy PolicyAbout Dukaan®FacebookTwitterLinkedInIntercomWe run on Intercom\\n',)"}, {'role': 'user', 'content': 'Question: what is my name?'}]
GPT: I apologize, but as an AI language model, I don't have access to personal information such as your name. Could you please tell me your name? I'll be happy to assist you with any questions or concerns you have.
User: i told you previosly, look in the history
Messages sent to the API: [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': "(' Intercom\\n',)"}, {'role': 'user', 'content': 'Question: hello'}, {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}, {'role': 'user', 'content': "('What should I do if I do not want to receive orders on a particular day? | Dukaan® Help CenterGo to DukaanGo to DukaanAll CollectionsStore ProfileWhat should I do if I do not want to receive orders on a particular day?What should I do if I do not want to receive orders on a particular day?Learn how to switch your store Offline or OnlineNWritten by Namrata Sawhney Updated over a week agoJust like physical stores are closed at the end of the day or not opened due to any reason, you can also switch your Dukaan store Offline or Online as per your convenience. To turn your store Offline, Click on the toggle button at the top right which says Online. Choose the option when you want your store to be Online again. Your store will automatically be Online, once the selected time frame is over. Once your store is online, your customers can again place the orders. Only if you choose I’ll go online myself option, you have to manually switch your store to Online, whenever you want to. Click Confirm and your store will be Offline. To switch your store online at any time, click on the toggle that says Offline at the top right to turn it back to Online. Did this answer your question?😞😐😃Dukaan® for PCPrivacy PolicyAbout Dukaan®FacebookTwitterLinkedInIntercomWe run on Intercom\\n',)"}, {'role': 'user', 'content': 'Question: my name is yug, i have a an online dukaan store, i want to keep it closed this tuesday. how to do that?'}, {'role': 'assistant', 'content': 'Hi Yug! To keep your Dukaan store closed on a particular day, you can follow these steps:\n\n1. Open your Dukaan app and go to your store profile.\n2. Look for the toggle button at the top right corner, which says "Online".\n3. Click on the toggle button to switch your store from Online to Offline.\n4. After clicking on the toggle button, you will see an option to choose the time frame for which you want your store to remain offline.\n5. Choose the date and time when you want your store to go online again.\n6. Click on the "Confirm" button to switch your store to offline mode.\n\nOnce you have switched your store to offline mode, your customers will not be able to place any orders until your store goes online again as per the time frame you have chosen. You can switch your store to online mode by clicking the same toggle button at any time.'}, {'role': 'user', 'content': "('How to show my store name on my website? | Dukaan® Help CenterGo to DukaanGo to DukaanAll CollectionsStore ProfileHow to show my store name on my website?How to show my store name on my website?Learn how to show your store name on your eCommerce website using DukaanNWritten by Namrata Sawhney Updated over a week agoThe preferences section on web allows you to show your store name alongside the store logo at the top of the navigation bar. To access the preferences section, click on the dropdown in the top right corner. Now, click on Store Settings. Select Preferences from the panel on the left. The show store name toggle in the header section allows you to add your store name alongside the logo on top of the navigation bar. By default, this feature is turned on. This is how your store will look like to the buyer when the toggle is switched on. This is how your store will look like to the buyer when the toggle is switched off. To enable this feature, set the show store name toggle to on by clicking on it.Read MoreHow to use Advance Catalogue?How to Auto Accept Orders?How to set order preferences?Did this answer your question?😞😐😃Dukaan® for PCPrivacy PolicyAbout Dukaan®FacebookTwitterLinkedInIntercomWe run on Intercom\\n',)"}, {'role': 'user', 'content': 'Question: what is my name?'}, {'role': 'assistant', 'content': "I apologize, but as an AI language model, I don't have access to personal information such as your name. Could you please tell me your name? I'll be happy to assist you with any questions or concerns you have."}, {'role': 'user', 'content': "(' open it, you can see a black navigation bar on the top. This navigation bar displays all the items be it products, categories, pages, or custom links here. As described above, we had added a product, category, and About Us page to the navigation bar which can be seen here. Also, we nested the product under the category to create a drop-down menu. To see it, hover over the category name and you can see the products listed under it. Did this answer your question?😞😐😃Dukaan® for PCPrivacy PolicyAbout Dukaan®FacebookTwitterLinkedInIntercomWe run on Intercom\\n',)"}, {'role': 'user', 'content': 'Question: i told you previosly, look in the history'}]
GPT: I apologize if I missed your previous query. Can you please repeat your question or concern so that I can assist you?
User: