spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/index.html
Apache License 2.0
3.3k stars 847 forks source link

Opensearch similarity search should include index name #885

Closed quachc closed 1 month ago

quachc commented 5 months ago

Bug description SearchRequest does not include index name which results in an error when using Opensearch role own_index: no permissions for [indices:data/read/search] and User [name=...]

Environment Spring AI 1.0.0-SNAPSHOT Java 21, Opensearch 2.14.0

Steps to reproduce Create an user with permissions for a single index (e.g. role own_index)

Expected behavior Should be able to execute the similarity search without errors

Minimal Complete Reproducible example Not available...

inpink commented 1 month ago

I have addressed this issue in the submitted PR #1435. I kindly request your review of the changes. Thank you! 😊