mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-17 21:11:40 +00:00
Use numexpr evaluate instead of the python REPL to avoid malicious code injection. Tested against the (limited) math dataset and got the same score as before. For more permissive tools (like the REPL tool itself), other approaches ought to be provided (some combination of Sanitizer + Restricted python + unprivileged-docker + ...), but for a calculator tool, only mathematical expressions should be permitted. See https://github.com/hwchase17/langchain/issues/814 |
||
---|---|---|
.. | ||
agent_benchmarking.ipynb | ||
agent_vectordb_sota_pg.ipynb | ||
benchmarking_template.ipynb | ||
data_augmented_question_answering.ipynb | ||
huggingface_datasets.ipynb | ||
llm_math.ipynb | ||
openapi_eval.ipynb | ||
qa_benchmarking_pg.ipynb | ||
qa_benchmarking_sota.ipynb | ||
qa_generation.ipynb | ||
question_answering.ipynb | ||
sql_qa_benchmarking_chinook.ipynb |