GPT-4とマルチデータベース検索を使用して包括のな文献レビューを構築
中級
これはDocument Extraction, Multimodal AI分野の自動化ワークフローで、8個のノードを含みます。主にCode, OpenAi, PdfVector, WriteBinaryFileなどのノードを使用。 GPT-4とマルチデータベース検索を使って、包括のな文献レビューを構築
前提条件
- •OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "placeholder"
},
"nodes": [
{
"id": "start-node",
"name": "開始",
"type": "n8n-nodes-base.stickyNote",
"position": [
250,
250
],
"parameters": {
"content": "## Literature Review Parameters\n\nTopic: {{ $json.topic }}\nYear Range: {{ $json.startYear }}-{{ $json.endYear }}\nMax Papers: {{ $json.maxPapers }}"
},
"typeVersion": 1
},
{
"id": "pdfvector-search",
"name": "PDF Vector - 論文検索",
"type": "n8n-nodes-pdfvector.pdfVector",
"notes": "Search across multiple academic databases",
"position": [
450,
300
],
"parameters": {
"limit": 50,
"query": "={{ $json.topic }}",
"fields": [
"title",
"abstract",
"authors",
"year",
"doi",
"pdfUrl",
"totalCitations"
],
"yearTo": "={{ $json.endYear }}",
"resource": "academic",
"yearFrom": "={{ $json.startYear }}",
"operation": "search",
"providers": [
"pubmed",
"semantic_scholar",
"arxiv",
"google_scholar"
]
},
"typeVersion": 1
},
{
"id": "sort-papers",
"name": "被引用数でソート",
"type": "n8n-nodes-base.code",
"position": [
650,
300
],
"parameters": {
"functionCode": "// Sort papers by citations in descending order\nreturn items.sort((a, b) => (b.json.totalCitations || 0) - (a.json.totalCitations || 0));"
},
"typeVersion": 1
},
{
"id": "limit-papers",
"name": "上位論文を選択",
"type": "n8n-nodes-base.code",
"position": [
850,
300
],
"parameters": {
"functionCode": "// Limit to top N papers\nconst maxPapers = $node['Start'].json.maxPapers || 10;\nreturn items.slice(0, maxPapers);"
},
"typeVersion": 1
},
{
"id": "pdfvector-parse",
"name": "PDF Vector - 論文解析",
"type": "n8n-nodes-pdfvector.pdfVector",
"notes": "Parse each paper's PDF",
"position": [
1050,
300
],
"parameters": {
"useLlm": "auto",
"resource": "document",
"operation": "parse",
"documentUrl": "={{ $json.pdfUrl }}"
},
"typeVersion": 1
},
{
"id": "synthesize",
"name": "レビューを統合",
"type": "n8n-nodes-base.openAi",
"position": [
1250,
300
],
"parameters": {
"model": "gpt-4",
"messages": {
"values": [
{
"content": "Create a literature review section for this paper:\n\nTitle: {{ $json.title }}\nAuthors: {{ $json.authors }}\nYear: {{ $json.year }}\n\nContent: {{ $json.content }}\n\nGenerate:\n1. Key contribution summary (2-3 sentences)\n2. Methodology overview\n3. Main findings\n4. Relevance to topic: {{ $node['Start'].json.topic }}"
}
]
}
},
"typeVersion": 1
},
{
"id": "combine-sections",
"name": "セクションを結合",
"type": "n8n-nodes-base.code",
"position": [
1450,
300
],
"parameters": {
"functionCode": "// Combine all review sections into a single document\nconst reviewSections = items.map(item => item.json.reviewSection || item.json.content || '').filter(section => section);\nreturn [{ json: { reviewSections: reviewSections.join('\\n\\n') } }];"
},
"typeVersion": 1
},
{
"id": "export-review",
"name": "レビューをエクスポート",
"type": "n8n-nodes-base.writeBinaryFile",
"position": [
1650,
300
],
"parameters": {
"fileName": "literature_review_{{ $now.format('yyyy-MM-dd') }}.md",
"fileContent": "# Literature Review: {{ $node['Start'].json.topic }}\n\n{{ $json.reviewSections }}"
},
"typeVersion": 1
}
],
"connections": {
"start-node": {
"main": [
[
{
"node": "pdfvector-search",
"type": "main",
"index": 0
}
]
]
},
"combine-sections": {
"main": [
[
{
"node": "export-review",
"type": "main",
"index": 0
}
]
]
},
"limit-papers": {
"main": [
[
{
"node": "pdfvector-parse",
"type": "main",
"index": 0
}
]
]
},
"sort-papers": {
"main": [
[
{
"node": "limit-papers",
"type": "main",
"index": 0
}
]
]
},
"synthesize": {
"main": [
[
{
"node": "combine-sections",
"type": "main",
"index": 0
}
]
]
},
"pdfvector-parse": {
"main": [
[
{
"node": "synthesize",
"type": "main",
"index": 0
}
]
]
},
"pdfvector-search": {
"main": [
[
{
"node": "sort-papers",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 文書抽出, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
GPT-4、PDFVector、PostgreSQLエクスポートを使用して文書からデータを抽出
ドキュメントからデータをGPT-4、PDFVector、PostgreSQLで出力する
Code
Open Ai
Switch
+
Code
Open Ai
Switch
9 ノードPDF Vector
文書抽出
GPT-4と複数のデータベース検索を使った学術文献综述の自動化
GPT-4と複数のデータベース検索を使った学術文献レビューの自動化
If
Set
Code
+
If
Set
Code
13 ノードPDF Vector
文書抽出
PDF VectorとHIPAA準拠で医療文書から臨床データを抽出
PDF Vector と HIPAA 準拠を使用して医療文書から臨床データを抽出
If
Code
Postgres
+
If
Code
Postgres
9 ノードPDF Vector
文書抽出
五つのデータベースをまたいだ学术研究検索、PDFベクターと複数エクスポート
五つのデータベースを横断した学术研究検索、PDFベクターおよび複数のエクスポート
Set
Code
Pdf Vector
+
Set
Code
Pdf Vector
9 ノードPDF Vector
AI RAG検索拡張
自動化学術論文モニタリング(PDFベクトル化、GPT-3.5、Slack通知付き)
論文監視の自動化(PDFベクトル+GPT-3.5+Slackアラート)
Set
Code
Slack
+
Set
Code
Slack
10 ノードPDF Vector
個人の生産性
PDFベクター、GPT-4、Neo4jを使用して学術知識グラフを構築
PDFベクトル、GPT-4、Neo4jを使って、研究論文から学術知識グラフを構築
Code
Neo4j
Open Ai
+
Code
Neo4j
Open Ai
10 ノードPDF Vector
AI RAG検索拡張
ワークフロー情報
難易度
中級
ノード数8
カテゴリー2
ノードタイプ5
作成者
PDF Vector
@pdfvectorA fully featured PDF APIs for developers - Parse any PDF or Word document, extract structured data, and access millions of academic papers - all through simple APIs.
外部リンク
n8n.ioで表示 →
このワークフローを共有