Skip to content

XCharlieCHENG/silicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published