Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix test
  • Loading branch information
Joan Fontanals Martinez committed Jul 28, 2023
commit 2ea5804a26a1f94157025b9754357adfdf59b058
13 changes: 0 additions & 13 deletions docarray/index/backends/hnswlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,18 +579,6 @@ def _doc_from_bytes(
data
) # I cannot reconstruct directly the DA object because it may fail at validation because embedding may not be Optional
for k, v in reconstruct_embeddings.items():
print(f' k {k}')
# access = k.split('__')
# proto = pb
# python_schema = self.out_schema
# for field in access:
# print(f' field {field} and {python_schema} and {proto}')
# proto = proto.data[field]
# python_schema = python_schema._get_field_type(field)
# node_proto = python_schema._docarray_from_ndarray(np.array(v))._to_node_protobuf()
# proto.MergeFrom(node_proto)

print(f'v {v}')
node_proto = (
self.out_schema.__fields__[k]
.type_._docarray_from_ndarray(np.array(v))
Expand All @@ -599,7 +587,6 @@ def _doc_from_bytes(
pb.data[k].MergeFrom(node_proto)

doc = schema_cls.from_protobuf(pb)
print(f'doc {doc}')
return doc

def _get_root_doc_id(self, id: str, root: str, sub: str) -> str:
Expand Down
6 changes: 0 additions & 6 deletions tests/index/elastic/v7/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ services:
- ES_JAVA_OPTS=-Xmx1024m
ports:
- "9200:9200"
networks:
- elastic

networks:
elastic:
name: elastic
6 changes: 0 additions & 6 deletions tests/index/elastic/v8/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ services:
- ES_JAVA_OPTS=-Xmx1024m
ports:
- "9200:9200"
networks:
- elastic

networks:
elastic:
name: elastic