From 0f4eaee8023c0e2212bddedf0a89c0afb40e7b3e Mon Sep 17 00:00:00 2001
From: Logan <logan.markewich@live.com>
Date: Wed, 28 Feb 2024 12:52:56 -0600
Subject: [PATCH] fix tests (#11482)

---
 .../core/indices/struct_store/json_query.py          | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/llama-index-core/llama_index/core/indices/struct_store/json_query.py b/llama-index-core/llama_index/core/indices/struct_store/json_query.py
index 8d8bee667..9e48eb786 100644
--- a/llama-index-core/llama_index/core/indices/struct_store/json_query.py
+++ b/llama-index-core/llama_index/core/indices/struct_store/json_query.py
@@ -50,10 +50,14 @@ def default_output_response_parser(llm_output: str) -> str:
         llm_output_parsed = re.search(
             pattern=r"JSONPath:\s+(.*)", string=llm_output
         ).groups()[0]
-    except Exception as exc:
-        raise ValueError(
-            f"JSON Path could not be parsed in the LLM response after the 'JSONPath' identifier. Try passing a custom JSON path prompt and processor."
-        ) from exc
+    except Exception:
+        logger.warning(
+            f"JSON Path could not be parsed in the LLM response after the 'JSONPath' identifier. "
+            "Try passing a custom JSON path prompt and processor. "
+            "Proceeding with output as-is."
+        )
+        return llm_output
+
     return llm_output_parsed
 
 
-- 
GitLab