GitHub

Quick Start

Get started with Functor in 5 minutes. This guide will walk you through installation, authentication, and your first query.

Prerequisites

Before you begin, make sure you have:
1

Get API Key

Access your API key from the Functor platform. If you don't have one yet, see the Authentication Guide.

3

Install SDK

# Install via pip
pip install functor-sdk
# Or via uv (faster)
uv pip install functor-sdk
4

Set Up Authentication

Configure your API key using one of these methods:

# Set environment variables
export FUNCTOR_API_KEY=your-api-key-here
export FUNCTOR_BASE_URL=http://localhost:8000
5

Make Your First API Call

After preparing your API key and installing the SDK, you can start making API calls:

from functor_sdk import FunctorClient
# Initialize client (uses environment variables)
client = FunctorClient()
# Execute a query
result = client.queries.execute("What is machine learning?")
# Display results
print(f"Answer: {result.answer}")
print(f"Citations: {len(result.citations)}")

Next Steps