Skip to content

poc(chat): add refinement suggestions to search index tool#6827

Open
FabienMotte wants to merge 9 commits intomasterfrom
poc/filter-suggestions
Open

poc(chat): add refinement suggestions to search index tool#6827
FabienMotte wants to merge 9 commits intomasterfrom
poc/filter-suggestions

Conversation

@FabienMotte
Copy link
Contributor

@FabienMotte FabienMotte commented Dec 2, 2025

Summary

FX-3608

This PR:

  • Updates the default algolia_search_index tool to display the suggested refinements after the hits carousel using pills. I added a loader for the tool (we are missing it in the current implementation).
  • Uses the sendMessage function to apply the selected refinement as part of the conversation. This triggers the algolia_search_index tool again with the new refinement applied (using the facetFilters parameter in the tool input).

Result

refinement_suggestions.mp4

@FabienMotte FabienMotte self-assigned this Dec 2, 2025
@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 2, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1a21932:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration

@FabienMotte FabienMotte force-pushed the poc/filter-suggestions branch from 82b6354 to 374a2c1 Compare December 2, 2025 15:29
Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this approach is as good as it will get. We should use send message instead of resolving the tool, as the tool is usually at the start of the message and the user isn't ready to respond yet.

@FabienMotte FabienMotte force-pushed the poc/filter-suggestions branch from f483768 to 1f6bc95 Compare December 3, 2025 10:33
@FabienMotte FabienMotte changed the title poc(chat): add filter suggestions to search index tool poc(chat): add refinement suggestions to search index tool Dec 23, 2025
@FabienMotte FabienMotte force-pushed the poc/filter-suggestions branch from f0a1b26 to 0ac96e8 Compare December 29, 2025 16:27
@Haroenv Haroenv force-pushed the master branch 3 times, most recently from c1fa2e8 to 9af869e Compare December 31, 2025 14:19
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.

2 participants

Comments