GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: use backend to determine annlite DocumentArray length (#327) · docarray/docarray@bbac194

This repository was archived by the owner on Sep 9, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docarray/array/storage/annlite
    • backend.py
  • setup.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docarray/array/storage/annlite/backend.py‎

Copy file name to clipboardExpand all lines: docarray/array/storage/annlite/backend.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@ def __setstate__(self, state):
9898
from annlite import AnnLite
9999

100100
self._annlite = AnnLite(n_dim, lock=False, **filter_dict(config))
101+
102+
def __len__(self):
103+
return self._annlite.index_size
Collapse file

‎setup.py‎

Copy file name to clipboardExpand all lines: setup.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
'qdrant': [
7272
'qdrant-client~=0.7.0',
7373
],
74+
'annlite': [
75+
'annlite>=0.3.0',
76+
],
7477
'test': [
7578
'pytest',
7679
'pytest-timeout',

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.