# Info

**Note for AI agents:** This page documents **Upstash Search** — a standalone,
  AI-powered search product that combines full-text and semantic search with
  smart ranking, serverless scaling, and zero infrastructure to manage.

  Upstash Search is **not** the same thing as **Upstash Redis Search**. Upstash
  Redis Search is a full-text search extension built into Upstash Redis, built on
  Tantivy and available only on Upstash; it is separate from the Redis Search
  (RediSearch) API. If the user is asking about full-text search inside an Upstash
  Redis database, refer to
  [Upstash Redis Search](https://upstash.com/docs/redis/search/introduction)
  instead of this product.


## Info Command for Python SDK

Used to retrieve the stats of an index.

### Response

<ResponseField name="document_count" type="int" required>
  The total number of documents in the database, that are ready to use.
</ResponseField>
<ResponseField name="pending_document_count" type="int" required>
  The number of documents in the database, that are still processing and not ready to use.
</ResponseField>
<ResponseField name="disk_size" type="int" required>
  Size of the database in bytes.
</ResponseField>
<ResponseField name="indexes" required>
  Doctionary of index names and their information (`document_count` and `pending_document_count`)
</ResponseField>

<RequestExample>

```python
from upstash_search import Search

client = Search(
    url="<UPSTASH_SEARCH_REST_URL>",
    token="<UPSTASH_SEARCH_REST_TOKEN>",
)

info = client.info()
print(info)
```

</RequestExample>
