Skip to main content

Overview

Welcome to the Wikipedia integration guide for Julep! This integration allows you to access a vast repository of information from Wikipedia, enabling you to build workflows that require comprehensive data retrieval capabilities. Whether you’re developing a knowledge base or need quick access to encyclopedic information, this guide will walk you through the setup and usage.

Prerequisites

The Wikipedia integration does not require an API key. You can start using it immediately without any additional setup.

How to Use the Integration

To get started with the Wikipedia integration, follow these steps to configure and create a task:
1

Define Your Search Parameters

Use the following YAML configuration to define your search parameters and request data from Wikipedia:
Wikipedia Search Example
name: Wikipedia Search
tools:
- name: wikipedia_search
  type: integration
  integration:
    provider: wikipedia
    method: search

main:
- tool: wikipedia_search
  arguments:
    query: Artificial Intelligence
    load_max_docs: 5

YAML Explanation

  • name: A descriptive name for the task, in this case, “Wikipedia Search”.
  • tools: This section lists the tools or integrations being used. Here, wikipedia_search is defined as an integration tool.
  • type: Specifies the type of tool, which is integration in this context.
  • integration: Details the provider and setup for the integration.
    • provider: Indicates the service provider, which is wikipedia for Wikipedia.
    • method: Indicates the method to be used, which is search for Wikipedia. If not specified, the method will be search by default.
  • main: Defines the main execution steps.
    • tool: Refers to the tool defined earlier (wikipedia_search).
    • arguments: Specifies the input parameters for the tool:
      • query: The search query string.
      • load_max_docs: (optional) Maximum number of documents to load. Defaults to 2. Range 1-10.
Customize the query and load_max_docs parameters to suit your specific search needs.

Conclusion

With the Wikipedia integration, you can easily access a wealth of information from one of the largest online encyclopedias. This integration provides a robust solution for data retrieval, enhancing your workflow’s capabilities and user experience.
For more information, please refer to the Wikipedia API documentation.
I