Skip to content

expectedparrot/silicon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SILICON Workflow for LLM Annotation

Code for running LLM annotation tasks and conducting analyses.

Reference: Xiang Cheng, Raveesh Mayya, and João Sedoc: “To Err Is Human; To Annotate, SILICON? Reducing Measurement Error in LLM Annotation.” arXiv preprint: link.

Install

pip install -r requirements.txt

Configure API keys (set any you plan to use)

export OPENAI_API_KEY=...      # OpenAI (GPT/o3)
export DEEPSEEK_API_KEY=...    # DeepSeek via OpenAI client (optional)
export GEMINI_API_KEY=...      # Google Gemini
export ANTHROPIC_API_KEY=...   # Claude

Run

From inside the silicon_demo folder:

python run_llm.py

Alternatively, you can run the script using run_llm.ipynb.

About

Demonstration of how to use EDSL for data labeling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 55.3%
  • Jupyter Notebook 28.3%
  • R 16.2%
  • Shell 0.2%