From 4e03507a08f39c6b8fca455a43390b600a948f37 Mon Sep 17 00:00:00 2001 From: Gabriele Venturi Date: Fri, 12 May 2023 13:34:14 +0200 Subject: [PATCH] docs: add conversational=False flag to the example (##113) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a7e1019b..f861d997f 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ df = pd.DataFrame({ from pandasai.llm.openai import OpenAI llm = OpenAI() -pandas_ai = PandasAI(llm) +pandas_ai = PandasAI(llm, conversational=False) pandas_ai.run(df, prompt='Which are the 5 happiest countries?') ``` @@ -86,11 +86,11 @@ pandas_ai.run( You can find more examples in the [examples](examples) directory. ## Privacy & Security + In order to generate the Python code to run, we take the dataframe head, we randomize it (using random generation for sensitive data and shuffling for non-sensitive data) and send just the head. Also, if you want to enforce further your privacy you can instantiate PandasAI with `enforce_privacy = True` which will not send the head (but just column names) to the LLM. - ## Environment Variables In order to set the API key for the LLM (Hugging Face Hub, OpenAI), you need to set the appropriate environment variables. You can do this by copying the `.env.example` file to `.env`: