Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions superduper/components/vector_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,24 @@ def setup(self):
f'{self.indexing_listener.output_table.schema}'
)
return self
####---- Fixed by Arif-Badhon----##############
def list(self, name: str, limit: int):
"""
List vectors in the index filtered by name and limited by count.

:param name: Name or identifier to filter vectors.
:type name: str
:param limit: Maximum number of results to return.
:type limit: int
:returns: List of vector entries or metadata matching the query.
:rtype: list
"""
# TODO: Implement actual retrieval logic
return []
####---- Fixed by Arif-Badhon----##############



def list(self):
return self.db[self.indexing_listener.outputs].ids()

@ensure_setup
def get_vectors(self, ids: t.Sequence[str] | None = None):
Expand Down