Skip to content

Releases: Azure-Samples/azure-search-openai-demo

2025-01-29b: New database schema for Cosmos DB

29 Jan 22:53
7a2044a

Choose a tag to compare

This release improves the database schema for the Cosmos DB chat history feature, based on discussions with the Cosmos DB team about avoiding excessively large document sizes. This is a breaking change, so if you already have the feature deployed, you'll need to do a full azd up to create the new container and deploy the new code, and users will not see past chat history.

If you want to migrate the past chat history to the new schema before deploying the change, please file an issue in the tracker, and we will write a migration script from the new container to the older container.

 ## What's Changed

  • Improve schema of CosmosDB chat history to handle long conversations by @pamelafox in #2312

Full Changelog: 2025-01-29a...2025-01-29b

2025-01-29a: More options to customize OpenAI deployments

29 Jan 21:02
a891ab3

Choose a tag to compare

This release contains various bug fixes, plus two new environment variables for controlling Azure OpenAI deployments:

  • AZURE_OPENAI_DISABLE_KEYS (which defaults to true, since this repository uses keyless authentication)
  • AZURE_OPENAI_LOCATION for programmatically setting the OpenAI resource location, helpful for those of you using an existing Azure OpenAI resource.

See docs for more details.

What's Changed

Full Changelog: 2025-01-14...2025-01-29a

2025-01-14: Use Prompty for prompt management

14 Jan 21:36
3629df8

Choose a tag to compare

This release uses Prompty (https://prompty.ai/) to store prompts, instead of storing them in Python strings.

All prompts are inside prompty files, stored in app/backend/approaches/prompts. The prompty file format has good support in the Microsoft ecosystem: you can use the VS Code Prompty extension to experiment with the prompts, and you can even upload the prompty files to the Chat playground in Azure AI Foundry.

Screenshot of Prompty file in VS Code

This is a significant code change, so merge carefully. You will want to change your prompty files to match any customizations you made to your app's prompts.

Join us for tomorrow's live stream to learn more:
https://www.youtube.com/watch?v=D3slfMqydHc

What's Changed

Full Changelog: 2025-01-13...2025-01-14

2025-01-13: Python 3.13 support

13 Jan 22:32
5f898db

Choose a tag to compare

This release includes a number of dependency upgrades. Those upgrades mean you should now be able to use Python 3.13 for the local development environment on Mac, Windows, or Linux.

What's Changed

New Contributors

Full Changelog: 2024-12-09...2025-01-13

2024-12-09: Media description with Azure Content Understanding

09 Dec 18:45
0bb3f95

Choose a tag to compare

This release adds a new optional feature for data ingestion that sends each figure in a document to Azure Content Understanding to generate a description. This is an alternative approach to our vision approach for handling documents with images, though it could even be used in conjunction with it.

For example, for this document:
Screenshot 2024-12-09 at 10 48 44 AM

The graph is replaced by this description:
Screenshot 2024-12-09 at 10 50 52 AM

The description is stored as HTML in the chunk, for maximal expressivity:

  <figure>
   <figcaption>Impact of Interest Rates, Inflation, and GDP Growth on Financial Markets<br>
   The line graph titled 'On Financial Markets' displays trends in Interest Rates, Inflation Data, and GDP Growth from 2018 to 2023. The x-axis represents the years, while the y-axis shows percentage values ranging from -5 to 5. Interest Rates start at 2% in 2018, dip to 1% in 2020, and rise to 2% by 2023. Inflation Data begins at 2%, peaks at 3% in 2022, and slightly decreases to 2.5% in 2023. GDP Growth shows a significant drop to -4% in 2020, recovers to 3% in 2021, and stabilizes at 2% by 2023.
    <table>
      <thead>
        <tr>
          <td>Year</td>
          <td>Interest Rates %</td>
          <td>Inflation Data %</td>
          <td>GDP Growth %</td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>2018</td>
          <td>2</td>
          <td>2</td>
          <td>2</td>
        </tr>
        <tr>
          <td>2019</td>
          <td>2</td>
          <td>2.5</td>
          <td>1</td>
        </tr>
        <tr>
          <td>2020</td>
          <td>1</td>
          <td>1.5</td>
          <td>-4</td>
        </tr>
        <tr>
          <td>2021</td>
          <td>1.5</td>
          <td>2</td>
          <td>3</td>
        </tr>
        <tr>
          <td>2022</td>
          <td>2</td>
          <td>3</td>
          <td>2</td>
        </tr>
        <tr>
          <td>2023</td>
          <td>2</td>
          <td>2.</td>
        </tr>
      </tbody>
    </table></figure>

See the doc for enabling the feature:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/deploy_features.md#enabling-media-description-with-azure-content-understanding

Please try it out and give feedback.

What's Changed

  • Add media description feature using Azure Content Understanding by @pamelafox in #2195

Full Changelog: 2024-12-02...2024-12-09

2024-12-02: Use built-in auth for Azure Container Apps

02 Dec 22:12
e90920f

Choose a tag to compare

This release configures built-in auth for Azure Container Apps deployments when you enable the user login feature. Previously, we only supported built-in auth for App Service, so user login was handled entirely by the MSAL SDK for Azure Container Apps. Now, with built-in auth on ACA, the user will be prompted to login before they ever see the chat application, and the frontend will reuse the tokens from the built-in auth service.

If you have an already deployed app on Container Apps using the login feature, you may want to ask users to clear their localStorage and cookies to get the new login experience.

Here are screenshots of the new login experience-

Visiting the URL immediately redirects to the auth tenant login screen:
Screenshot 2024-12-02 at 2 10 15 PM

After successful login, it redirects back to the app, and the user sees their logged in email:
Screenshot 2024-12-02 at 2 10 33 PM

What's Changed

New Contributors

Full Changelog: 2024-11-19b...2024-12-02

2024-11-19b: Turkish translations

19 Nov 22:59
194876a

Choose a tag to compare

The app UI now has Turkish translations. A user will see the Turkish if their browser defaults to that language, or they can select Turkish from the language picker if you have enabled the optional language picker.

Screenshot of Turkish UI

What's Changed

New Contributors

Full Changelog: 2024-11-19...2024-11-19b

2024-11-19: start.sh improvement

19 Nov 22:28
bf40357

Choose a tag to compare

This release features an improvement to the start scripts so they can be run directly from the root, like "./app/start.sh"

This release also upgrades many backend and frontend packages to the latest version.

What's Changed

  • Update start.sh by @yavuzkaymak in #2147
  • Bump @fluentui/react-icons from 2.0.249 to 2.0.265 in /app/frontend by @dependabot in #2142
  • Bump @types/react from 18.3.11 to 18.3.12 in /app/frontend by @dependabot in #2161
  • Bump @fluentui/react-components from 9.55.1 to 9.56.2 in /app/frontend by @dependabot in #2160
  • Bump @azure/msal-react from 2.0.21 to 2.2.0 in /app/frontend by @dependabot in #2143
  • Bump aiohttp from 3.10.5 to 3.10.11 in /app/backend by @dependabot in #2166
  • Use per-package dependency updates for Python packages by @dependabot in #2163
  • Bump react-i18next from 15.0.1 to 15.1.1 in /app/frontend by @dependabot in #2177
  • Bump dompurify from 3.1.6 to 3.2.0 in /app/frontend by @dependabot in #2176
  • Bump react-syntax-highlighter from 15.5.0 to 15.6.1 in /app/frontend by @dependabot in #2170
  • Bump react-router-dom from 6.26.2 to 6.28.0 in /app/frontend by @dependabot in #2172

New Contributors

Full Changelog: 2024-11-16...2024-11-19

2024-11-16: Copy button in answer UI

18 Nov 20:41
829a5ed

Choose a tag to compare

This release adds a "Copy" button to answers for ease of copying by users. Screenshots:

Before copying:
Screenshot of copy button

Just after copying:
Screenshot of copy button

What's Changed

Full Changelog: 2024-11-12...2024-11-16

2024-11-12: Chat history with CosmosDB

12 Nov 21:18
c3810e8

Choose a tag to compare

You can now enable chat history that's persistent with Cosmos DB.
See the documentation on enabling chat history.

That requires you to also have setup the optional login.
See the documentation on enabling login.

Here's an example of chat history in action:

Screenshot 2024-11-12 at 1 16 39 PM

What's Changed

Full Changelog: 2024-11-05...2024-11-12