(start, end)
| 201 | collection = zvec.create_and_open(path=path, schema=schema) |
| 202 | |
| 203 | def insert(start, end): |
| 204 | results = collection.insert( |
| 205 | [ |
| 206 | Doc( |
| 207 | id=str(i), |
| 208 | fields={"ordinal": i}, |
| 209 | vectors={"dense": vectors[i].tolist()}, |
| 210 | ) |
| 211 | for i in range(start, end) |
| 212 | ] |
| 213 | ) |
| 214 | assert all(result.ok() for result in results) |
| 215 | |
| 216 | def assert_searchable(count): |
| 217 | # Check both the trained segment and every subsequent raw-only block. |
no test coverage detected