Skip to content

Commit ea3c918

Browse files
authored
fix: mismatch in roundtrip (#168)
* fix: mismatch in roundtrip * up version
1 parent e6afc1d commit ea3c918

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/semble/index/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ def load_from_disk(cls: type[SembleIndex], path: Path | str) -> SembleIndex:
307307

308308
bm_25_index = BM25.load(persistence_paths.bm25_index)
309309
semantic_index = SelectableBasicBackend.load(persistence_paths.semantic_index)
310-
with open(persistence_paths.metadata, "r") as f:
310+
with open(persistence_paths.metadata, "rb") as f:
311311
metadata = orjson.loads(f.read())
312-
with open(persistence_paths.chunks, "r") as f:
312+
with open(persistence_paths.chunks, "rb") as f:
313313
chunk_data = orjson.loads(f.read())
314314

315315
chunks = []

src/semble/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version_triple__ = (0, 3, 0)
1+
__version_triple__ = (0, 3, 1)
22
__version__ = ".".join(map(str, __version_triple__))

0 commit comments

Comments
 (0)