Reference
query()
Search a namespace and return ranked hits.
Parameters
Pass text for a keyword search, vector for a dense query vector, or sparse for named term weights. Combine them for hybrid search. Use filter to restrict matches, limit for the maximum hit count (default 10), and offset to skip hits.
Return value
A list of Hit objects. Each hit has a key, score, attributes, and stored text by field. A search with no matches returns an empty list.
Example
Python
hits = docs.query(text="lease", limit=1) print([hit.text["body"] for hit in hits])