# HNSWSearchParams

> **Class** in `langchain_azure_postgresql`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-postgresql/common/_shared/HNSWSearchParams)

Search-time parameters for HNSW indexes.

All settings are exported with the ``hnsw.`` prefix when used in SQL.

:param ef_search: Size of the dynamic candidate list for HNSW index searching.
:type ef_search: PositiveInt | None
:param iterative_scan: The iterative search mode for HNSW index searching.
:type iterative_scan: HNSWIterativeScanMode | None
:param max_scan_tuples: The maximum number of tuples to visit during HNSW index
                        searching.
:type max_scan_tuples: PositiveInt | None
:param scan_mem_multiplier: The maximum amount of memory to use, as a multiple
                            of ``work_mem``, during HNSW index searching.
:type scan_mem_multiplier: PositiveFloat | None

## Signature

```python
HNSWSearchParams()
```

## Extends

- `SearchParams`

## Properties

- `ef_search`
- `iterative_scan`
- `max_scan_tuples`
- `scan_mem_multiplier`

## Methods

- [`search_settings()`](https://reference.langchain.com/python/langchain-azure-postgresql/common/_shared/HNSWSearchParams/search_settings)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/607b649e909f217be20d7a50804ca11534c08eea/libs/azure-postgresql/src/langchain_azure_postgresql/common/_shared.py#L423)