spring-projects / spring-ai

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

Self-querying #875

Open florind opened 2 months ago

florind commented 2 months ago

I'd like to use Spring AI for self-querying, the same way it's implemented in Langchain https://python.langchain.com/v0.1/docs/modules/data_connection/retrievers/self_query/#creating-our-self-querying-retriever

In the mean time it would be nice to know if there is a way to implement the attribute extraction (which itself is a great addition) then wire it (a new advisor?) in the ChatClient.

Any pointers are much appreciated. florin

markpollack commented 1 month ago

Natural language input would be a nice feature, but is beyond what we have in scope for our 1.0 GA. keeping the issue around for more advanced RAG features.

florind commented 1 month ago

@markpollack I created an implementation in this PR https://github.com/spring-projects/spring-ai/pull/1019