spring-projects / spring-projects/spring-ai

Use of FilterExpression for multiple conditional queries

Open
#2,288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 10h
Merged PRs (30d)
5

Description

how to use of FilterExpression for multiple conditional queries

Bug description
I don't know how to do a vector query with more than 3 expressions

Environment
spint ai-M6

example

For example, for the vector data stored in redis, the metadata is as follows: sourDocId value is 1, name value is bg, tags value is ["web", "local", "ali"], version value is 1.0. Then how can I query the data with sourDocId 1, name value is bg, tags value is local or ali, and version is 1.0?

Thanks very much

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

No source files or tests are identified. Start by locating the FilterExpression entry point and Redis vector-query handling in the Spring AI repository, then reproduce the metadata example and document or verify the supported behavior for combining the requested conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis, spring
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.