From 00dcc44739ceade0ad96108e82401e26afe3a170 Mon Sep 17 00:00:00 2001 From: Joshua Campbell Date: Thu, 9 Jan 2025 16:00:10 +0100 Subject: [PATCH] Langchain_community: Fix issue with missing backticks in arango client (#29110) - **Description:** Adds backticks to generate_schema function in the arango graph client - **Issue:** We experienced an issue with the generate schema function when talking to our arango database where these backticks were missing - **Dependencies:** none - **Twitter handle:** @anangelofgrace --- libs/community/langchain_community/graphs/arangodb_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/graphs/arangodb_graph.py b/libs/community/langchain_community/graphs/arangodb_graph.py index dd2ad16614f..5e354e27d40 100644 --- a/libs/community/langchain_community/graphs/arangodb_graph.py +++ b/libs/community/langchain_community/graphs/arangodb_graph.py @@ -86,7 +86,7 @@ class ArangoGraph: limit_amount = ceil(sample_ratio * col_size) or 1 aql = f""" - FOR doc in {col_name} + FOR doc in `{col_name}` LIMIT {limit_amount} RETURN doc """