spring-projects / spring-projects/spring-ai

Self-querying

Open
#875 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

rag
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked LangChain self-querying retriever documentation, then inspect Spring AI's existing attribute extraction and ChatClient extension points. The issue suggests wiring extraction through a new advisor, but does not name files, tests, or settle the design; done would require an agreed self-querying capability comparable to the referenced implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
ai, backend-api-design, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.