be consistent about cloud behavior

This commit is contained in:
Will Jones
2023-10-13 11:30:37 -07:00
parent f9ccefb032
commit b12eb7a6bf
2 changed files with 5 additions and 1 deletions

View File

@@ -93,6 +93,10 @@ export class RemoteQuery<T = number[]> extends Query<T> {
queryVector = query as number[]
}
if ((this as any)._useIndex === false) {
throw new Error('LanceDB Cloud does not yet support useIndex=false')
}
const data = await this._client.search(
this._name,
queryVector,

View File

@@ -103,7 +103,7 @@ class RemoteTable(Table):
raise NotImplementedError("Cloud support for prefiltering is coming soon")
if not query.use_index:
raise NotImplementedError(
"Cloud does not support non-indexed queries if the table has indices"
"LanceDB Cloud does not yet support use_index=False"
)
result = self._conn._client.query(self._name, query)
return self._conn._loop.run_until_complete(result).to_arrow()