There had been certain updates in the recent version of Spring AI. While defining VectoStoreConfig, please use EmbeddingModel instead of EmbeddingClient. @Bean VectorStore vectorStore(EmbeddingModel embeddingModel){ return new SimpleVectorStore(embeddingModel); }
I want to ask one thing I am Planning for text to sql in which I am using ollama LLM and llama3.1 as model and I am trying to give database meta data and query and it would return me sql query just wanted to ask if there is large database with multiple tables and columns is there any way I can store that meta data in vector db and using that meta data I can command to build sql query?
There had been certain updates in the recent version of Spring AI. While defining VectoStoreConfig, please use EmbeddingModel instead of EmbeddingClient.
@Bean
VectorStore vectorStore(EmbeddingModel embeddingModel){
return new SimpleVectorStore(embeddingModel);
}
I want to ask one thing I am
Planning for text to sql in which I am using ollama LLM and llama3.1 as model and I am trying to give database meta data and query and it would return me sql query just wanted to ask if there is large database with multiple tables and columns is there any way I can store that meta data in vector db and using that meta data I can command to build sql query?
Yes, this should be approach. But, I will need to implement it before confirming anything.