# process_value

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/query_constructors/milvus/process_value)

Convert a value to a string and add double quotes if it is a string.

It required for comparators involving strings.

## Signature

```python
process_value(
    value: Union[int, float, str],
    comparator: Comparator,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `Union[int, float, str]` | Yes | The value to convert. |
| `comparator` | `Comparator` | Yes | The comparator. |

## Returns

`str`

The converted value as a string.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/query_constructors/milvus.py#L27)