Skip to content

Unable to start app after setting up opensearch vector store #3785

Open
@dsarlo-viso

Description

@dsarlo-viso

Bug description
I am trying to set up opensearch as a vector store for embeddings for RAG.

I have added the following dependencies

implementation "org.opensearch.client:spring-data-opensearch-starter:1.8.1"
implementation "org.opensearch.client:opensearch-java:2.25.0"

and this is how I configured the spring ai vector store properties.

spring:
    ai:
        vector-store:
            opensearch:
                initialize-schema: true
                uris: http://localhost:9200

I am running opensearch in a docker container locally. I have other indexes in this opensearch instance and already use it within the app, I just don't use it as a vector store yet so I'm confused why this can't connect to the same instance I am already using.

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in org.opensearch.spring.boot.autoconfigure.OpenSearchRestClientConfigurations$RestClientBuilderConfiguration required a bean of type 'org.opensearch.spring.boot.autoconfigure.OpenSearchConnectionDetails' that could not be found.


Action:

Consider defining a bean of type 'org.opensearch.spring.boot.autoconfigure.OpenSearchConnectionDetails' in your configuration.

Environment
Java 21, Spring AI 1.0.0, Spring boot 3.5.3, Other dependencies listed above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions