Quick Start
Get up and running with Functor SDK in 5 minutes. This guide will walk you through your first query and basic operations.
Step 1: Install the SDK
If you haven't already, install the Functor SDK:
Step 2: Get Your API Key
You'll need an API key to authenticate. Set it as an environment variable:
Step 3: Execute Your First Query
Create a simple script to execute a query:
first_query.py
Run the script:
Step 4: Upload Some Data
Upload a document from a URL to build your knowledge graph:
upload_data.py
Step 5: List Your Knowledge Graphs
See what knowledge graphs are available:
list_kgs.py
Step 6: Manage Sources
View and manage the sources in your knowledge graphs:
manage_sources.py
Complete Example
Here's a complete example that puts it all together:
complete_example.py
Async Version
For async applications, use the async methods:
async_example.py
Error Handling
Always handle errors appropriately in production code:
Next Steps
Now that you've completed the quick start, explore more features:
- Query Operations - Advanced query features
- Data Ingestion - File uploads and batch processing
- Source Management - Complete CRUD operations
- Async vs Sync - Choose the right pattern
- Error Handling - Comprehensive error management