fix remaining mypy errors in LanceDBAdapter
This commit is contained in:
parent
5f4c06efd1
commit
85e5b4d811
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class IndexSchema(DataPoint):
|
||||||
to include 'text'.
|
to include 'text'.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
id: str
|
id: UUID
|
||||||
text: str
|
text: str
|
||||||
|
|
||||||
metadata: MetaData = {"index_fields": ["text"], "type": "IndexSchema"}
|
metadata: MetaData = {"index_fields": ["text"], "type": "IndexSchema"}
|
||||||
|
|
@ -311,7 +311,7 @@ class LanceDBAdapter(VectorDBInterface):
|
||||||
f"{index_name}_{index_property_name}",
|
f"{index_name}_{index_property_name}",
|
||||||
[
|
[
|
||||||
IndexSchema(
|
IndexSchema(
|
||||||
id=str(data_point.id),
|
id=data_point.id,
|
||||||
text=getattr(data_point, data_point.metadata["index_fields"][0]),
|
text=getattr(data_point, data_point.metadata["index_fields"][0]),
|
||||||
)
|
)
|
||||||
for data_point in data_points
|
for data_point in data_points
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue