Overview
Initialize a new sift-kg project in the current directory. Creates configuration files to get started with document extraction and knowledge graph building.Usage
Options
Path to custom domain YAML to set in project config. If provided, this domain path will be written to the generated
sift.yaml file.Behavior
Theinit command creates two configuration files:
.env.example- Template for environment variables including API keyssift.yaml- Project configuration file for domain, model, and extraction settings
Output Files
.env.example
Contains template for:SIFT_OPENAI_API_KEY- OpenAI API keySIFT_ANTHROPIC_API_KEY- Anthropic API keySIFT_DEFAULT_MODEL- Default LLM model (e.g.,openai/gpt-4o-mini)
sift.yaml
Contains project settings:domain- Path to domain configuration or bundled domain namemodel- Default LLM modeloutput- Output directory pathextraction- Extraction backend and OCR settings
Examples
Basic initialization
Initialize with custom domain
sift.yaml.
Next Steps
After runninginit, the command displays next steps:
- Copy
.env.exampleto.env:cp .env.example .env - Add your API key to
.env - (Optional) Edit
sift.yamlto configure domain and settings - Run extraction:
sift extract ./docs/