arya2004 / arya2004/Data-Filtering-Chatbot

Refactor LLM interaction to use structured JSON filters

Open
#9 1 comment 0 reactions 1 assignee Claimed by @Vaishnavi-Raykar View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.