Skip to content

Commit 2591760

Browse files
committed
fix: document's vector creation
1 parent 730ba9b commit 2591760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Retrieval/Document.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function from(array $document): self
4040
{
4141
return new self(
4242
$document['content'],
43-
$document['embeddings'],
43+
Vector::from($document['embeddings']['values']),
4444
Metadata::from($document['metadata']),
4545
);
4646
}

0 commit comments

Comments
 (0)