Chat with your document without a knowledge base configured
The Chat with your document feature in the Amazon Bedrock console allows you to easily
test play a knowledge base without the need to configure a knowledge base. You can load a
document or drag-and-drop a document in the console chat window to then start asking questions.
Chat with your document uses your document to answer questions, make an
analysis, create a summary, itemize fields in a numbered list, or rewrite content. Chat
with your document doesn't store your document or its data after use.
The Chat with your document feature is currently best supported with
Anthropic Sonnet models. See Supported models for
knowledge bases for more information about how to access and use knowledge base models.
You can't use a reranker model when chatting with your document.
You can also easily prototype a chat or flow application without the need to configure a
knowledge base. Using Amazon Bedrock Studio, you can upload a document from your computer to provide the data or
'data source' for your application. To get access Amazon Bedrock Studio, contact your administrator to
grant you access to an Amazon Bedrock Studio workspace.
To use the Chat with your document feature as part of knowledge bases,
select the tab below and follow the steps.
- Console
-
To chat with your document in Amazon Bedrock:
-
Open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/.
-
From the left navigation pane, select Knowledge base and choose Chat with your document.
-
In the Chat with your document tab, Select Select a model under Model.
-
Choose the model you want to use for document analysis and select Apply.
-
Enter a system prompt on the Chat with your document tab.
-
Under Data select Your computer or S3.
-
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.
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.
-
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.
-
Select Run. The response produces search results with an option Show source chunks that show the source material information for the answer.
-
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.
Selecting a new file will wipe out previous queries and responses and will start a new session.