An advanced academic paper review system that automates the creation of systematic literature reviews. This solution uses a directed graph architecture to orchestrate a complex workflow, transforming research topics into comprehensive review papers through autonomous planning, research, analysis, and writing stages.
• Use Generative AI to compile papers from a given topic and get a systematic overview of their contents.
• Find similarities and dissimilarities in the literature
• Be able to gain understanding information from various research domains, through meta-analysis or systematic review.
Please look at the .env.example for what is needed to run agent.py. However, you can run this code without those keys.
OPENAI_API_KEY="<YOUR_KEY>"
pip install -r minimal_reqs.txt
python agent.py
## Tool Setup
papers_tool = AcademicPaperSearchTool()
## Model Parameters
temperature=0.1
model=ChatOpenAI(model='gpt-4o-mini') # gpt-4o-mini
## Topic
topic = "diffusion models for music generation"
## Langgraph Config
thread_id = "test_thread"
checkpointer = MemorySaver()
agent_input = {"messages" : [HumanMessage(content=topic)]}
thread_config = {"configurable" : {"thread_id" : thread_id}}
## Agent Call
agent = Agent(model, [papers_tool], checkpointer=checkpointer, temperature=temperature)
result = agent.graph.invoke(agent_input, thread_config)
- Initial Stages
_start_
: Beginning point of the processprocess_input
: Initial data processing stageplanner
: Strategy development phaseresearcher
: Research coordination phase
- Article Management
search_articles
: Article search and identificationarticle_decisions
: Evaluation and selection of articlesdownload_articles
: Retrieval of selected articlespaper_analyzer
: In-depth analysis of papers
- Writing Components
write_abstract
: Abstract compositionwrite_conclusion
: Conclusion developmentwrite_introduction
: Introduction creationwrite_methods
: Methodology documentationwrite_references
: Reference compilationwrite_results
: Results documentation
- Final Stages
aggregate_paper
: Combining all sectionscritique_paper
: Critical review phaserevise_paper
: Revision processfinal_draft
: Final document preparation_end_
: Process completion