04. Spring AI : How to query JSON document using Vector search ?

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 3

  • @TechyTacos
    @TechyTacos  3 месяца назад

    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);
    }

  • @kushalbaldev8490
    @kushalbaldev8490 2 месяца назад

    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?

    • @TechyTacos
      @TechyTacos  Месяц назад

      Yes, this should be approach. But, I will need to implement it before confirming anything.