langchain.retrievers.self_query.milvus
.process_value¶
- langchain.retrievers.self_query.milvus.process_value(value: Union[int, float, str], comparator: Comparator) str [source]¶
Convert a value to a string and add double quotes if it is a string.
It required for comparators involving strings.
- Parameters
value (Union[int, float, str]) – The value to convert.
comparator (Comparator) – The comparator.
- Returns
The converted value as a string.
- Return type
str