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
Welcome to ADA! This tool helps you convert documents and troubleshoot errors efficiently using Azure OpenAI's Large Language Models and the Azure Innovation Engine.
3
+
ADA (AI Documentation Assistant) helps you create, convert, and manage Executable Documents efficiently using Azure OpenAIand Innovation Engine.
4
4
5
5
## Features
6
6
7
-
- Converts source markdown files to Exec Docs with proper formatting.
8
-
- Generates new Exec Docs from workload descriptions with auto-generated titles.
9
-
- Creates documentation for shell scripts while preserving the original code.
10
-
- Redacts Personally Identifiable Information (PII) from Exec Doc result blocks.
11
-
- Automatically identifies and generates dependency files referenced in documents.
12
-
- Performs comprehensive security vulnerability analysis on Exec Docs.
13
-
- Logs execution data to a CSV file for analytics.
7
+
-**Convert to Exec Docs**: Transform existing markdown files to executable documents
8
+
-**Generate New Exec Docs**: Create new executable documents from a workload description
9
+
-**Reference Integration**: Include content from URLs and local files when generating documents
10
+
-**Script Documentation**: Create comprehensive explanations for shell scripts
11
+
-**PII Redaction**: Automatically redact sensitive information from result blocks
To obtain an Azure OpenAI API key and endpoint, follow these steps:
44
+
To obtain an Azure OpenAI API key and endpoint, follow these steps:
41
45
42
46
1.**Sign in to the Azure Portal**:
43
47
- Navigate to [https://portal.azure.com](https://portal.azure.com) and log in with your Azure credentials.
@@ -58,7 +62,7 @@ Welcome to ADA! This tool helps you convert documents and troubleshoot errors ef
58
62
- After creating your Azure OpenAI resource, navigate to the **Overview** page of your resource.
59
63
- Click on "Go to Azure AI Studio" to open the Azure AI Studio interface.
60
64
- In Azure AI Studio, select "Deployments" from the left-hand menu.
61
-
- Click "Deploy model" and choose `gpt-4o` from the Azure OpenAI collection.
65
+
- Click "Deploy model" and choose `o4-mini` from the Azure OpenAI collection.
62
66
- Provide a deployment name and configure any additional settings as needed.
63
67
- Click "Deploy" to deploy the model.
64
68
@@ -93,101 +97,94 @@ Welcome to ADA! This tool helps you convert documents and troubleshoot errors ef
93
97
By following these steps, you'll have your Azure OpenAI API key and endpoint configured, a model deployed, and your environment variables set up in a Linux environment, ready for integration into your applications.
94
98
95
99
For a visual walkthrough of creating an Azure OpenAI resource and deploying a model, you might find the following video helpful:
96
-
97
-
## Usage
98
100
99
-
1. Run the script:
100
-
```bash
101
-
python ada.py
102
-
```
101
+
4. Run ADA:
102
+
```bash
103
+
python ada.py
104
+
```
105
+
106
+
### Option 2: Docker Installation
107
+
108
+
1. Build the Docker image:
109
+
```bash
110
+
docker build -t ada-tool .
111
+
```
112
+
113
+
2. Run ADA in a Docker container:
114
+
```bash
115
+
docker run -it --rm \
116
+
-e AZURE_OPENAI_API_KEY="your_api_key_here" \
117
+
-e AZURE_OPENAI_ENDPOINT="your_endpoint_here" \
118
+
-v "$(pwd):/app/workspace" \
119
+
-v "$HOME/.azure:/root/.azure" \
120
+
-w /app/workspace \
121
+
ada-tool
122
+
```
123
+
124
+
3. Run ADA:
125
+
```bash
126
+
./run-ada.sh
127
+
```
128
+
## Usage
103
129
104
-
2. Choose from the available options:
130
+
1. Select from the available options:
105
131
- Option 1: Convert an existing markdown file to an Exec Doc
106
-
- Option 2: Describe a workload to generate a new Exec Doc
107
-
- Option 3: Add descriptions to a shell script as an Exec Doc
108
-
- Option 4: Redact PII from an existing Exec Doc
109
-
- Option 5: Perform security vulnerability check on an Exec Doc
110
-
111
-
3. Follow the prompts to provide the required information:
112
-
- For file conversion, provide the path to your input file
113
-
- For workload descriptions, describe your intended workload in detail
114
-
- For shell script documentation, provide the path to your script and optional context
115
-
- For PII redaction, provide the path to your Exec Doc
116
-
- For security checks, provide the path to your Exec Doc
117
-
118
-
4. The tool will process your request based on the selected option:
119
-
- For options 1 and 2, it will convert or create an Exec Doc and run tests using Innovation Engine
120
-
- For options 3, 4, and 5, it will generate the requested output and save it to a file
121
-
122
-
5. For document conversion or creation, if the tests pass successfully, the final document will be saved with proper formatting.
123
-
124
-
## Script Workflow
132
+
- Option 2: Generate a new Exec Doc from a workload description
133
+
- Option 3: Create descriptions for your shell script
134
+
- Option 4: Redact PII from your Doc
135
+
- Option 5: Perform security analysis on your Doc
136
+
- Option 6: Perform SEO optimization on your Doc
125
137
126
-
1. **Initialization**: The script initializes the Azure OpenAI client and checks for required packages.
138
+
2. Follow the prompts for each option:
139
+
- For file conversion: provide the path to your source file
140
+
- For generating new docs: describe the workload and optionally add reference data
141
+
- For script documentation: provide the path to your script and context
142
+
- For PII redaction: provide the path to your source document
143
+
- For security analysis: provide the path to the document to analyze
144
+
- For SEO optimization: provide the path to the document to optimize
127
145
128
-
2. **Option Selection**: Prompts the user to select from available options for document processing.
146
+
## Output Location
129
147
130
-
3. **Input Collection**: Collects necessary inputs based on the selected option.
148
+
- When generating a new Exec Doc (option 2), ADA creates a dedicated folder for the output
149
+
- For all other operations, ADA saves output files in the same directory as the source file
150
+
- Execution logs are saved in a centralized log.json file in the script directory
131
151
132
-
4. **Processing Based on Option**:
133
-
- **Convert Markdown**: Converts an existing markdown file to an Exec Doc
134
-
- **Generate New Doc**: Creates an Exec Doc from a workload description
135
-
- **Document Script**: Adds detailed explanations to a shell script
136
-
- **Redact PII**: Removes personally identifiable information from result blocks
0 commit comments