Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 20, 2024
1 parent 06bfed6 commit 31821d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def deserializeFromJSON( self, data, marker, index_vectors ,index_content, searc
data=json.loads(data)
for part in data:
[text,embeddings_b64,_dtype,_shape] = part
part_marker=part[4] if len(part)>3 else None
part_marker=part[4] if len(part)>4 else None

if dtype is None: dtype = _dtype
elif dtype != _dtype: raise Exception("Data type mismatch")
if shape is None: shape = _shape
Expand Down

0 comments on commit 31821d0

Please sign in to comment.