pixano_inference.data.read_vector_databases
This module contains functions for reading data from Vector databases.
read_lance_vector(path, column, indice=None, where=None, shape=None, return_type='tensor')
Reads a vector from a Lance dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path | str
|
The path to the Lance dataset. |
required |
column
|
str
|
The vector column to read. |
required |
indice
|
int | None
|
The index of the row to read. |
None
|
where
|
str | None
|
The filter to apply. If specified, only one row should be returned. |
None
|
shape
|
list[int] | None
|
The shape of the vector. |
None
|
return_type
|
Literal['tensor', 'numpy']
|
The type of the return value. Either 'tensor' or 'numpy'. |
'tensor'
|
Returns:
Type | Description |
---|---|
'Tensor' | ndarray
|
The value of the column. |