I created a custom procedure chat.ask()
in Java, it works well when triggered from browser with
MATCH (q:Message {role: 'user'})
CALL chat.ask(q, 'gpt-3.5-turbo') YIELD ans, r
RETURN ans, r, q
But when I define a Bloom scene action with
MATCH (q:Message {role: 'user'}) WHERE id(q) in $nodes
CALL chat.ask(q, 'gpt-3.5-turbo') YIELD ans, r
RETURN ans, r
and try to execute it with mouse menu, nothing happens.
The Java code would log to logs/neo4j.log
anyway, the browser execution case verifies that, while the scene action case looks like the Java method not get called at all.
I don't think it's privilege issue, as another cypher-only scene action works as expected:
MATCH (q:Message {role: 'user'}) WHERE id(q) in $nodes
CREATE (a:Message {role: 'assistant', content: 'The answer to your question is ...'})
CREATE (a)-[r:CONTINUES]->(q)
RETURN a, r