[COMPASS-7349] Compass Stage Description - $vectorSearch Created: 17/Oct/23  Updated: 01/Nov/23  Resolved: 01/Nov/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: 1.40.3
Fix Version/s: No version

Type: Bug Priority: Minor - P4
Reporter: Joshua Jarabek Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: MacOS Apple Silicon
node.js / npm versions: 20
Additional info: MongoDB Compass Aggregations / MongoDB A.I. Docs


Issue Links:
Duplicate
duplicates COMPASS-7300 Fix vector search index type name in ... Closed
Related
related to COMPASS-7288 Use knnVector instead of vectorEmbedd... Closed
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

What is going wrong? What action would you like the Engineering team to take?

I'm receiving conflicting answers from the A.I. document chat vs. the aggregation pipeline. I'm told by the index type needs to be knnVector by MongoDB AI, but in Compass's stage dropdown in Aggregations it states:

 

```

$vectorSearch - Atlas only. Performs a kNN search on a vector in the specified field or fields. The field that you want to search must be covered by an Atlas Search index of type `vectorEmbedding`.

```

 

 

However, MongoDB AI said:

"""

No, knnVector is not covered by vectorEmbedding in Atlas Search. When using $vectorSearch in a pipeline, the fields to search must be indexed as knnVector type. However, MongoDB Compass may suggest that the field to search must be covered by an Atlas Search index of type vectorEmbedding. This is incorrect.

Further reading:

"""

 

Also, it looks like on https://mongodb.com/docs/atlas/atlas-vector-search/vector-search-stage/ it says:

 

"""

The $vectorSearch stage performs an aNN search on a vector in the specified field. The field that you want to search must be indexed as Atlas Vector Search knnVector type.

"""

 

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

Open the Aggregations tab for a collection in Compass, click on 'Stage 1', scroll down to '$vectorSearch'.



 Comments   
Comment by Anna Henningsen [ 17/Oct/23 ]

josh@parakeet.college If I understand correctly, I think this is a duplicate of COMPASS-7300? Let me know if I’m mistaken about that.

(We will be releasing an updated version of Compass shortly, most likely this week.)

Comment by PM Bot [ 17/Oct/23 ]

Hello josh@parakeet.college, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

Generated at Wed Feb 07 22:46:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.