Skip to main content
use-apify.com

LLM: guides & tutorials

Large language models turn HTML and docs into JSON, summaries, and answers. Model picks, prompting, and Apify hooks for extraction beyond brittle parsers.

19 articlesPage 1 of 2

View all tags

Related topics

OpenClaw11 min read

OpenClaw vs Hermes Agent: Which Self-Hosted AI Assistant Is Right for You? (2026)

· 11 min read
Yassine El Haddad
Software Developer & Automation Specialist

OpenClaw and Hermes Agent are both self-hosted AI assistants you run on your own hardware — but they solve different problems. OpenClaw is a gateway that routes messages to an LLM and executes skills on demand. Hermes Agent is an autonomous agent with persistent memory and a learning loop that improves on repeated workflows. This post compares the two directly so you can choose the right tool for your setup.

AI16 min read

Production RAG Architecture: Crawl to Cited Answers (2026)

· 16 min read
Yassine El Haddad
Software Developer & Automation Specialist

A production RAG (retrieval-augmented generation) system crawls your content, splits it into section-sized chunks, embeds them in a vector database, retrieves and reranks the best matches for each question, and has an LLM answer only from those matches, with citations. Most RAG projects that disappoint in production get the model right and the plumbing wrong: chunks that cut sections in half, no reranking, and an index that silently goes stale.

This guide builds each stage with ready-to-run Python, and spends most of its time on the parts other guides skip: chunking, freshness and measurement.

StageToolKey decision
1. CrawlApify Website Content CrawlerClean Markdown per page, on a schedule
2. ChunkMarkdown RAG Chunker or LangChainOne section per chunk, ≤512 tokens, stable IDs
3. EmbedOpenAI text-embedding-3-small or local FastEmbedCost vs quality
4. StoreQdrant or pgvectorDedicated vector DB vs your existing Postgres
5. RetrieveDense search + Cohere rerank-v4.0-proTop 20 candidates, rerank to top 5
6. GenerateClaude (claude-opus-5-5)Answer only from sources, cite them
7. Stay freshStable chunk IDs + document_hash cleanupRe-embed only what changed

Install everything (latest stable versions as of October 2026; the code below targets them):

pip install apify-client==3.3.0 langchain-text-splitters==1.1.3 tiktoken==0.14.0 \
openai==3.35.1 fastembed==0.9.0 qdrant-client==1.19.1 cohere==7.2.0 anthropic==1.15.0

