# HNSWVectorField

> **Class** in `langchain_aws`

📖 [View in docs](https://reference.langchain.com/python/langchain-aws/vectorstores/inmemorydb/schema/HNSWVectorField)

Schema for HNSW vector fields in Redis.

## Signature

```python
HNSWVectorField()
```

## Extends

- `InMemoryDBVectorField`

## Properties

- `algorithm`
- `m`
- `ef_construction`
- `ef_runtime`
- `epsilon`

## Methods

- [`as_field()`](https://reference.langchain.com/python/langchain-aws/vectorstores/inmemorydb/schema/HNSWVectorField/as_field)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/07f60ceba189a48fab5942573cf81e569a7bbf19/libs/aws/langchain_aws/vectorstores/inmemorydb/schema.py#L142)