Classify files according to specific rules
Installation
SKILL.md
Texts and Files Classification
Quick start
- Define classification rules:
from llama_cloud.types import ClassifierRule
# Define classification rules (natural language descriptions)
rules = [
ClassifierRule(
type="invoice",
description="Documents that are invoices for goods or services, containing line items, prices, and payment terms",
),
ClassifierRule(
type="contract",
description="Legal agreements between parties, containing terms, conditions, and signatures",
),
Related skills
More from run-llama/vibe-llama
pdf processing
Invoke this skill BEFORE implementing any text extraction/parsing logic to learn how to use LlamaParse to process any document accurately. Requires llama_cloud_services package and LLAMA_CLOUD_API_KEY as an environment variable.
3retrieve relevant information through rag
Leverage Retrieval Augmented Generation to retrieve relevant information from a a LlamaCloud Index. Requires the llama_cloud_services package and LLAMA_CLOUD_API_KEY as an environment variable.
2use llamactl - a cli tool for llamaagents
Use llamactl to initialize, locally preview, deploy and manage LlamaIndex workflows as LlamaAgents. Required llama-index-workflows and llamactl to be installed in the environment.
2