Does namespace have a specific purpose? #991
Replies: 2 comments 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
-
I'm noticing that most
vectorstore
instrumentations (with the exception ofqdrant
) useStore
as a wrapper for a client and typically use namespace as a collection analogue.For MongoDB, it makes sense to have a
Store
object wrap amongo.Collection
since 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
Namespace
option 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