geldata / geldata/gel-python

The named tuple returned by `ext::ai::search` cannot have `order by` (and probably other) methods chained on it.

Open
#728 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
415
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Attempting to use the AI search function like:

```python
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'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.