Skip to content

yaml dump with other language #1631

@ttkrpink

Description

@ttkrpink

🚀 The feature

pandasai : 3.0.0
When your description or columns are written in another language, i.e. Chinese, the generated yaml file has unicode characters. You need tell pai to dump the yaml file by changing the following code.

/pandasai/data_loader/semantic_layer_schema.py
line 388

return yaml.dump(self.to_dict(), sort_keys=False, allow_unicode=True)

Motivation, pitch

My main LLM users are Chinese. So the description and the column description need to be Chinese for the LLM to understand better.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions