Azure-Samples / chat-with-your-data-solution-accelerator

A Solution Accelerator for the RAG pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. This includes most common requirements and best practices.
https://azure.microsoft.com/products/search
MIT License
651 stars 324 forks source link

feat: Generate and add image captions to search index when image is ingested. #928

Closed superhindupur closed 1 month ago

superhindupur commented 1 month ago

Closes #749

Purpose

This PR adds the following functionality when an image is uploaded to the knowledge base (when advanced image processing is enabled):

This will allow for improved search on images.

Does this introduce a breaking change?

How to Test

Deploy Chat with your data with Advanced Image Processing enabled. Upload an image via the admin site. Then verify on the search index that the content and content_vector fields are populated with the appropriate caption and vector embeddings.

github-actions[bot] commented 1 month ago

Coverage

Coverage Report •
FileStmtsMissCoverMissing
code/backend/batch/utilities/helpers
   env_helper.py1341092%222, 227–228, 231–233, 245, 249–251
   llm_helper.py421173%40–41, 50, 61–62, 73, 86–87, 94, 113, 121
code/backend/batch/utilities/helpers/embedders
   push_embedder.py740100% 
TOTAL243468471% 

Tests Skipped Failures Errors Time
202 0 :zzz: 0 :x: 0 :fire: 11.817s :stopwatch: