langchain/docs/use_cases
vowelparrot 5ca7ce77cd
Remove pythonrepl from LLM-MathChain (#2943)
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
2023-04-16 08:50:32 -07:00
..
agents Fix typos (#2977) 2023-04-16 08:28:36 -07:00
code [minor] Deep Lake auth improvements in docs, kwargs pass, faster tests (#2927) 2023-04-15 10:49:16 -07:00
evaluation Remove pythonrepl from LLM-MathChain (#2943) 2023-04-16 08:50:32 -07:00
apis.md Update apis.md (#2278) 2023-04-01 12:48:16 -07:00
chatbots.md Minor doc typo (#2492) 2023-04-06 12:41:40 -07:00
code.md bump ver to 140 (#2895) 2023-04-15 09:23:19 -07:00
evaluation.rst [Docs] minor fixes to loaders links and rst warnings (#2846) 2023-04-13 10:54:40 -07:00
extraction.md fix doc tags (#2019) 2023-03-26 21:43:51 -07:00
personal_assistants.md cr 2023-04-11 23:52:14 -07:00
question_answering.md Fix docs links (#2572) 2023-04-08 08:33:28 -07:00
summarization.md fix doc tags (#2019) 2023-03-26 21:43:51 -07:00
tabular.md fix doc tags (#2019) 2023-03-26 21:43:51 -07:00