AI-assisted `st.date_input`

Open
#12,992 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
ai, frontend

Research direction

Start by reviewing the st.date_input component and how its current date, date-range, and quick-select interactions are implemented. Define the text-input and LLM integration boundaries, the date output format, and behavior for ambiguous or invalid prompts. Done should include an agreed design and coverage for the new interaction.

Written by the indexing model from the issue text.

Description

area:ai feature:st.date_input type:enhancement
Checklist
  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.
Summary

In an st.date_input, you need to manually pick a date or date range by clicking on dates or using the quick select feature (e.g. "Last week"). What if you could put in dates with an AI assistant E.g. show a text line, you can write "from the first to the last day of Q2 in 2023", and it would select the appropriate date range.

Why?

Makes it easier and a bit more magical to use.

How?
  • Add a text input to st.date_input where you can describe that date(s) you want.
  • That queries an LLM to return the dates you're describing in a specific format.
  • In the date input, it will then select those dates.
Additional Context

No response

Dominant language
Python
Stars
45.8k
Forks
4.4k
Avg merge
21h 22m
Merged PRs (30d)
316

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from streamlit/streamlit

All issues in streamlit/streamlit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.