Hi all, I'm attempting to use the MongoDBAtlasVectorStore, but am running into some problems. Whenever I want to query an index that is using this VectorStore, I get the following pymongo error
pymongo.errors.OperationFailure: Error connecting to localhost:28000 (127.0.0.1:28000) :: caused by :: Connection refused, full error: {'ok': 0.0, 'errmsg': 'Error connecting to localhost:28000 (127.0.0.1:28000) :: caused by :: Connection refused', 'code': 6, 'codeName': 'HostUnreachable', <timestamps and metadata>}
Apparently this is because my collection in MongoDbAtlas cloud does not have a search index created. I created a search index on the
default_collection
, which I think is the right collection to index (as this one contains the properties: ID, embedding and text)
After creating a basic search engine I now get the following error from pymongo when querying
pymongo.errors.OperationFailure: embedding is not indexed as kNN, full error: {'ok': 0.0, 'errmsg': 'embedding is not indexed as kNN', 'code': 8, 'codeName': 'UnknownError' <timestamps and metadata>}
Did I miss a setup or a wiki page regarding the configuration of MongoDBAtlas, or am I supposed to manually create a search index and map it to the appropriate fields? Thanks in advance!