edgedb-python
edgedb-python copied to clipboard
The named tuple returned by `ext::ai::search` cannot have `order by` (and probably other) methods chained on it.
Attempting to use the AI search function like:
search_results = ai.search(default.Chunk, std.str("tigers")).order_by(distance="asc").limit(3)
result = await client.query(
search_results.select(
object=lambda s: s.object.select(content=True)
)
)
Fails with this error:
AttributeError: type object 'ObjectDistance_Tuple_4ZKj8w' has no attribute 'order_by'