Skip to content

Commit 60e9e5f

Browse files
patch adds (#1706)
text2kg patch to resolve hardcoded url issue Fix #1698 Signed-off-by: siddhivelankar23 <[email protected]>
1 parent 4a0976e commit 60e9e5f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

comps/text2kg/src/environment_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export NEO4J_PORT1={$NEO4J_PORT1:-7474}:7474
3030
export NEO4J_PORT2={$NEO4J_PORT2:-7687}:7687
3131
export NEO4J_AUTH=neo4j/password
3232
export NEO4J_PLUGINS=\[\"apoc\"\]
33-
33+
export NEO4J_HEALTH_URL="http://localhost:7474"
3434
export DATA_DIRECTORY=$(pwd)
3535
export ENTITIES="PERSON,PLACE,ORGANIZATION"
3636
export RELATIONS="HAS,PART_OF,WORKED_ON,WORKED_WITH,WORKED_AT"

comps/text2kg/src/integrations/opea.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ async def check_health(self) -> bool:
6666
bool: True if the service is reachable and healthy, False otherwise.
6767
"""
6868
try:
69-
response = requests.get("http://localhost:7474", timeout=5)
69+
neo4j_health_url = os.getenv("NEO4J_HEALTH_URL")
70+
response = requests.get(neo4j_health_url, timeout=5)
7071
if response.status_code == 200:
7172
return True
7273
else:

0 commit comments

Comments
 (0)