Overview
Upload the papers you have chosen to a Dify knowledge base and build a small app that drafts literature review sections using only those papers, with a citation to the source passage behind every claim.
Problem or Objective
- Which agents investigate a question and report back?
- Which agents can draft a document section by section and save it in a reusable, structured format?
More in Research and Analysis
AI Agents and Models
Tools and Integrations
- Tools
- Dify
- Prerequisites
- Dify Cloud or a self-hosted Dify instance, a configured language model and embedding provider, and PDFs of the papers you are allowed to upload.
How It Works
Collect the papers you have read and decided to include, as PDFs, and upload them to a Dify knowledge base. Build a workflow app with a Knowledge Retrieval node feeding an LLM node, and in the LLM prompt tell the model to answer only from the retrieved context, cite the source for every statement and say plainly when the papers do not cover a point. Ask it for one section at a time, for example the methods used across studies, points of agreement, contradictions and gaps. Check the citations Dify shows against the papers themselves, especially quotations and numbers. Rewrite the draft in your own words and argument, add the formal references with your reference manager, and follow your institution's rules on AI assistance.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Dify.
- Connect the toolsConnect the tools this workflow relies on: Dify.
- Check the prerequisitesDify Cloud or a self-hosted Dify instance, a configured language model and embedding provider, and PDFs of the papers you are allowed to upload.
- Gather your detailsCollect what the prompt asks for: Section to draft, Your research question, Target length in words.
- Run the starter promptPaste the starter prompt below into Dify and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at github.com before you rely on it.
Practical Starter Prompt: Draft one review section from my papers
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Using only the retrieved passages from my uploaded papers, draft the section of my literature review on [Section to draft] for a study about [Your research question]. Every sentence that states a finding must cite its source. Do not use outside knowledge. Where the papers disagree, say so and cite both. Where they do not cover a point, write that the sources do not address it. Keep to about [Target length in words] words and end with a list of gaps you noticed. I will verify every citation myself.Check each citation against the paper before keeping a sentence, and rewrite the draft in your own words.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Dify README describes a RAG pipeline covering document ingestion to retrieval, with text extraction from PDFs and other common formats. The LLM node page says context variables from knowledge retrieval let a model answer from your documents and that Dify tracks citations so users see the sources. No cited page measures how faithfully drafts stick to the sources, so the citation check is yours.
Limitations and Considerations
Retrieval can miss relevant passages, so read the papers yourself and treat the draft as notes, not finished prose. Verify every quotation, figure and citation against the original paper before reuse. Check your university's or journal's policy on AI-assisted writing and disclose use where required. Upload only papers you are allowed to store in the service you use; self-hosting Dify keeps them on your own server. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About langgenius/dify
Dify vs Flowise vs Langflow: Best Open Source AI Workflow Builder (opens in a new tab)
Walkthrough of dify by StackWhiz: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)About langgenius/dify
Dify Explained: Build AI Workflows, RAG and Agents in One Place (opens in a new tab)
Walkthrough of dify by Ilm Initiative: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- langgenius/dify README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- Extensive RAG capabilities that cover everything from document ingestion to retrieval, with out-of-box support for text extraction from PDFs, PPTs, and other common document formats.
- LLM - Dify Docs (opens in a new tab)
Project documentation · docs.dify.ai · Undated · Source checked 26 Nov 2026, 18:29 UTC
What this source supports
- Context variables inject external knowledge while preserving source attribution. This enables RAG applications where LLMs answer questions using your specific documents.
- When using context variables from knowledge retrieval, Dify automatically tracks citations so users see information sources.

