Document Processing Playground¶
The Document Processing Playground provides a user interface for exploring the AI_EXTRACT and AI_PARSE_DOCUMENT functions. You can upload your own documents from stage, ask questions to extract information using AI_EXTRACT, and preview both the layout and OCR results generated by AI_PARSE_DOCUMENT. The playground lets you explore how the functions process your documents, and copy the corresponding code snippets for further use.
자세한 내용은 AI_EXTRACT 및 Parsing documents with AI_PARSE_DOCUMENT 섹션을 참조하십시오.
필수 권한¶
사용자는 SNOWFLAKE.CORTEX_USER 데이터베이스 역할 이 부여된 역할을 사용해야 합니다. 이 권한 부여에 대한 내용은 Cortex LLM privileges 섹션을 참조하세요.
Document Processing Playground 시작하기¶
Document Processing Playground에 액세스하려면 다음을 수행합니다.
Snowsight 에 로그인합니다.
In the navigation menu, select AI & ML » AI Studio. The Document Processing Playground appears among the other Studio functions.
To open the Document Processing Playground, select Open.
스테이지에서 문서 업로드하기¶
Add from stage 을 선택합니다.
대화 상자가 나타납니다.
문서가 포함된 데이터베이스, 스키마 및 스테이지를 선택합니다.
Playground에 추가하려는 문서 파일을 선택합니다.
참고
최대 10개의 문서를 선택할 수 있습니다.
Open playground 을 선택합니다.
Playground가 나타납니다.
Document Processing Playground 인터페이스의 오른쪽에는 문서의 미리 보기가 표시되고 왼쪽에는 프롬프트를 입력할 수 있는 프롬프트 영역이 표시됩니다.
팁
미리 보고 있는 문서를 변경하려면 문서 이름을 선택한 후 목록에서 다른 문서를 선택합니다.
Document Processing Playground 인터페이스는 다음 탭으로 구성됩니다.
Extraction: 문서에서 정보를 추출하기 위해 질문할 수 있는 뷰입니다.
Markdown: 문서의 마크다운 표현을 볼 수 있는 뷰입니다. AI_PARSE_DOCUMENT의 LAYOUT 모드 출력입니다.
Text: 문서의 텍스트 표현을 볼 수 있는 뷰입니다. AI_PARSE_DOCUMENT의 OCR 모드 출력입니다.
질문하여 정보 추출하기¶
질문하여 문서에서 정보를 추출할 수 있습니다.
Extraction 탭을 선택합니다.
Select the extraction type:
To ask a question, select Ask.
To extract a list, select List.
To extract a table, select Extract table.
키 페어와 질문 페어를 만듭니다. 예를 들면 다음과 같습니다.
키:
company질문:
What is the name of the company?
확인하려면 :ui:`Add Prompt`를 선택합니다.
문서의 마크다운 및 텍스트 버전 미리 보기¶
Markdown 및 Text 탭에는 AI_PARSE_DOCUMENT 함수의 결과가 표시됩니다.
레이아웃 모드 결과를 보려면 Markdown 탭을 선택합니다.
OCR 모드 결과를 보려면 Text 탭을 선택합니다.
Get the code snippets for further use¶
After you ask at least one question, the playground creates code snippets that use the AI_EXTRACT and AI_PARSE_DOCUMENT functions to process your documents. To preview and copy the code snippets:
인터페이스의 오른쪽 상단에서 :ui:`Code Snippets`를 선택합니다.
코드 조각의 언어를 SQL 또는 Python 중에서 선택합니다.
To open the snippet in workspaces, select Open in Workspaces.
A new workspace opens with the code snippet.
리전 가용성¶
The Document Processing Playground is available in the following regions:
클라우드 플랫폼 |
클라우드 리전 |
|---|---|
Amazon Web Services(AWS) |
|
Microsoft Azure |
|
Google Cloud |
|
제한 사항¶
AI_EXTRACT 및 AI_PARSE_DOCUMENT 함수의 제한 사항이 Document Processing Playground에 적용됩니다. 자세한 내용은 AI_EXTRACT 및 Parsing documents with AI_PARSE_DOCUMENT 섹션을 참조하십시오.