aws-samples / generative-ai-amazon-bedrock-langchain-agent-example

MIT No Attribution
215 stars 380 forks source link

the chat not saving into conversation table #2

Closed vikmehta-deluxe closed 11 months ago

vikmehta-deluxe commented 11 months ago

The chat history is not saving into the conversation table.Does it required to upgrade new version? if yes, then which version?

kyleblocksom commented 11 months ago

Are you checking the ConversationTable or ConversationIndexTable?

ConversationTable should contain contextual chat history as shown in the attached screenshot.

ConversationTable

vikmehta-deluxe commented 11 months ago

I am referring ConversationTable and chat history is not saving in it.

DynamoDB Error

kyleblocksom commented 11 months ago

What are your sample prompts and responses?

vikmehta-deluxe commented 11 months ago

The chat data is storing into the table after updating the latest code fixes provided for the prompt (issue 1).

However, in many of the chat response we are observing the following prefix text.

What are the changes to make the presentation clean in chat bot?

kyleblocksom commented 11 months ago

Sounds like an issue with the instructions you are using to instantiate the Agent in fsi_agent.py. I would suggest modifying the PREFIX instructions for your Agent.