添加补充了 _form_columns_description函数 #256
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 关联 Issue
问题 #142
✨ 提交说明
本次提交实现了
LLMBaseModel中的_form_columns_description方法,旨在根据self.raw_data中的各列内容,生成适用于大语言模型(LLM)理解的自然语言描述信息,用于增强提示词质量。该方法返回的描述内容包括但不限于:
🧪 示例输出
当数据包含如下列时,方法输出示例为:
Column "age": type int64, min 18, max 60, mean 35.72, std 10.45.
Column "signup_date": type datetime, from 2021-01-01, to 2023-12-31.
Column "gender": type category, 2 categories: ['Male', 'Female'].