langchain_community.graphs.neo4j_graph
.value_sanitize¶
- langchain_community.graphs.neo4j_graph.value_sanitize(d: Dict[str, Any]) Dict[str, Any] [source]¶
Sanitizes the input dictionary 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.