How amdhaffar/slrresearchai-td02 works
SLRResearchAI is a teaching application for turning a review topic into controlled systematic-literature-review search queries. The workflow contrasts zero-shot and few-shot question generation, checks formatted text, attempts at most one repair before human escalation, then applies a Pydantic contract and builds Boolean queries for Scholar, IEEE, and ACM. The CLI and Streamlit interface expose this workflow; configuration selects Ollama or Groq. Some Streamlit code and the query-pipeline implementation were not fully sampled, so those connections are included only where documented or directly visible.
Main entry points: streamlit_app.py Streamlit App · main.py CLI Workflow · config.py Model Factory · search_plan.py Controlled Workflow
Components 16
User Interfaces
- CLI Workflow
main.py - Streamlit App
streamlit_app.py
Question Generation
- Zero-shot Questions
slrresearch/research_questions.py
Validation and Repair
- Few-shot Prompt
slrresearch/search_plan.py - Text Validation
slrresearch/search_plan.py - Single Repair
slrresearch/search_plan.py - Controlled Workflow
slrresearch/search_plan.py - Human Review
Search Planning
- Question Contract
slrresearch/search_plan.py - Query Builder
slrresearch/search_plan.py
Model Configuration
- Provider Settings
slrresearch/config.py - Model Factory
slrresearch/config.py
Other components
- Researcher
- Ollama
- Groq
- Research Engines
Connections 28
- Researcher → CLI Workflow: enters topic
main.py - Researcher → Streamlit App: uses interface
streamlit_app.py - CLI Workflow → Provider Settings: loads settings
main.py - CLI Workflow → Model Factory: builds model
main.py - Streamlit App → Provider Settings: loads settings
streamlit_app.py - Streamlit App → Model Factory: builds model
streamlit_app.py - Provider Settings → Model Factory: configures
slrresearch/config.py - Model Factory → Ollama: selects provider
slrresearch/config.py - Model Factory → Groq: selects provider
slrresearch/config.py - CLI Workflow → Zero-shot Questions: generates questions
main.py - Zero-shot Questions → Model Factory: invokes model
main.py - CLI Workflow → Few-shot Prompt: builds prompt
main.py - CLI Workflow → Text Validation: checks output
main.py - CLI Workflow → Controlled Workflow: runs workflow
main.py - CLI Workflow → Query Builder: invokes pipeline
main.py - Streamlit App → Zero-shot Questions: generates questions
streamlit_app.py - Streamlit App → Few-shot Prompt: builds prompt
streamlit_app.py - Streamlit App → Text Validation: checks output
streamlit_app.py - Streamlit App → Single Repair: requests repair
streamlit_app.py - Streamlit App → Question Contract: validates questions
streamlit_app.py - Streamlit App → Query Builder: runs pipeline
streamlit_app.py - Controlled Workflow → Text Validation: validates text
slrresearch/search_plan.py - Controlled Workflow → Single Repair: repairs on failure
slrresearch/search_plan.py - Controlled Workflow → Question Contract: validates records
slrresearch/search_plan.py - Single Repair → Model Factory: invokes model
slrresearch/search_plan.py - Controlled Workflow → Human Review: escalates failure
README.md - Question Contract → Query Builder: supplies questions
README.md - Query Builder → Research Engines: targets queries
slrresearch/search_plan.py