Skip to main content

Overview

This tutorial demonstrates how to:
  • Set up a web crawler using Julep’s Spider integration
  • Process and store crawled content in a document store
  • Implement RAG for enhanced AI responses
  • Create an intelligent agent that can answer questions about crawled content

Task Structure

Let’s break down the task into its core components:

1. Input Schema

First, we define what inputs our task expects:
This schema specifies that our task expects:

2. Tools Configuration

Next, we define the external tools our task will use:
We’re using two tools:
  • The get_page api call for web crawling
  • The create_agent_doc system tool for storing processed content

3. Main Workflow Steps

1

Crawl Website

The _ variable refers to the current context object. When accessing properties like _['url'], it’s retrieving values from the input parameters passed to the task.
This step:
  • Takes the input URL and crawls the website
  • Processes content into readable markdown format
  • Chunks content into manageable segments
  • Filters out unnecessary elements like images and SVGs
2

Process and Index Content

This step:
  • Processes each content chunk in parallel
  • Generates contextual metadata for improved retrieval
  • Prepares content for storage
3

Store Documents

This step:
  • Stores processed content in the document store
  • Adds metadata for source tracking
  • Creates searchable documents for RAG
YAML

Usage

Start by creating an execution for the task. This execution will make the agent crawl the website and store the content in the document store.
Next, create a session for the agent. This session will be used to chat with the agent.
Finally, chat with the agent.

Example Output

This is an example output when the agent is asked “What is Julep?”
Julep is a comprehensive platform designed for creating production-ready AI systems and agents. Here are the key aspects of Julep:Core Features:
  1. Complete Infrastructure Layer
  • Provides infrastructure between LLMs and software
  • Built-in support for long-term memory
  • Multi-step process management
  • State management capabilities
  1. AI Agent Development
  • Creates persistent AI agents that remember past interactions
  • Supports complex task execution
  • Enables multi-step workflows
  • Includes built-in tools and integrations
  1. Production-Ready Features
  • Automatic retries for failed steps
  • Message resending capabilities
  • Task recovery systems
  • Real-time monitoring
  • Error handling
  • Automatic scaling and load balancing
  1. Development Approach
  • Uses 8-Factor Agent methodology
  • Treats prompts as code with proper versioning
  • Provides clear tool interfaces
  • Offers model independence to avoid vendor lock-in
  • Includes structured reasoning capabilities
  • Maintains ground truth examples for validation
Available Resources:You can explore different use cases through their cookbooks, including:
  • User Profiling
  • Email Assistant
  • Trip Planner
  • Document Management
  • Website Crawler
  • Multi-step Tasks
  • Advanced Chat Interactions
For additional support or to learn more:

Next Steps

  • Try this task yourself, check out the full example, see the RAG Chatbot cookbook.
  • To learn more about the integrations used in this task, check out the integrations page.