Skip to content
Open
Changes from all commits
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
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,33 @@ Get a SciPy sparse array
arr = vec.to_coo()
```

### Bit Vectors

Create a bit vector from a list of booleans

```python
bit = Bit([True, False, True])
```

Or a bit string

```python
bit = Bit("101")
```

Get a list

```python
lst = bit.to_list()
```

Get a NumPy array

```python
arr = bit.to_numpy()
```


## History

View the [changelog](https://github.com/pgvector/pgvector-python/blob/master/CHANGELOG.md)
Expand Down