Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 51 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
# Virtual environments
.venv
venv
myenv
scriptsenv/
scriptenv

# Environment files with secrets
.env
.env.local
.env.*.local
*.env

# Azure
.azure/

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg-info/
dist/
build/
eggs/
*.egg

# Jupyter
.ipynb_checkpoints/

# IDE
.vscode/
.idea/
*.swp
*.swo

venv
myenv
# Node
/content-gen/src/frontend/node_modules/
node_modules/

scriptsenv/
# Logs
*.log
logs/

scriptenv
pdf
# Keys and credentials
*.pem
*.key
*.pfx
*.p12
*secret*
*credential*

# OS files
.DS_Store
Thumbs.db

# Misc
pdf
*.bak
*.tmp
30 changes: 10 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Document generation solution accelerator

This solution accelerator is a powerful tool that helps you create your own AI assistant for document generation. The accelerator can be used by any customer looking for reusable architecture and code snippets to build an AI assistant to generate a sample template and content grounded on their own enterprise data.

This example focuses on a generic use case - chat with your own data, generate a document template using your own data, and exporting the document in a docx format.
# Content generation solution accelerator

This solution accelerator is an internal chatbot that can interpret and
understand context and direction from a creative brief to create multi-modal text and image content for a marketing ad campaign.​
<br/>

<div align="center">
Expand All @@ -16,7 +14,7 @@ This example focuses on a generic use case - chat with your own data, generate a
**Note:** With any AI solutions you create using these templates, you are responsible for assessing all associated risks and for complying with all applicable laws and safety standards. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
<br/>

<h2><img src="./docs/images/readme/solution-overview.png" width="48" />
<h2><img src="./docs/images/readme/solution_overview.png" width="48" />
Solution overview
</h2>

Expand All @@ -25,7 +23,7 @@ It leverages Azure OpenAI Service and Azure AI Search, to identify relevant docu
The sample data is sourced from generic AI-generated promissory notes. The documents are intended for use as sample data only.

### Solution architecture
|![image](./docs/images/DocGen_Azure_AI_Foundry_Architecture.png)|
|TBD|
|---|


Expand All @@ -46,21 +44,13 @@ The sample data is sourced from generic AI-generated promissory notes. The docum
<details open>
<summary>Click to learn more about the key features this solution enables</summary>

- **Semantic search** <br/>
Azure AI Search to enable RAG and grounding of the application on the processed dataset.​

- **Summarization** <br/>
Azure OpenAI Service and GPT models to help summarize the search content and answer questions.​

- **Content generation** <br/>
Azure OpenAI Service and GPT models to help generate relevant content with Prompt Flow.​

- **TBD** <br/>
Azure...​

</details>



<br /><br />
<h2><img src="./docs/images/readme/quick-deploy.png" width="48" />
<h2><img src="./docs/images/readme/quick_deploy.png" width="48" />
Quick deploy
</h2>

Expand Down Expand Up @@ -157,7 +147,7 @@ Put your data to work by reducing blank page anxiety, speeding up document draft

<br /><br />

<h2><img src="./docs/images/readme/supporting-documentation.png" width="48" />
<h2><img src="./docs/images/readme/supporting_documentation.png" width="48" />
Supporting documentation
</h2>

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions archive-doc-gen/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: Create-Release
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: codfish/semantic-release-action@v4
id: semantic
with:
tag-format: 'v${version}'
additional-packages: |
['conventional-changelog-conventionalcommits@7']
plugins: |
[
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'perf', section: 'Performance Improvements', hidden: false },
{ type: 'revert', section: 'Reverts', hidden: false },
{ type: 'docs', section: 'Other Updates', hidden: false },
{ type: 'style', section: 'Other Updates', hidden: false },
{ type: 'chore', section: 'Other Updates', hidden: false },
{ type: 'refactor', section: 'Other Updates', hidden: false },
{ type: 'test', section: 'Other Updates', hidden: false },
{ type: 'build', section: 'Other Updates', hidden: false },
{ type: 'ci', section: 'Other Updates', hidden: false }
]
}
}
],
'@semantic-release/github'
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ steps.semantic.outputs.release-version }}
- run: echo "$OUTPUTS"
env:
OUTPUTS: ${{ toJson(steps.semantic.outputs) }}
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: Create-Release

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event.workflow_run.head_sha }}

- uses: codfish/semantic-release-action@v4
id: semantic
with:
tag-format: 'v${version}'
additional-packages: |
['conventional-changelog-conventionalcommits@7']
plugins: |
[
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'perf', section: 'Performance Improvements', hidden: false },
{ type: 'revert', section: 'Reverts', hidden: false },
{ type: 'docs', section: 'Other Updates', hidden: false },
{ type: 'style', section: 'Other Updates', hidden: false },
{ type: 'chore', section: 'Other Updates', hidden: false },
{ type: 'refactor', section: 'Other Updates', hidden: false },
{ type: 'test', section: 'Other Updates', hidden: false },
{ type: 'build', section: 'Other Updates', hidden: false },
{ type: 'ci', section: 'Other Updates', hidden: false }
]
}
}
],
'@semantic-release/github'
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ steps.semantic.outputs.release-version }}

- run: echo "$OUTPUTS"
env:
OUTPUTS: ${{ toJson(steps.semantic.outputs) }}
15 changes: 15 additions & 0 deletions archive-doc-gen/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.venv

.env
.azure/
__pycache__/
.ipynb_checkpoints/


venv
myenv

scriptsenv/

scriptenv
pdf
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions archive-doc-gen/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
14 changes: 14 additions & 0 deletions archive-doc-gen/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Contributing

This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
21 changes: 21 additions & 0 deletions archive-doc-gen/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
Loading
Loading