DescriptorSetDataCSV
DescriptorSetDataCSV Objects
class DescriptorSetDataCSV(CSVParser.CSVParser)
ApertureDB DescriptorSet Data.
This class loads the Descriptor Set Data which is present in a CSV file, and converts it into a series of aperturedb queries.
Is backed by a CSV file with the following columns:
name
, dimensions
, engine
, metric
, PROP_NAME_N
, constraint_PROP1
Example CSV file::
name,dimensions,engine,metric
dining_chairs,2048,FaissIVFFlat,L2
chandeliers,2048,FaissIVFFlat,L2
console_tables,2048,FaissIVFFlat,L2
...
Example code to create an instance:
data = DescriptorSetDataCSV("/path/to/DescriptorSetData.csv")
loader = ParallelLoader(client)
loader.ingest(data)
info
In the above example, the first row implies to create a Descriptor set called dining_chairs. The Descriptors in that set would be expected to be an array of float64, of length 2048. When performing a search on this set, FaissIVFFlat engine would be used and the metric to compute the distance would be L2.