You need an Apify account, a Qdrant instance (docker run -p 6333:6333 qdrant/qdrant, or Qdrant Cloud's free tier), and API keys for the services you choose: OpenAI (optional), Cohere and Anthropic.

Apify24 min read

Best AI Web Scrapers 2026: 6 Tools, Cost per 1,000 Pages

· 24 min read
Yassine El Haddad
Software Developer & Automation Specialist

Short answer: for clean Markdown to feed a RAG pipeline, use Firecrawl. For structured fields across thousands of pages, use an Apify Actor. For sites that block ordinary requests, use Bright Data. For one URL pasted into a prompt, use Jina Reader. For news and article text with no schema to write, use Diffbot. To self-host, use Crawl4AI.

An AI web scraper fetches a page, cleans it, and then either converts it to Markdown for a language model or asks a model to pull out the fields you describe. You trade some cost and speed for not having to write and maintain CSS selectors. For scrapers without the AI layer, see our best web scraping tools roundup, the web scraping tools comparison and the free web scraping tools list.

Prices, limits and API shapes on this page were checked on the vendors' official pages on 25 November 2026. We did not benchmark the tools for this refresh: costs below are arithmetic on published prices.

ToolBest forFree tierPaid from
FirecrawlRAG Markdown, JSON by schema1,000 credits/month$16/month billed yearly
ApifyStructured data at volume, named sites$5 of usage/month$19/month (Starter)
Bright DataPages that block you5K credits/month (Browser API)$8/GB or $1.50 per 1K requests
Jina ReaderOne URL into a prompt20 requests/min without a keyToken-billed
DiffbotNews and articles, no schema10,000 credits/month$299/month (Startup)
Crawl4AISelf-hostingOpen sourceYour own server
Comparison13 min read

Firecrawl vs Jina Reader 2026: LLM Web Crawling Compared

· 13 min read
Yassine El Haddad
Software Developer & Automation Specialist

Short answer: Jina Reader turns one URL into Markdown with a single GET request (https://r.jina.ai/<url>) and works without an API key at 20 requests a minute. Firecrawl is a credit-billed API, with an AGPL-3.0 engine you can self-host, that adds site crawling, URL mapping and schema-based JSON extraction; its cloud also allows keyless single-page scrapes under a daily per-IP cap, but crawling needs a key. Use Jina Reader to drop a page into a prompt; use Firecrawl to turn a whole site into a RAG index.

Prices, rate limits, headers and API versions on this page were checked against jina.ai and firecrawl.dev on 25 November 2026. Jina Reader's keyless behaviour and headers were tested the same day; the Firecrawl samples are quoted from its docs.

AI agents7 min read

LangGraph Agents in Production: Build Stateful AI Workflows with Python (2026)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

LangGraph is LangChain's graph-based framework for building stateful, multi-step AI agents. Unlike simple chains, LangGraph lets you define nodes (functions), edges (transitions), conditional branching, loops, and human-in-the-loop checkpoints. It's the go-to choice for production agents that need persistence, interrupts, and complex control flow. Use Apify for web data in LangGraph.

LLM7 min read

Ollama + Open WebUI: Build a Private ChatGPT Clone on Your Own Server (2026)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

Ollama runs open-source LLMs locally. Open WebUI provides a ChatGPT-like interface that connects to Ollama (or OpenAI/Anthropic). Together they give you a fully private chat experience — no data leaves your server. This guide covers installation, model choices by hardware, and production setup on CPU or GPU VPS.

Anthropic7 min read

OpenAI vs Anthropic vs Groq: Choosing the Right LLM API for Your Project in 2026

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

TL;DR: Use Claude for long documents and tool use, GPT-4o for general coding and the best ecosystem, Groq for cost-sensitive real-time apps with open models. All three support OpenAI-compatible clients; migration is straightforward.

Choosing an LLM API in 2026 means balancing quality, context length, speed, and cost. This guide compares OpenAI, Anthropic, and Groq so you can pick the right provider for web scraping pipelines, content summarization, coding agents, and production AI.

LLM6 min read

OpenClaw + Ollama: Turn Your Local LLM into a Multi-Platform AI Assistant (2026)

· 6 min read
Yassine El Haddad
Software Developer & Automation Specialist

OpenClaw is a multi-platform AI assistant — web UI, API, Telegram, Discord, Slack, and more — all fronting a single LLM backend. Connect it to Ollama and your local model becomes usable everywhere: from your phone via Telegram, from code via API, from the web dashboard. No data leaves your machine. This guide covers setup, config, use cases, and connecting multiple backends (Ollama + Anthropic + OpenAI) on a Liquid Web VPS.

LLM7 min read

Run Gemma 3 Locally with Ollama: Complete Setup Guide (2026)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

Google's Gemma 3 is an open-weight model family optimized for efficiency and quality. Run it locally with Ollama in minutes — no API keys, no cloud dependency. This guide covers installation, model sizes (2B, 7B, 27B), hardware requirements, and how Gemma 3 compares to LLaMA 3.2 and Phi-3. (Issue #396)

AI9 min read

Web Scraping with AI: How LLMs Are Transforming Data Extraction in 2026

· 9 min read
Yassine El Haddad
Software Developer & Automation Specialist

LLMs did not replace CSS overnight, but they did change where teams spend time: instead of nursing a selector file per theme, you can often send cleaned HTML (or markdown) to a model and ask for JSON against a schema, which helps when layouts drift or you cover many domains. Large language models reason about semantics, so fields like price, rating, and stock can come back without hand-built paths—at the cost of latency, tokens, and occasional guesses. The sections that follow spell out four common roles for LLMs in scraping (selector help, structured extraction, classification, validation), where that breaks down, and when traditional selectors or pre-built Actors still win. Try Firecrawl JSON extraction · Apify Store