A local Streamlit application that helps you explore potentially appropriate algorithms for machine learning, AI, data science, NLP, document intelligence, computer vision, time series, anomaly detection, optimization, GenAI, and RAG projects.
The app has two separate steps:
- Suggest candidate algorithms uses local deterministic rules only.
- Rank with ChatGPT sends the selected project profile and deterministic candidates to the OpenAI Responses API for a ranked Markdown recommendation.
Unchecked boxes mean unknown / not selected, never "No". If a negative answer matters, use the explicit negative options such as "Explicitly no labels available", "Explicitly no need for explainability", or "Explicitly no deployment required".
From this folder:
cd "D:\OneDrive\Proyectos DS\KpiChat\model_selection\algorithm_advisor"
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -r requirements.txtIf you prefer using the project-level virtual environment that already exists one folder above:
cd "D:\OneDrive\Proyectos DS\KpiChat\model_selection\algorithm_advisor"
..\.venv\Scripts\python.exe -m pip install -r requirements.txtCreate a local .env file from .env.example:
Copy-Item .env.example .envEdit .env:
OPENAI_API_KEY=your_api_key_here
OPENAI_MODEL=gpt-5.5Or set the key for the current Windows PowerShell session:
$env:OPENAI_API_KEY="your_api_key_here"
$env:OPENAI_MODEL="gpt-5.5"Security note: never commit .env or API keys. The app reads secrets from environment variables using python-dotenv; no key is hardcoded.
streamlit run app.pyIf Streamlit is not on your PATH:
python -m streamlit run app.pyrecommender.py contains a catalog of algorithm families with matching triggers. The app compares your selected checkboxes against those triggers, computes a local confidence score from 0 to 100, and adds contextual cautions for risk, thresholds, deployment, explainability, data scale, and ambiguity.
This first step never calls OpenAI.
openai_client.py calls the OpenAI Responses API with:
- project description
- selected checkbox options grouped by section
- a note that unchecked options are unknown
- deterministic candidate algorithms and their local reasons
The prompt asks ChatGPT to return Markdown with an executive recommendation, ranked table, baselines, advanced options, avoided options, data requirements, metrics, implementation steps, risks, first experiment, production path, and clarifying questions.
The OpenAI call happens only when you click Rank with ChatGPT.
If OPENAI_API_KEY is missing, deterministic recommendations still work and the ChatGPT ranking button shows a clear error.
Click Load example: Document Intelligence Compliance Workflow in the sidebar. Then:
- Click Suggest candidate algorithms.
- Review the deterministic table and expand algorithm details.
- Click Rank with ChatGPT if
OPENAI_API_KEYis configured. - Use the Markdown text area or download button to export the full profile and recommendations.