You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'feature/chat-with-document' into 'develop'
update for chat with document resolver to use the IDP common bedrock class
See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!295
full_prompt="You are an assistant that's responsible for getting details from document text attached here based on questions from the user.\n\n"
55
-
full_prompt+="If you don't know the answer, just say that you don't know. Don't try to make up an answer.\n\n"
56
-
full_prompt+="Additionally, use the user and assistant responses in the following JSON object to see what's been asked and what the resposes were in the past.\n\n"
57
-
# full_prompt += "Your response MUST be in the following JSON format: {'content': [{'text': 'String'}]}.\n\n"
58
-
# full_prompt += "You MUST NOT include outside of that JSON format.\n\n"
59
-
# full_prompt += "Do NOT include the role or anything else in the response."
60
-
full_prompt+="The history JSON object is: "+json.dumps(history) +".\n\n"
106
+
full_prompt="The history JSON object is: "+json.dumps(history) +".\n\n"
61
107
full_prompt+="The user's question is: "+prompt+"\n\n"
62
108
63
109
# this feature is not enabled until the model can be selected on the chat screen
system_prompt="You are an assistant that's responsible for getting details from document text attached here based on questions from the user.\n\nIf you don't know the answer, just say that you don't know. Don't try to make up an answer.\n\nAdditionally, use the user and assistant responses in the following JSON object to see what's been asked and what the resposes were in the past.\n\n",
0 commit comments