# DocumentAIWarehouseRetriever

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/documentai_warehouse/DocumentAIWarehouseRetriever)

Retriever for Google Cloud Document AI Warehouse.

Inherits from [`BaseRetriever`][langchain_core.retrievers.BaseRetriever].

Searches documents using Document AI Warehouse schema. Documents must be
created and uploaded separately before retrieval.

See [Document AI Warehouse documentation](https://cloud.google.com/document-ai-warehouse)
for more information.

!!! note "Installation"

    Requires additional dependencies:

    ```bash
    pip install langchain-google-community[docai]
    ```

## Signature

```python
DocumentAIWarehouseRetriever()
```

## Extends

- `BaseRetriever`

## Properties

- `location`
- `project_number`
- `schema_id`
- `qa_size_limit`
- `client`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-google-community/documentai_warehouse/DocumentAIWarehouseRetriever/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/community/langchain_google_community/documentai_warehouse.py#L24)