Skip to content

Commit eb33d03

Browse files
committed
Updated readme [skip ci]
1 parent bddb176 commit eb33d03

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,32 @@ Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distanc
706706

707707
## Reference
708708

709+
### Vectors
710+
711+
Create a vector from a list
712+
713+
```python
714+
vec = Vector([1, 2, 3])
715+
```
716+
717+
Or a NumPy array
718+
719+
```python
720+
vec = Vector(np.array([1, 2, 3]))
721+
```
722+
723+
Get a list
724+
725+
```python
726+
lst = vec.to_list()
727+
```
728+
729+
Get a NumPy array
730+
731+
```python
732+
arr = vec.to_numpy()
733+
```
734+
709735
### Half Vectors
710736

711737
Create a half vector from a list

0 commit comments

Comments
 (0)