Does namespace have a specific purpose? #991
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
-
|
We've decided to use the namespace option as a way for users to switch indexes at the operation leve. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm noticing that most
vectorstoreinstrumentations (with the exception ofqdrant) useStoreas a wrapper for a client and typically use namespace as a collection analogue.For MongoDB, it makes sense to have a
Storeobject wrap amongo.Collectionsince adding and searching vectors is collection-specific. In this caseAddDocuments()andSimilaritySearch()become analogues forCollection.InsertMany()andCollection.Aggregate(). This also keeps our implementation inline with PY and TS. Notably, a collection / namespace isn't actually optional and makes the API awkward:TL;DR: Is the
Namespaceoption generic enough to use as an index name, or does this field have a specific but undocumented use case?For exampe:
Beta Was this translation helpful? Give feedback.
All reactions