Document Processing
OpenCompany provides a complete RAG (Retrieval-Augmented Generation) pipeline for processing documents, generating embeddings, and storing vectors for semantic search.Pipeline Overview
HTTP Scraper
Scrapes links from web pages with support for pagination and date ranges.Modes
Parameters
URL template. Use
{date} (date mode) or {page} (page mode) placeholders for iteration.Route requests through a residential proxy provider. When enabled, exposes
proxy_provider, proxy_country, and session_type (rotating/sticky).Output
Example: Scrape News Archive
File Downloader
Downloads files from URLs in parallel using semaphore-based concurrency.Parameters
Directory to save downloaded files. Defaults to a
downloads/ folder inside the workflow workspace.Input
Accepts an array ofitems with a url field (from HTTP Scraper), or a plain urls list:
Output
Counts plus afiles array describing the successful downloads:
Document Parser
Parses documents to extract text content using configurable parsers.Parsers
Parameters
Input
Setfile_path for a single file, or input_dir + file_pattern for a directory scan.
Output
Parser Comparison
Text Chunker
Splits text into overlapping chunks for embedding generation.Strategies
Parameters
Input
Accepts adocuments array (with a content field, from Document Parser) or a plain text string:
Output
Choosing Chunk Size
Embedding Generator
Generates vector embeddings from text chunks using various providers.Providers
Parameters
Embedding provider: huggingface (local), openai, or ollama (local server)
Model name for the chosen provider. Override when switching provider (e.g.
text-embedding-3-small for OpenAI).Input
Accepts achunks array (from Text Chunker), each with a content field:
Output
Parallel arrays:embeddings (one vector per chunk) plus the original chunks echoed back for pairing.
Vector Store
Stores and queries vector embeddings using various backends.Backends
Operations
Parameters
Store Operation
Input (from Embedding Generator) — pass bothembeddings and chunks:
Query Operation
Query with a precomputed embedding vector (embed your question first, then feed it here):distance for Chroma, score for Qdrant/Pinecone):
Complete RAG Pipeline Example
Workflow
Configuration
-
HTTP Scraper
- URL:
https://docs.example.com/api/{page} - Iteration Mode: page
- Link Selector:
a.pdf-link
- URL:
-
File Downloader
- Output Dir:
./downloads - Max Workers: 10
- Output Dir:
-
Document Parser
- Parser: pypdf
-
Text Chunker
- Strategy: recursive
- Chunk Size: 1000
- Overlap: 200
-
Embedding Generator
- Provider: huggingface
- Model: BAAI/bge-small-en-v1.5
-
Vector Store
- Backend: chroma
- Operation: store
- Collection: api-docs
Querying the Pipeline
Create a separate workflow for querying:Tips
Related
AI Agents
Use RAG context with AI agents
Webhooks
Trigger and respond over HTTP
AI Models
AI providers for generation
Schedulers & Triggers
Run the RAG pipeline on a schedule