From 2cad55b748a8ccf15f238c293d8b6adb5ed146e6 Mon Sep 17 00:00:00 2001 From: vertciti AI team Date: Fri, 2 Oct 2026 00:20:40 -0400 Subject: [PATCH] docs: add Bit reference section for pgvector.Bit --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 26dccfb..607ad12 100644 --- a/README.md +++ b/README.md @@ -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)