# DriaRetriever

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/retrievers/dria_index/DriaRetriever)

`Dria` retriever using the DriaAPIWrapper.

## Signature

```python
DriaRetriever(
    self,
    api_key: str,
    contract_id: Optional[str] = None,
    **kwargs: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `api_key` | `str` | Yes | The API key for Dria. |
| `contract_id` | `Optional[str]` | No | The contract ID of the knowledge base to interact with. (default: `None`) |

## Extends

- `BaseRetriever`

## Constructors

```python
__init__(
    self,
    api_key: str,
    contract_id: Optional[str] = None,
    **kwargs: Any = {},
)
```

| Name | Type |
|------|------|
| `api_key` | `str` |
| `contract_id` | `Optional[str]` |


## Properties

- `api_wrapper`

## Methods

- [`create_knowledge_base()`](https://reference.langchain.com/python/langchain-community/retrievers/dria_index/DriaRetriever/create_knowledge_base)
- [`add_texts()`](https://reference.langchain.com/python/langchain-community/retrievers/dria_index/DriaRetriever/add_texts)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/retrievers/dria_index.py#L12)