mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
5ca7ce77cd
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 |