spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Exact similarity match with Redis Vector Store always retuning empty list

Open siddharth223437 opened this issue 1 year ago • 1 comments
trafficstars

Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create. If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:

Bug description Exact similarity match with Redis Vector Store always retuning empty list

Environment Spring AI version: 1.0.0-SNAPSHOT, Java version: 17, which vector store you use: Redis Vector Store

Steps to reproduce

FilterExpressionBuilder b = new FilterExpressionBuilder();
		SearchRequest searchRequest = SearchRequest
				.query("find by id").withFilterExpression(b.eq("id",303).build());
		List<Document> documents = vectorStore.similaritySearch(searchRequest);

Expected behavior vectorStore.similaritySearch should return one record

siddharth223437 avatar Jun 08 '24 20:06 siddharth223437