langchain_community.graphs.neo4j_graph
.value_sanitize¶
- langchain_community.graphs.neo4j_graph.value_sanitize(d: Any) Any [source]¶
Sanitize the input dictionary or list.
Sanitizes the input by removing embedding-like values, lists with more than 128 elements, that are mostly irrelevant for generating answers in a LLM context. These properties, if left in results, can occupy significant context space and detract from the LLM’s performance by introducing unnecessary noise and cost.
- Parameters
d (Any) –
- Return type
Any