For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending
This integration is ideal for data scientists and engineers who work with Polars DataFrames and need to enrich data with web intelligence directly in their Python workflows.
Parallel provides a native Polars integration that enables DataFrame-native data enrichment with batch processing for efficiency.
.md to its URL or sending Accept: text/markdown.Features
- DataFrame-Native: Enriched columns added directly to your Polars DataFrame
- Batch Processing: All rows processed in a single API call for efficiency
- LazyFrame Support: Works with both eager and lazy DataFrames
- Partial Results: Failed rows return
Nonewithout stopping the entire batch
Installation
Basic Usage
Function Parameters
Return Value
The function returns anEnrichmentResult dataclass:
Column Name Mapping
Output column descriptions are automatically converted to valid Python identifiers. Field names are converted to snake_case:LazyFrame Support
Useparallel_enrich_lazy() to work with LazyFrames:
Including Citations
Processor Selection
Choose a processor based on your speed vs thoroughness requirements. See Choose a Processor for detailed guidance and Pricing for cost information.Best Practices
Use specific descriptions
Use specific descriptions
Be specific in your output column descriptions for better results:
Handle errors gracefully
Handle errors gracefully
Errors don’t stop processing - partial results are returned:
Batch large datasets
Batch large datasets
For very large datasets (1000+ rows), consider processing in batches:
Cost management
Cost management
- Use
lite-fastfor high-volume, basic enrichments - Test with small batches before processing large DataFrames
- Store results to avoid re-enriching the same data