Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 feat: Support multiple Azure AI Search indexes and enhance search functionality #6156

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rubentalstra
Copy link
Collaborator

Summary

Closes: #3862

This pull request includes significant updates to the AzureAISearch class in the api/app/clients/tools/structured/AzureAISearch.js file. The changes enhance the functionality to support multiple search indexes and improve error handling.

Enhancements to support multiple search indexes:

  • Changed the initialization of indexName to indexNames to handle multiple indexes as a comma-separated string.
  • Updated the required fields check to validate indexNames instead of indexName.
  • Modified the client creation process to support multiple indexes by splitting indexNames, trimming whitespace, converting to lowercase, and filtering out empty strings. Created a client for each valid index.

Improvements in error handling and search functionality:

  • Enhanced the search functionality to query all indexes concurrently and flatten the results from all indexes before returning them as a combined JSON string.

Change Type

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Testing

Please describe your test process and include instructions so that we can reproduce your test. If there are any important variables for your testing configuration, list them here.

Test Configuration:

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • A pull request for updating the documentation has been submitted.

@rubentalstra rubentalstra added this to the v0.7.8 milestone Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Ability to configure more than one Azure AI Search Index
1 participant