This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Commit e2d4d19
feat: milvus document store (#587)
* fix(plot): be robust against non-existing subindices
* chore: add file structure
* feat: first draft of backend implementation
* feat: docarray can now connect to running milvus database
* feat: implement basics of getsetdel and seqlike
* fix: type hint
* fix: saving and loading offset2ids
* feat: first implementation of vector search
* refactor: declare static methods
* feat: add consistency level as a configuration parameter
* feat: change default consistency to session
* refactor: in clear_storage, drop and re-create collection
* feat: implement filter and hybrid search
* feat: implement columns feature
* feat: allow consistency level to be passed to extend, append, insert
* fix: fix columns feature in milvus
* test: add test for milvus columns feature
* fix: import types for type hints
* fix: add pymilvus requirement
* test: fix docker compose for milvus
* test: add milvus to test construct
* fix: backend naming
* fix: sort returned docs when accessing by id
* test: add milvus to sequence tests
* fix: raise keyerror on non existing id
* refactor: use context managar to laod and release collections
* fix: map embeddings to np before inserting
* test: add milvus to advanced indexing tests
* test: add milvus to test pull out
* fix: deleting to size zero
* fix: when accessing with no ids, return empty da instead of rasing
* test: add milvus to content tests
* test: add milvus to del tests
* test: add milvus to embed tests
* test: add milvus to test empty
* test: add milvus to test eval class
* test: add milvus to test find
* test: add milvus to getset tests
* test: add milvus to all remaining tests
* feat: load and release collection in context manager
* test: use context manager to speed up milvus tests
* test: add milvus to test plot
* test: fix plot tests for milvus
* test: fix multimodal find test
* test: fix test embed
* test: use context manager to speed up milvus
* fix: implement state methods to enable pickling
* test: fix more tests
* feat: add overloaded milvus init
* test: fix even more tests
* refactor: remove some comments
* test: use context manager even more
* test: moar context manager usage
* test: fix test fixture input
* test: remove milvus from test that it can't handle
* test: remove milvus from one more test
* refactor: better mechanism for automatic collection loading
* docs: add docs section for milvus
* chore: remove comment
* fix: enforce limit for filter only queries
* docs: fix typo
* docs: add milvus to comparison and add docstring
* feat: bulk extend
* docs: document advanced milvus options
* feat: allo passing of kwargs to insert
* chore: remove comment
* chore: update accepted array types
* test: add milvus specific tests
* docs: apply changes from code review
Co-authored-by: Nicholas Dunham <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
* docs: update docs/advanced/document-store/milvus.md
Co-authored-by: Nicholas Dunham <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
* refactor: update type hint
Co-authored-by: samsja <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
* refactor: apply suggestions from code review
* docs: clarify docstring
Signed-off-by: Johannes Messner <[email protected]>
* docs: fix fautly docstring
Signed-off-by: Johannes Messner <[email protected]>
* refactor: another round of review changes
* fix: set consistency level for offset id loading
* fix: set stricter defaut consistency level
* perf: optimize sorting of retrieved documents
* docs: document loading context manager
* refactor: find unboxing done by base class
* feat: add batching
* test: add test for batch size
* test: restart milvus if it breaks
* test: dont remove-orphans where it is not needed
* feat: add ability to disble list like behaviour
Signed-off-by: Johannes Messner <[email protected]>
* ci: increase timeout to see how long it really takes
* docs: apply suggestions from code review
Co-authored-by: AlaeddineAbdessalem <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
* ci: change timeouts
Signed-off-by: Johannes Messner <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
Co-authored-by: Nicholas Dunham <[email protected]>
Co-authored-by: samsja <[email protected]>
Co-authored-by: AlaeddineAbdessalem <[email protected]>1 parent 227b2e5 commit e2d4d19
39 files changed
Lines changed: 1934 additions & 223 deletions
File tree
- .github/workflows
- docarray/array
- mixins
- storage
- base
- milvus
- docs/advanced/document-store
- tests
- unit
- array
- mixins
- oldproto
- storage/milvus
- document
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
143 | 155 | | |
144 | 156 | | |
145 | 157 | | |
| |||
184 | 196 | | |
185 | 197 | | |
186 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
187 | 203 | | |
188 | 204 | | |
189 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments