Replies: 3 comments 1 reply
-
I have found the solution. I must cast the List in List |
Beta Was this translation helpful? Give feedback.
-
After the fixing, the sql doesn't work still. Looks like the My code is the follow: FilterExpressionBuilder b = new FilterExpressionBuilder();
List<String> fruits= getFruits();
b.in("FOOD_NAME", (List) fruits));
SearchRequest searchRequest = SearchRequest.query("apple")
.withFilterExpression(b.build())
.withTopK(5); the where clause in output is look like this:
but the execution of this query return the follow error:
If I try to use the
or using the
Can you chech this and introduce the |
Beta Was this translation helpful? Give feedback.
-
@civgio - I am having the same problem. Can you share how you are using the == operator combined with || with the Open AI library? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I try to use the
org.springframework.ai.vectorstore.filter.FilterExpressionBuilder
to create a little bit complex where clause in my pgvector database, but the sql built contains a grammar error.I have a problem with
in
clause. I try to use this method of openAI library to add thein
clause:but I believe that it will not called because my method is catch by this method of openAI library:
So, my list is interpreted as Object and not as List, and the SpringAI library create a List of my List, returned a grammar error on the sql built.
Anyone have my same error?
Beta Was this translation helpful? Give feedback.
All reactions