Skip to content

Commit 9a38a20

Browse files
authored
Document risks of LLM database query generation
Add comment about risks of LLM generating database queries
1 parent d3c352d commit 9a38a20

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

langchain-rag-app/source_code_final/chatbot_api/src/chains/hospital_cypher_chain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,6 @@
153153
cypher_prompt=cypher_generation_prompt,
154154
validate_cypher=True,
155155
top_k=100,
156+
# acknowledges the risk of letting an LLM generate and execute database queries
156157
allow_dangerous_requests=True,
157158
)

0 commit comments

Comments
 (0)