Custom Hacker News summaries in your inbox—build an AI Agent with Inngest and Render
A tutorial for building an AI agent that periodically searches Hacker News for user-defined topics and questions and emails summaries. The stack has three parts on Render: PostgreSQL with pgvector, using an HNSW index over OpenAI ada-002 embeddings; a Playwright-based indexer cron job that scrapes Algolia HN Search; and a Next.js app hosting the UI and the workflow. Inngest orchestrates the workflow steps with retries. Its AgentKit library defines a tool-using Search Agent (search and identify-trends, using a cosine distance threshold under 0.3 and per-day aggregation) and a Summarizer Agent, linked by shared network state and custom routing.
Related posts
- Trace & Evaluate your Agent with Arize Phoenix
Hugging Face mediumAdeptA smolagents CodeAgent with DuckDuckGo search and webpage tools can be instrumented with OpenTelemetry and OpenInference so every agent call is traced in a local or hosted Arize Phoenix instance. Evaluation works by querying the search tool's spans with SpanQuery and scoring query/result relevance with GPT-4o as an LLM judge via llm_classify and the RAG relevancy template. The scores are then logged back to Phoenix as span evaluations. Swapping in other prebuilt templates covers checks such as hallucination, toxicity, SQL generation and function calling.
- Build a custom RAG AI agent in TypeScript and Jupyter
Deno mediumAdeptA local agentic RAG pipeline built in TypeScript inside a Deno Jupyter notebook, using LangChain and LangGraph with Ollama models. Deno blog posts are loaded with Cheerio, split into 500-character chunks, embedded with mxbai-embed-large and stored in an in-memory vector store exposed as a retriever tool. A LangGraph state graph wires an agent node (Llama 3.2 3B, the only small local model the author got tool calling working with) to retrieval, a binary relevance grader, query rewriting and final answer generation with DeepSeek R1 8B. The setup suits confidential documents that must not leave the machine.
- Building a Deep Research Agent with Neon and Durable Endpoints
Neon mediumAdept
A recursive deep research agent built on Neon Postgres with pgvector, Inngest durable endpoints, Claude, Exa search and OpenAI embeddings. Planning, search, reflection and report generation from the DeepResearcher and Step-DeepResearch papers map onto concrete LLM functions, with depth-limited recursion that halves breadth at each level. Every external call runs as a retriable, memoized Inngest step with deterministic IDs. Idempotent Postgres writes (ON CONFLICT DO NOTHING, UNIQUE constraints) make replays safe. One database holds sessions, cursor-polled progress events and embeddings, so past learnings can be recalled via cosine distance to inform new searches.
- Building a Chatbot for Hacker News and Stack Overflow with LlamaIndex and ClickHouse
ClickHouse mediumAdept
HackBot is a chatbot that answers questions about developer opinions by combining text-to-SQL over the 2021 Stack Overflow survey with vector search over 28m embedded Hacker News comments, both stored in ClickHouse and orchestrated with LlamaIndex, OpenAI and Streamlit. The design routes structured, unstructured and mixed questions through separate query pipelines, with mixed questions using a SQL result to drive a metadata-filtered vector search. Schema choices such as self-descriptive column names and Enum types help the LLM generate correct SQL without extra context. Ordering keys on date, length and score keep filtered vector queries fast.
- Search agent traces by behavior with AI Search in LangSmith
LangChain mediumAdeptLangSmith's AI Search lets users find agent traces by behavior described in plain language (e.g. "did PII leak?", "did the user get frustrated?") by running a fast decision model over each candidate trace rather than relying on lossy embedding-based vector search. SmithDB normalizes traces from different SDKs into deduplicated per-session trajectories, which are then packed into an 8K-token budget that prioritizes user messages and agent replies over tool output. In a sample of Open SWE conversations, the median had 72K tokens but only about 2K came from user and agent messages, while roughly 85% was tool output. Structured filters narrow candidates first, then batches are classified in parallel with prefetching and results streamed back as they match.