Closed srkirkland closed 5 months ago
The update introduces a new array named allowedScopes
in the chat service, enhancing the search functionality. This array is utilized to filter search results based on specific scopes, ensuring that the search query only returns results that match the defined metadata.scope.keyword
values.
File | Change Summary |
---|---|
src/.../chatService.ts |
Added allowedScopes array to filter search results based on scope. |
🐰✨ In the code's burrow, deep and wide, A list of scopes did Rabbit provide. With a hop and a skip, filters align, Only the chosen words will shine. Celebrate, for the search is refined! 🌟 🐰✨
src/services/chatService.ts (2)
`46-53`: The addition of the `allowedScopes` array aligns with the PR objectives to refine search scope. --- `66-71`: The implementation of the filter in the search query using `allowedScopes` is appropriate. Ensure that the `metadata.scope.keyword` field is correctly indexed as a keyword in Elasticsearch.
filter to just scopes we want -- this way we can add in the contracts w/o messing up results. Later we'll need to tune based on filter feature
Summary by CodeRabbit