You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
I am having trouble with MongoDBAtlasVectorStore. Basically when I copy and paste this into my project because the similarity search isn't working...
List<Document> ds = List.of(
new Document(
"Spring AI rocks!! Spring AI rocks!! Spring AI rocks!! Spring AI rocks!! Spring AI rocks!!",
Collections.singletonMap("meta1", "meta1")),
new Document("Hello World Hello World Hello World Hello World Hello World Hello World Hello World"),
new Document(
"Great Depression Great Depression Great Depression Great Depression Great Depression Great Depression",
Collections.singletonMap("meta2", "meta2")));
vectorStore.add(ds);
Thread.sleep(25000); // Await a second for the document to be indexed
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Great").withTopK(1));
The result I see is not correct...
Environment
Java 23
Spring AI 1.0.0-M3
Steps to reproduce
See repo here. You can add the code above to that and see it doesn't work
Expected behavior
I would expect it to return a document as it does in the test.
Minimal Complete Reproducible example
See above more available here
The text was updated successfully, but these errors were encountered:
jrgleason
changed the title
Can't get vectorStoreTest to work locally
Can't get vectorStoreTest with MongoDBAtlasVectorStore to work locally
Oct 21, 2024
Got debugging into source working now trying to understand why the query is returning 0 records. Also running the build locally with mvn clean install to make sure it isn't an environment issue.
Bug description
I am having trouble with MongoDBAtlasVectorStore. Basically when I copy and paste this into my project because the similarity search isn't working...
The result I see is not correct...
Environment
Java 23
Spring AI 1.0.0-M3
Steps to reproduce
See repo here. You can add the code above to that and see it doesn't work
Expected behavior
I would expect it to return a document as it does in the test.
Minimal Complete Reproducible example
See above more available here
The text was updated successfully, but these errors were encountered: