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
Copy file name to clipboardExpand all lines: docs/web-ui.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ The solution includes a responsive web-based user interface built with React tha
22
22
-**Confidence threshold configuration** for HITL (Human-in-the-Loop) triggering through the Assessment & HITL Configuration section
23
23
- Document upload from local computer
24
24
- Knowledge base querying for document collections
25
+
- "Chat with document" from the detailed view of the document
25
26
-**Document Process Flow visualization** for detailed workflow execution monitoring and troubleshooting
26
27
-**Document Analytics** for querying and visualizing processed document data
27
28
@@ -97,6 +98,17 @@ The Document Process Flow visualization is particularly useful for troubleshooti
97
98
- Analyze execution times to identify performance bottlenecks
98
99
- Inspect the input and output of each step to verify data transformation
99
100
101
+
## Chat with Document
102
+
103
+
The "Chat with Document" feature is available at the bottom of the Document Detail view. This feature uses the same model that's configured to do the summarization to provide a RAG interface to the document that's the details are displayed for. No other document is taken in to account except the document you're viewing the details of. Note that this feature will only work after the document status is marked as complete.
104
+
105
+
Your chat history will be saved as you continue your chat but if you leave the document details screen, your chat history is erased. This feature uses prompt caching for the document contents for repeated chat requests for each document.
106
+
107
+
### How to Use
108
+
109
+
1. Navigate to a document's detail page and scroll to the bottom
110
+
2. In the text area, type in your question and you'll see an answer pop up after the document is analyzed with the model that's configured for summarization
111
+
100
112
## Authentication Features
101
113
102
114
The web UI uses Amazon Cognito for secure user authentication and authorization:
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"
53
+
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"
54
+
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"
55
+
full_prompt+="The JSON object is: "+json.dumps(history) +".\n\n"
56
+
full_prompt+="The user's question is: "+prompt
57
+
58
+
# this feature is not enabled until the model can be selected on the chat screen
0 commit comments