Skip to content

Commit 3bbca36

Browse files
authored
fix: weaviate tags were ovewritten (docarray#307)
1 parent da703b0 commit 3bbca36

File tree

1 file changed

+2
-3
lines changed
  • docarray/array/storage/weaviate

1 file changed

+2
-3
lines changed

docarray/array/storage/weaviate/find.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ def _find_similar_vectors(self, query: 'WeaviateArrayType', limit=10):
5757
else:
5858
doc.scores['cosine_similarity'] = NamedScore(value=2 * certainty - 1)
5959

60-
doc.tags = {
61-
'wid': result['_additional']['id'],
62-
}
60+
doc.tags['wid'] = result['_additional']['id']
61+
6362
docs.append(doc)
6463

6564
return DocumentArray(docs)

0 commit comments

Comments
 (0)