Skip to content

Commit 42b3012

Browse files
committed
udpate docs on structure
1 parent 3eebbf8 commit 42b3012

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,16 @@ for user in users:
569569

570570
We invite you to contribute to evals in `pytest` as a way to monitor the quality of the OpenAI models and the `instructor` library. To get started check out the evals for [Anthropic](https://github.com/jxnl/instructor/blob/main/tests/llm/test_anthropic/evals/test_simple.py) and [OpenAI](https://github.com/jxnl/instructor/tree/main/tests/llm/test_openai/evals#how-to-contribute-writing-and-running-evaluation-tests) and contribute your own evals in the form of pytest tests. These evals will be run once a week and the results will be posted.
571571

572+
## Repository Overview
573+
574+
Below is a quick tour of the repository's main directories. See [docs/repository-overview.md](docs/repository-overview.md) for more details.
575+
576+
- **instructor/** – core library code with clients and utilities.
577+
- **cli/** – command-line tools for managing jobs and usage.
578+
- **docs/** – documentation sources for the MkDocs site.
579+
- **examples/** – cookbook examples showcasing Instructor.
580+
- **tests/** – unit tests and evaluation suites.
581+
572582
## Contributing
573583

574584
We welcome contributions to Instructor! Whether you're fixing bugs, adding features, improving documentation, or writing blog posts, your help is appreciated.

docs/repository-overview.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Repository Overview
3+
description: Learn the structure of the Instructor repository and the purpose of each major directory.
4+
---
5+
6+
# Repository Overview
7+
8+
This page explains the layout of the Instructor codebase and what each key directory contains.
9+
10+
## Directory Summary
11+
12+
### `instructor/`
13+
Core library with clients, adapters, and utilities for structured outputs.
14+
15+
### `cli/`
16+
Command-line interface code used for tasks like job management and usage tracking.
17+
18+
### `docs/`
19+
Documentation source files for the website built with MkDocs.
20+
21+
### `examples/`
22+
Practical examples and cookbooks demonstrating how to use Instructor.
23+
24+
### `tests/`
25+
Test suite and evaluation scripts ensuring the library functions correctly.
26+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ nav:
134134
- Installation: 'installation.md'
135135
- Why use Instructor?: 'why.md'
136136
- Architecture: 'architecture.md'
137+
- Repository Overview: 'repository-overview.md'
137138
- Mode Comparison: 'modes-comparison.md'
138139
- Philosophy: 'concepts/philosophy.md'
139140
- API Reference: 'api.md'

0 commit comments

Comments
 (0)