Skip to main content

Making a Document With AutoDoc

Using AutoDoc is the easiest way to create a document in Logic. It allows you to quickly generate a document based on a simple description of the task you want the Logic API to perform.
Prefer manual creation? See Creating and Editing Documents for full control over your document structure.
autodoc

Step 1: Write a document with AutoDoc

What do you need the Logic API to do? Write a short description of the task you want to accomplish. Once you’ve written your description, you can use the AutoDoc feature to automatically generate a document based on that description.
the Template Library for relevant documents to help you get started. You can select one of these templates to automatically populate your document with a predefined structure and content.
For example, if you wanted to create a document for image analysis, you might write something like:
Take an image and tell me what's in it
Once you’ve written your description, click the Create with AutoDoc button. From this description, Logic created a document with the following structure:
Analyze Image Contents

Introduction
This document provides a step-by-step guide for analyzing an image to describe its contents. The goal is to use image recognition techniques to identify objects, scenes, and activities within the image.

Process

Step 1: Image Preprocessing
1. Obtain the image in a suitable digital format.
2. Ensure the image is clear and of sufficient quality for analysis.

Step 2: Object Detection
1. Apply object detection algorithms to identify objects within the image.
2. Note the types of objects detected (e.g., animals, vehicles, buildings).

Step 3: Scene Understanding
1. Analyze the context and setting of the image.
2. Identify the scene type (e.g., outdoor, indoor, landscape, portrait).

Step 4: Activity Recognition
1. If applicable, recognize any activities or actions depicted in the image.
2. Describe the activities in detail (e.g., walking, running, reading).

Input
- Digital image file.

Output
- Description of the image contents, including:
  - Identified objects
  - Scene type
  - Recognized activities

Step 2: Test it out!

Once you have created your document, you can test it out using automatically generated test cases. This will help you ensure that it behaves as expected and meets your requirements. To learn more about how to test your document, check out the Testing Documents section.
I