原书出处
Designing Large Language Model Applications
Code interpreter Next, let’s explore how you can invoke a code interpreter and run arbitrary code: from langchain_experimental.utilities import PythonREPL python = PythonREPL() python.run("456 * 345") Warning Be wary of running code generated by LLMs in response to user prompts. Users can induce the model to generate malicious code! Database connectors Finally, let’s check out how to connect to a database and run queries: import
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Designing Large Language Model Applications/_epub-src/OEBPS/ch10.html
EPUB SHA-256:1b4d2347fec2f949fcddfbaf4fad597a1ae20887a096cfae64c59a619b4781bf