# Get queries to run against our index from the model
r = co.chat(PROMPT, model="command-r", search_queries_only=True)
if r.search_queries:
    queries = [q["text"] for q in r.search_queries]
else:
    print("No queries returned by the model")
```

Now, with the queries in hand, we search against our vector index.

```python PYTHON