-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add indexing methods #21
Conversation
async def aapply_vector_index( | ||
self, | ||
index: BaseIndex, | ||
name: Optional[str] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this allow a Vector object as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add more? Since I have this on the vector store I don't think so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be able to do this: (might need to use Union[str, BaseIndex]
depends on when the other format was added python version wise)
name: Optional[str] = None, | |
name: Optional[str | BaseIndex] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are already requiring a BaseIndex as the index argument, why does name need to support BaseIndex as well?
async def aapply_vector_index( | ||
self, | ||
index: BaseIndex, | ||
name: Optional[str] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be able to do this: (might need to use Union[str, BaseIndex]
depends on when the other format was added python version wise)
name: Optional[str] = None, | |
name: Optional[str | BaseIndex] = None, |
if isinstance(index, ExactNearestNeighbor): | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dumb question -- should we delete an index with the name if it already exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not dumb! We did talk about this and I agree we should drop
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Instead of #12