How farahabdelhedi/slrresearchai_project works
SLRResearchAI supports researchers through research-question definition and approval, criteria and query construction, scientific-paper search, deduplication and title/abstract screening, then PDF retrieval and full-text eligibility assessment. The API is the visible entry point; a central end-to-end orchestrator is documented as planned, not implemented. The graph reflects the sampled code and README; relationships in unsampled subsystems are included only where the README documents them.
Main entry points: main.py FastAPI · screening_agent.py Screening Agent · download_eligibility_agent.py PDF Eligibility Agent · engine.py ReAct Engine
Components 31
Researcher Interface
- FastAPI
slrresearch/api/main.py - Review Sessions
slrresearch/api/session_store.py
Question Preparation
- Question Generation
slrresearch/agents/research_question_agent.py - Question Review
slrresearch/workflows/research_question_workflow.py - Question Validation
slrresearch/validators/research_question_validator.py - Criteria Generation
slrresearch/workflows/criteria_generation_workflow.py - Concept Extraction
slrresearch/agents/technology_extraction_agent.py - Query Construction
slrresearch/workflows/query_construction_workflow.py - Boolean Query Builder
slrresearch/services/query_builder.py
Search Execution
- Search Agent
slrresearch/agents/search_execution_agent.py - ReAct Engine
slrresearch/core/react/engine.py - Scientific Search Tools
slrresearch/services/search/tools.py
Screening
- Screening Agent
slrresearch/agents/screening_agent.py - Deduplication
slrresearch/services/screening/deduplication.py - Deterministic Screening
slrresearch/services/screening/deterministic_screening.py - Semantic Screening
slrresearch/services/screening/semantic_screening.py - LLM Screening
slrresearch/agents/llm_screening_agent.py - Decision Fusion
slrresearch/services/screening/screening_fusion.py - PDF Eligibility Agent
slrresearch/agents/download_eligibility_agent.py - PDF Source Resolver
slrresearch/services/download_eligibility/pdf_source_resolver.py - PDF Downloader
slrresearch/services/download_eligibility/pdf_downloader.py - PDF Validator
slrresearch/services/download_eligibility/pdf_validator.py - Text Extraction
slrresearch/services/download_eligibility/pdf_text_extractor.py - Full-Text Evaluator
slrresearch/services/download_eligibility/full_text_eligibility_evaluator.py
Shared Runtime
- LLM Service
slrresearch/services/llm_service.py - ReAct Contracts
slrresearch/core/react/contracts.py - Decision Policies
slrresearch/core/react/policies.py - Action Runtime
slrresearch/core/react/runtime.py - Domain Schemas
slrresearch/schemas - Prompt Templates
slrresearch/prompts
Other components
- Researcher
Connections 39
- Researcher → FastAPI: submits review requests
README.md - FastAPI → Question Generation: generates questions
slrresearch/api/main.py - FastAPI → Question Review: manages approval
slrresearch/api/main.py - FastAPI → Review Sessions: stores review state
slrresearch/api/main.py - Question Generation → Question Validation: validates questions
slrresearch/agents/research_question_agent.py - Question Generation → LLM Service: invokes model
slrresearch/agents/research_question_agent.py - Question Generation → Prompt Templates: builds prompts
slrresearch/agents/research_question_agent.py - Question Review → Question Generation: repairs questions
slrresearch/workflows/research_question_workflow.py - Question Review → Question Validation: validates edits
slrresearch/workflows/research_question_workflow.py - Question Review → Criteria Generation: approved questions
README.md - Criteria Generation → Domain Schemas: structures criteria
slrresearch/workflows/criteria_generation_workflow.py - FastAPI → Query Construction: constructs queries
slrresearch/api/main.py - Query Construction → Concept Extraction: extracts concepts
slrresearch/workflows/query_construction_workflow.py - Query Construction → Boolean Query Builder: builds Boolean queries
slrresearch/workflows/query_construction_workflow.py - Concept Extraction → LLM Service: extracts with LLM
- FastAPI → Search Agent: executes search
slrresearch/api/main.py - Search Agent → ReAct Engine: runs search loop
slrresearch/agents/search_execution_agent.py - ReAct Engine → Scientific Search Tools: executes authorized actions
slrresearch/core/react/engine.py - ReAct Engine → Decision Policies: requests decisions
slrresearch/core/react/engine.py - ReAct Engine → Action Runtime: executes and updates
slrresearch/core/react/engine.py - ReAct Engine → ReAct Contracts: validates state and actions
slrresearch/core/react/engine.py - Search Agent → Domain Schemas: accepts query results
slrresearch/agents/search_execution_agent.py - FastAPI → Screening Agent: screens papers
slrresearch/api/main.py - Screening Agent → Deduplication: deduplicates records
slrresearch/agents/screening_agent.py - Screening Agent → Deterministic Screening: screens deterministically
slrresearch/agents/screening_agent.py - Screening Agent → Semantic Screening: scores criteria
slrresearch/agents/screening_agent.py - Screening Agent → LLM Screening: analyzes papers
slrresearch/agents/screening_agent.py - Screening Agent → Decision Fusion: combines decisions
slrresearch/agents/screening_agent.py - LLM Screening → LLM Service: invokes model
slrresearch/agents/llm_screening_agent.py - LLM Screening → Prompt Templates: builds prompt
slrresearch/agents/llm_screening_agent.py - Screening Agent → PDF Eligibility Agent: passes screened papers
README.md - PDF Eligibility Agent → PDF Source Resolver: resolves PDF sources
slrresearch/agents/download_eligibility_agent.py - PDF Eligibility Agent → PDF Downloader: downloads PDFs
slrresearch/agents/download_eligibility_agent.py - PDF Eligibility Agent → PDF Validator: validates PDFs
slrresearch/agents/download_eligibility_agent.py - PDF Eligibility Agent → Text Extraction: extracts full text
slrresearch/agents/download_eligibility_agent.py - PDF Eligibility Agent → Full-Text Evaluator: evaluates eligibility
slrresearch/agents/download_eligibility_agent.py - PDF Eligibility Agent → Domain Schemas: returns structured decisions
slrresearch/agents/download_eligibility_agent.py - Text Extraction → Domain Schemas: uses eligibility contracts
slrresearch/services/download_eligibility/pdf_text_extractor.py - LLM Screening → Domain Schemas: validates screening decisions
slrresearch/agents/llm_screening_agent.py