Chat with your document data using the knowledge base - Amazon Bedrock

Chat with your document data using the knowledge base

Chat with your document without the need to configure a Knowledge Base. You can load the document or drag-and-drop the document in the chat window to ask questions about it. Chat with your document uses your document to answers questions, make an analysis, create a summary, itemize fields in a numbered list, or rewrite content. Chat with your document does not store your document or its data after use.

To chat with your document in Amazon Bedrock, select the tab below and follow the steps.

Console
To chat with your document in Amazon Bedrock:
  1. Open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/.

  2. From the left navigation pane, select Knowledge base and choose Chat with your document.

  3. In the Chat with your document tab, Select Select a model under Model.

  4. Choose the model you want to use for document analysis and select Apply.

  5. Enter a system prompt on the Chat with your document tab.

  6. Under Data select Your computer or S3.

  7. Select Select document to upload your document. You can also drag-and-drop the document in the chat console in the box that says Write a query.

    Note

    File types: PDF, MD, TXT, DOC, DOCX, HTML, CSV, XLS, XLSX. There is a preset fixed token limit when using a file under 10MB. A text-heavy file that is smaller than 10MB can potentially be larger than the token limit.

  8. Enter a custom prompt in the box that says Write a query. You can enter a custom prompt or use the default prompt. The loaded document and the prompt appear the bottom of the chat window.

  9. Select Run. The response produces search results with an option Show source chunks that show the source material information for the answer.

  10. To load a new file, select the X to delete the current file loaded into the chat window and drag and drop and new file. Enter a new prompt and select Run.

    Note

    Selecting a new file will wipe out previous queries and responses and will start a new session.