Data Source Node

The Data Source Node plays the role of fetching external data. It can perform API calls, database queries, file reading, etc.


πŸ“‹ Data Source Node List

Node Description Usage Example
VectorDB Retrieve AI reference docs RAG, Doc Search
Http Request Call REST API Weather, News, External Data

VectorDB

Add data for AI to reference

✨ Key Features

  • βœ… Upload documents and save to Vector DB
  • βœ… Auto-search documents related to the question
  • βœ… Prompt Auto-Completion (Optimized for RAG)

πŸ”§ Configuration

Setting Description Example
files List of document files to reference PDF, TXT, MD, etc.

πŸ“‹ Supported File Formats

  • βœ… PDF
  • βœ… TXT
  • βœ… Markdown (.md)

🎯 Usage

  1. Upload Documents

    • Click VectorDB node
    • "Add File" button
    • Upload documents (Max 10MB)
  2. Auto Vectorization

    • Uploaded docs are automatically vectorized
    • Semantic search enabled
  3. Search & Prompt Generation

    • Searches relevant docs based on the previous node's input (question).
    • Important: Combines searched content and user question to generate a complete prompt text.

πŸ“ Result Data Structure

This node returns not just simple document content, but a formatted prompt text ready to send to LLM ({{result}}).

Components:

  1. Searched related document chunks ([context])
  2. User question ([query])

Example ({{result}} value):

[context]: 
Similarity: 0.8123
(Reference Doc Content 1...)
==========
Similarity: 0.7654
(Reference Doc Content 2...)

---

[query]: User entered question

πŸ’‘ Usage Example

Document-based Q&A Chatbot

[Text Input] β†’ [VectorDB] β†’ [ChatGPT] β†’ [Chatbot Response]
  1. User enters question
  2. VectorDB finds related docs and forms prompt
  3. ChatGPT receives `` and generates answer without extra prompting

ChatGPT Config Example:

prompt: {{result}}
(system prompt only needs role definition)

Http Request

Sends an HTTP request including JSON Body

✨ Key Features

  • βœ… Call REST API
  • βœ… Support GET, POST, PUT, DELETE
  • βœ… Custom Header settings
  • βœ… Send JSON Body

πŸ”§ Required Settings

Setting Description Example
url* API Address https://api.example.com/data
method* HTTP Method GET, POST, PUT, DELETE
headers* HTTP Headers {'Content-Type': 'application/json'}
body* Request Body (JSON) {{result}}

πŸ“‘ GET Request Example

Call Weather API

URL: https://api.openweathermap.org/data/2.5/weather?q=Seoul&appid=YOUR_API_KEY
Method: GET
Headers: {'Content-Type': 'application/json'}
Body: (Empty)

πŸ“‘ POST Request Example

Call External AI API

URL: https://api.example.com/generate
Method: POST
Headers: {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer YOUR_TOKEN'
}
Body: {
  "prompt": "{{result}}",
  "max_tokens": 100
}

πŸ“ Result Data

Access API response via {{result}} in the next node

Example: {{result}} β†’ API response text (JSON String, etc.)

πŸ’‘ Usage Example 1: Weather-based Recommendation

[Click] β†’ [Http Request] β†’ [ChatGPT] β†’ [Telegram]
  1. Call Weather API via Http Request
  2. ChatGPT recommends outfit based on weather
  3. Send to Telegram

πŸ’‘ Usage Example 2: News Summary

[Click] β†’ [Http Request] β†’ [ChatGPT] β†’ [Slack]
  1. Fetch latest news from News API
  2. ChatGPT summarizes in 3 lines
  3. Send to Slack

🎯 Pro Tips

API Key Security Management

  • ❌ Exposed in URL: ?api_key=123456
  • βœ… Send via Header: {'Authorization': 'Bearer 123456'}

Dynamic URL Generation

https://api.example.com/user/{{result}}

πŸ†š VectorDB vs Http Request

Item VectorDB Http Request
Purpose Document Search (RAG) API Call
Data Internal Documents External API
Result Completed Prompt Raw API Response
Example Q&A, Manual Search Weather, News, Integration

πŸ”— Connecting with Other Nodes

VectorDB + AI Generation

[Question] β†’ [VectorDB] β†’ [ChatGPT] β†’ [Response]

Since VectorDB already creates the prompt, use {{result}} as is in the AI node.

Http Request + AI Generation

[Start] β†’ [Http Request] β†’ [Claude] β†’ [Slack]

AI analyzes the data received from the API.


🎯 Next Steps


❓ FAQ

Q: How many files can I upload to VectorDB? A: Currently, 10MB per file, up to 100MB total.

Q: What happens if Http Request times out? A: It automatically fails after 30 seconds, and the workflow stops.

results matching ""

    No results matching ""