Skip to content

Commit

Permalink
docs: add conversational=False flag to the example (#Sinaptik-AI#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed May 12, 2023
1 parent b6ac308 commit 4e03507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?')
```

Expand Down Expand Up @@ -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`:
Expand Down

0 comments on commit 4e03507

Please sign in to comment.