arya2004 / arya2004/Data-Filtering-Chatbot
Refactor LLM interaction to use structured JSON filters
Open
enhancement
good first issue
hacktoberfest
hacktoberfest-accepted
python
refactor
- Dominant language
- Python
- Stars
- 2
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
### 🧠 Refactor LLM to output structured filters (not raw Python)
```
Currently, LLM returns raw Python strings that are `exec()`-ed.
#### 💡 Advanced Fix:
* Prompt LLM to return structured JSON like:
```json
{ "column": "Date", "operator": "<", "value": "2024-01-01" }
```
* Your backend parses this and uses `pandas.query()` securely.
✅ This makes the system **robust, safe, and testable**.
Contributor guide
Assessment
This issue has not been assessed yet.