fact_db 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.envrc +2 -0
  3. data/.yardopts +5 -0
  4. data/CHANGELOG.md +64 -0
  5. data/README.md +107 -6
  6. data/Rakefile +243 -10
  7. data/db/migrate/001_enable_extensions.rb +1 -0
  8. data/db/migrate/002_create_sources.rb +49 -0
  9. data/db/migrate/003_create_entities.rb +27 -15
  10. data/db/migrate/004_create_entity_aliases.rb +20 -7
  11. data/db/migrate/005_create_facts.rb +37 -21
  12. data/db/migrate/006_create_entity_mentions.rb +14 -6
  13. data/db/migrate/007_create_fact_sources.rb +16 -8
  14. data/docs/api/extractors/index.md +5 -5
  15. data/docs/api/extractors/llm.md +17 -17
  16. data/docs/api/extractors/rule-based.md +14 -14
  17. data/docs/api/facts.md +20 -20
  18. data/docs/api/index.md +4 -4
  19. data/docs/api/models/entity.md +21 -21
  20. data/docs/api/models/fact.md +15 -15
  21. data/docs/api/models/index.md +7 -7
  22. data/docs/api/models/{content.md → source.md} +29 -29
  23. data/docs/api/pipeline/extraction.md +25 -25
  24. data/docs/api/pipeline/index.md +1 -1
  25. data/docs/api/pipeline/resolution.md +4 -4
  26. data/docs/api/services/entity-service.md +20 -20
  27. data/docs/api/services/fact-service.md +12 -12
  28. data/docs/api/services/index.md +5 -5
  29. data/docs/api/services/{content-service.md → source-service.md} +27 -27
  30. data/docs/architecture/database-schema.md +46 -46
  31. data/docs/architecture/entity-resolution.md +6 -6
  32. data/docs/architecture/index.md +10 -10
  33. data/docs/architecture/temporal-facts.md +5 -5
  34. data/docs/architecture/three-layer-model.md +17 -17
  35. data/docs/concepts.md +6 -6
  36. data/docs/examples/basic-usage.md +20 -20
  37. data/docs/examples/hr-onboarding.md +17 -17
  38. data/docs/examples/index.md +4 -4
  39. data/docs/examples/news-analysis.md +23 -23
  40. data/docs/getting-started/database-setup.md +28 -20
  41. data/docs/getting-started/index.md +3 -3
  42. data/docs/getting-started/quick-start.md +33 -30
  43. data/docs/guides/batch-processing.md +26 -26
  44. data/docs/guides/configuration.md +158 -77
  45. data/docs/guides/entity-management.md +14 -14
  46. data/docs/guides/extracting-facts.md +28 -28
  47. data/docs/guides/ingesting-content.md +14 -14
  48. data/docs/guides/llm-integration.md +40 -32
  49. data/docs/guides/temporal-queries.md +11 -11
  50. data/docs/index.md +6 -2
  51. data/examples/.envrc +4 -0
  52. data/examples/.gitignore +1 -0
  53. data/examples/001_configuration.rb +312 -0
  54. data/examples/{basic_usage.rb → 010_basic_usage.rb} +47 -56
  55. data/examples/{entity_management.rb → 020_entity_management.rb} +57 -72
  56. data/examples/{temporal_queries.rb → 030_temporal_queries.rb} +39 -59
  57. data/examples/040_output_formats.rb +177 -0
  58. data/examples/{rule_based_extraction.rb → 050_rule_based_extraction.rb} +39 -45
  59. data/examples/060_fluent_temporal_api.rb +217 -0
  60. data/examples/070_introspection.rb +252 -0
  61. data/examples/{hr_system.rb → 080_hr_system.rb} +56 -75
  62. data/examples/090_ingest_demo.rb +515 -0
  63. data/examples/100_query_context.rb +668 -0
  64. data/examples/110_prove_it.rb +204 -0
  65. data/examples/120_dump_database.rb +358 -0
  66. data/examples/130_rag_feedback_loop.rb +858 -0
  67. data/examples/README.md +229 -15
  68. data/examples/data/lincoln_associates.md +201 -0
  69. data/examples/data/lincoln_biography.md +66 -0
  70. data/examples/data/lincoln_cabinet.md +243 -0
  71. data/examples/data/lincoln_family.md +163 -0
  72. data/examples/data/lincoln_military.md +241 -0
  73. data/examples/data/lincoln_todd_family.md +136 -0
  74. data/examples/ingest_reporter.rb +335 -0
  75. data/examples/utilities.rb +182 -0
  76. data/lib/fact_db/config/defaults.yml +254 -0
  77. data/lib/fact_db/config.rb +94 -35
  78. data/lib/fact_db/database.rb +98 -8
  79. data/lib/fact_db/extractors/base.rb +106 -21
  80. data/lib/fact_db/extractors/llm_extractor.rb +35 -63
  81. data/lib/fact_db/extractors/manual_extractor.rb +46 -6
  82. data/lib/fact_db/extractors/rule_based_extractor.rb +136 -25
  83. data/lib/fact_db/llm/adapter.rb +3 -3
  84. data/lib/fact_db/models/entity.rb +94 -22
  85. data/lib/fact_db/models/entity_alias.rb +41 -7
  86. data/lib/fact_db/models/entity_mention.rb +34 -1
  87. data/lib/fact_db/models/fact.rb +259 -28
  88. data/lib/fact_db/models/fact_source.rb +43 -9
  89. data/lib/fact_db/models/source.rb +113 -0
  90. data/lib/fact_db/pipeline/extraction_pipeline.rb +35 -35
  91. data/lib/fact_db/pipeline/resolution_pipeline.rb +5 -5
  92. data/lib/fact_db/query_result.rb +202 -0
  93. data/lib/fact_db/resolution/entity_resolver.rb +139 -39
  94. data/lib/fact_db/resolution/fact_resolver.rb +86 -14
  95. data/lib/fact_db/services/entity_service.rb +246 -37
  96. data/lib/fact_db/services/fact_service.rb +254 -17
  97. data/lib/fact_db/services/source_service.rb +164 -0
  98. data/lib/fact_db/temporal/query.rb +71 -7
  99. data/lib/fact_db/temporal/query_builder.rb +69 -0
  100. data/lib/fact_db/temporal/timeline.rb +102 -11
  101. data/lib/fact_db/transformers/base.rb +77 -0
  102. data/lib/fact_db/transformers/cypher_transformer.rb +185 -0
  103. data/lib/fact_db/transformers/json_transformer.rb +17 -0
  104. data/lib/fact_db/transformers/raw_transformer.rb +35 -0
  105. data/lib/fact_db/transformers/text_transformer.rb +114 -0
  106. data/lib/fact_db/transformers/triple_transformer.rb +138 -0
  107. data/lib/fact_db/validation/alias_filter.rb +185 -0
  108. data/lib/fact_db/version.rb +1 -1
  109. data/lib/fact_db.rb +281 -30
  110. data/mkdocs.yml +2 -2
  111. metadata +60 -16
  112. data/db/migrate/002_create_contents.rb +0 -44
  113. data/lib/fact_db/models/content.rb +0 -62
  114. data/lib/fact_db/services/content_service.rb +0 -93
@@ -0,0 +1,243 @@
1
+ # Abraham Lincoln's Cabinet and Administration
2
+
3
+ ## Overview
4
+
5
+ Lincoln's cabinet was notable for including several of his former political rivals, leading historian Doris Kearns Goodwin to title her book about it "Team of Rivals." The cabinet members were described as "more educated, better known, and had more government experience than Lincoln himself." Initially skeptical, they eventually grew to respect his political acumen.
6
+
7
+ ---
8
+
9
+ ## Vice Presidents
10
+
11
+ ### Hannibal Hamlin (1861-1865)
12
+
13
+ | Field | Value |
14
+ |-------|-------|
15
+ | Full Name | Hannibal Hamlin |
16
+ | Term | March 4, 1861 - March 4, 1865 |
17
+ | Home State | Maine |
18
+ | Previous Position | U.S. Senator from Maine |
19
+ | Party | Republican |
20
+
21
+ ### Andrew Johnson (1865)
22
+
23
+ | Field | Value |
24
+ |-------|-------|
25
+ | Full Name | Andrew Johnson |
26
+ | Term | March 4, 1865 - April 15, 1865 |
27
+ | Home State | Tennessee |
28
+ | Previous Position | Military Governor of Tennessee |
29
+ | Party | Democratic (National Union ticket) |
30
+ | Note | Became 17th President upon Lincoln's assassination |
31
+
32
+ ---
33
+
34
+ ## Secretary of State
35
+
36
+ ### William H. Seward (1861-1865)
37
+
38
+ | Field | Value |
39
+ |-------|-------|
40
+ | Full Name | William Henry Seward |
41
+ | Term | March 5, 1861 - March 4, 1869 |
42
+ | Home State | New York |
43
+ | Previous Position | U.S. Senator from New York |
44
+ | 1860 Campaign | Candidate for Republican nomination; disappointed by loss |
45
+ | Notable | Survived assassination attempt same night as Lincoln |
46
+
47
+ Seward was a U.S. Senator from New York and had been deeply disappointed by his failure to win the 1860 Republican presidential nomination. He agreed to serve as Lincoln's Secretary of State and became one of Lincoln's closest advisors.
48
+
49
+ ---
50
+
51
+ ## Secretary of the Treasury
52
+
53
+ ### Salmon P. Chase (1861-1864)
54
+
55
+ | Field | Value |
56
+ |-------|-------|
57
+ | Full Name | Salmon Portland Chase |
58
+ | Term | March 7, 1861 - June 30, 1864 |
59
+ | Home State | Ohio |
60
+ | Previous Position | Governor of Ohio |
61
+ | 1860 Campaign | Candidate for Republican nomination |
62
+ | Resignation | June 1864 (dispute over appointment) |
63
+ | Later Position | Chief Justice of the Supreme Court (1864-1873) |
64
+
65
+ ### William P. Fessenden (1864-1865)
66
+
67
+ | Field | Value |
68
+ |-------|-------|
69
+ | Full Name | William Pitt Fessenden |
70
+ | Term | July 5, 1864 - March 3, 1865 |
71
+ | Home State | Maine |
72
+ | Previous Position | Chairman of Senate Finance Committee |
73
+ | Political Affiliation | Radical Republican |
74
+ | Resignation | February 1865 |
75
+
76
+ ### Hugh McCulloch (1865)
77
+
78
+ | Field | Value |
79
+ |-------|-------|
80
+ | Full Name | Hugh McCulloch |
81
+ | Term | March 9, 1865 - March 3, 1869 |
82
+ | Previous Position | Comptroller of the Currency |
83
+
84
+ ---
85
+
86
+ ## Secretary of War
87
+
88
+ ### Simon Cameron (1861-1862)
89
+
90
+ | Field | Value |
91
+ |-------|-------|
92
+ | Full Name | Simon Cameron |
93
+ | Term | March 5, 1861 - January 14, 1862 |
94
+ | Home State | Pennsylvania |
95
+ | 1860 Campaign | Candidate for Republican nomination |
96
+ | Departure | Replaced due to corruption allegations |
97
+
98
+ ### Edwin M. Stanton (1862-1865)
99
+
100
+ | Field | Value |
101
+ |-------|-------|
102
+ | Full Name | Edwin McMasters Stanton |
103
+ | Term | January 20, 1862 - May 28, 1868 |
104
+ | Home State | Ohio |
105
+ | Previous Position | Attorney General under Buchanan |
106
+ | Political Background | Former Democrat |
107
+ | Legacy | Continued through Civil War and Reconstruction |
108
+
109
+ Stanton was one of Lincoln's most effective cabinet members and managed the War Department through most of the Civil War.
110
+
111
+ ---
112
+
113
+ ## Attorney General
114
+
115
+ ### Edward Bates (1861-1864)
116
+
117
+ | Field | Value |
118
+ |-------|-------|
119
+ | Full Name | Edward Bates |
120
+ | Term | March 5, 1861 - November 24, 1864 |
121
+ | Home State | Missouri |
122
+ | 1860 Campaign | Candidate for Republican nomination |
123
+ | Quote about Lincoln | Called him "very near being a perfect man" |
124
+
125
+ ### James Speed (1864-1865)
126
+
127
+ | Field | Value |
128
+ |-------|-------|
129
+ | Full Name | James Speed |
130
+ | Term | December 2, 1864 - July 17, 1866 |
131
+ | Home State | Kentucky |
132
+
133
+ ---
134
+
135
+ ## Secretary of the Navy
136
+
137
+ ### Gideon Welles (1861-1869)
138
+
139
+ | Field | Value |
140
+ |-------|-------|
141
+ | Full Name | Gideon Welles |
142
+ | Term | March 7, 1861 - March 3, 1869 |
143
+ | Home State | Connecticut |
144
+ | Political Background | Former Democrat |
145
+ | Note | Served entire administration plus Johnson administration |
146
+
147
+ ---
148
+
149
+ ## Postmaster General
150
+
151
+ ### Montgomery Blair (1861-1864)
152
+
153
+ | Field | Value |
154
+ |-------|-------|
155
+ | Full Name | Montgomery Blair |
156
+ | Term | March 9, 1861 - September 23, 1864 |
157
+ | Home State | Maryland |
158
+ | Political Background | Former Democrat |
159
+ | Family | Son of Francis Preston Blair (founder of Republican Party) |
160
+
161
+ ### William Dennison (1864-1865)
162
+
163
+ | Field | Value |
164
+ |-------|-------|
165
+ | Full Name | William Dennison Jr. |
166
+ | Term | October 1, 1864 - July 16, 1866 |
167
+ | Home State | Ohio |
168
+ | Previous Position | Governor of Ohio |
169
+
170
+ ---
171
+
172
+ ## Secretary of the Interior
173
+
174
+ ### Caleb B. Smith (1861-1863)
175
+
176
+ | Field | Value |
177
+ |-------|-------|
178
+ | Full Name | Caleb Blood Smith |
179
+ | Term | March 5, 1861 - December 31, 1862 |
180
+ | Home State | Indiana |
181
+
182
+ ### John P. Usher (1863-1865)
183
+
184
+ | Field | Value |
185
+ |-------|-------|
186
+ | Full Name | John Palmer Usher |
187
+ | Term | January 8, 1863 - May 15, 1865 |
188
+ | Home State | Indiana |
189
+
190
+ ### James Harlan (1865)
191
+
192
+ | Field | Value |
193
+ |-------|-------|
194
+ | Full Name | James Harlan |
195
+ | Term | May 15, 1865 - August 31, 1866 |
196
+ | Home State | Iowa |
197
+ | Note | Father-in-law of Robert Todd Lincoln |
198
+
199
+ ---
200
+
201
+ ## Cabinet Summary
202
+
203
+ | Position | Total Occupants | Names |
204
+ |----------|-----------------|-------|
205
+ | Vice President | 2 | Hamlin, Johnson |
206
+ | Secretary of State | 1 | Seward |
207
+ | Secretary of Treasury | 3 | Chase, Fessenden, McCulloch |
208
+ | Secretary of War | 2 | Cameron, Stanton |
209
+ | Attorney General | 2 | Bates, Speed |
210
+ | Secretary of Navy | 1 | Welles |
211
+ | Postmaster General | 2 | Blair, Dennison |
212
+ | Secretary of Interior | 3 | Smith, Usher, Harlan |
213
+
214
+ **Total cabinet members during Lincoln's presidency: 13 men**
215
+
216
+ ---
217
+
218
+ ## Notable Cabinet Characteristics
219
+
220
+ ### "Team of Rivals"
221
+ Four cabinet members had run against Lincoln for the 1860 Republican nomination:
222
+ - William H. Seward (Secretary of State)
223
+ - Salmon P. Chase (Secretary of Treasury)
224
+ - Simon Cameron (Secretary of War)
225
+ - Edward Bates (Attorney General)
226
+
227
+ ### Former Democrats
228
+ Several cabinet members were former Democrats who had joined the Republican Party:
229
+ - Gideon Welles
230
+ - Montgomery Blair
231
+ - Edwin Stanton
232
+
233
+ ### Cabinet Working Environment
234
+ Lincoln's Second Floor White House office functioned as both workspace and cabinet room. The setting was utilitarian with worn furniture, maps covering walls, and a large wooden table. Cabinet meetings were held twice weekly and combined serious deliberations with camaraderie and laughter.
235
+
236
+ ### Leadership Style
237
+ Lincoln maintained open access for his secretaries and relied heavily on their counsel while reserving final decisions for himself.
238
+
239
+ ## Sources
240
+
241
+ - White House Historical Association
242
+ - Miller Center, University of Virginia
243
+ - Library of Congress
@@ -0,0 +1,163 @@
1
+ # Abraham Lincoln - Family
2
+
3
+ ## Parents
4
+
5
+ ### Father: Thomas Lincoln
6
+
7
+ | Field | Value |
8
+ |-------|-------|
9
+ | Full Name | Thomas Lincoln |
10
+ | Birth Year | 1776 or 1778 |
11
+ | Birth Place | Virginia |
12
+ | Death Year | 1851 |
13
+ | Occupation | Farmer, Carpenter |
14
+ | Character | Strong and determined pioneer; well-respected in community |
15
+ | Parents | Abraham Lincoln Sr. (grandfather) and Bathsheba Lincoln |
16
+
17
+ Thomas Lincoln was the youngest son of Abraham Lincoln (for whom the 16th President was named). He moved to Kentucky after the Revolutionary War where land was available to veterans. He was described as a strong and determined pioneer who achieved a moderate level of prosperity.
18
+
19
+ ### Mother: Nancy Hanks Lincoln
20
+
21
+ | Field | Value |
22
+ |-------|-------|
23
+ | Full Name | Nancy Hanks Lincoln |
24
+ | Birth Year | 1784 |
25
+ | Birth Place | Virginia |
26
+ | Death Date | October 5, 1818 |
27
+ | Cause of Death | Milk sickness (contaminated milk from cows that ate white snakeroot) |
28
+ | Age at Death | Approximately 34 |
29
+ | Literacy | Most likely illiterate |
30
+
31
+ Nancy died when Abraham was only 9 years old, leaving him and his 11-year-old sister Sarah.
32
+
33
+ ### Stepmother: Sarah Bush Johnston Lincoln
34
+
35
+ | Field | Value |
36
+ |-------|-------|
37
+ | Full Name | Sarah Bush Johnston Lincoln |
38
+ | Marriage to Thomas | December 2, 1819 (Elizabethtown, Kentucky) |
39
+ | Previous Status | Widow |
40
+ | Character | Strong, affectionate woman |
41
+ | Contribution | Encouraged Lincoln to read despite his father's illiteracy |
42
+
43
+ Sarah formed a close bond with young Abraham and encouraged his education and reading.
44
+
45
+ ---
46
+
47
+ ## Siblings
48
+
49
+ ### Sarah Lincoln Grigsby (Sister)
50
+
51
+ | Field | Value |
52
+ |-------|-------|
53
+ | Full Name | Sarah Lincoln Grigsby |
54
+ | Birth Year | circa 1807 |
55
+ | Relationship | Older sister |
56
+ | Death | Died in childbirth |
57
+
58
+ ### Thomas Lincoln Jr. (Brother)
59
+
60
+ | Field | Value |
61
+ |-------|-------|
62
+ | Full Name | Thomas Lincoln Jr. |
63
+ | Status | Died in infancy |
64
+ | Relationship | Younger brother |
65
+
66
+ ---
67
+
68
+ ## Wife: Mary Ann Todd Lincoln
69
+
70
+ | Field | Value |
71
+ |-------|-------|
72
+ | Full Name | Mary Ann Todd Lincoln |
73
+ | Birth Date | December 13, 1818 |
74
+ | Birth Place | Lexington, Kentucky |
75
+ | Death Date | July 16, 1882 |
76
+ | Marriage Date | November 4, 1842 |
77
+ | Marriage Place | Springfield, Illinois |
78
+ | Meeting Place | Springfield, Illinois (at sister Elizabeth Edwards' home) |
79
+ | Father | Robert Smith Todd |
80
+ | Mother | Eliza Ann Parker Todd |
81
+ | Siblings Position | Fourth of seven children |
82
+ | Burial Place | Lincoln vault (with Abraham, Eddie, Willie, and Tad) |
83
+
84
+ Mary moved to Springfield in 1839 to live with her sister Elizabeth Edwards. There she met Illinois House Representative Abraham Lincoln.
85
+
86
+ ---
87
+
88
+ ## Children
89
+
90
+ ### 1. Robert Todd Lincoln
91
+
92
+ | Field | Value |
93
+ |-------|-------|
94
+ | Full Name | Robert Todd Lincoln |
95
+ | Birth Date | August 1, 1843 |
96
+ | Birth Place | Springfield, Illinois |
97
+ | Death Date | July 26, 1926 |
98
+ | Death Place | Manchester, Vermont |
99
+ | Age at Death | 82 years |
100
+ | Burial Place | Arlington National Cemetery |
101
+ | Survival | Only child to live to adulthood |
102
+ | Career | Lawyer, Diplomat, U.S. Secretary of War, Businessman |
103
+ | Marriage | Mary Eunice Harlan |
104
+ | Children | Abraham Lincoln II ("Jack"), Mary Lincoln, Jessie Lincoln |
105
+
106
+ Robert was the only Lincoln child to survive past age 18. He served as U.S. Secretary of War under Presidents Garfield and Arthur, and as U.S. Minister to the United Kingdom under President Harrison.
107
+
108
+ ### 2. Edward Baker Lincoln ("Eddie")
109
+
110
+ | Field | Value |
111
+ |-------|-------|
112
+ | Full Name | Edward Baker Lincoln |
113
+ | Nickname | Eddie |
114
+ | Birth Date | March 10, 1846 |
115
+ | Death Date | February 1, 1850 |
116
+ | Age at Death | 3 years, 10 months |
117
+ | Cause of Death | Probably tuberculosis |
118
+ | Named After | Edward Dickinson Baker (family friend) |
119
+
120
+ ### 3. William Wallace Lincoln ("Willie")
121
+
122
+ | Field | Value |
123
+ |-------|-------|
124
+ | Full Name | William Wallace Lincoln |
125
+ | Nickname | Willie |
126
+ | Birth Date | December 21, 1850 |
127
+ | Birth Place | Springfield, Illinois |
128
+ | Death Date | February 20, 1862 |
129
+ | Death Place | White House, Washington, D.C. |
130
+ | Age at Death | 11 years |
131
+ | Cause of Death | Typhoid fever (likely from contaminated Potomac River water) |
132
+
133
+ Willie's death in the White House was devastating to both Abraham and Mary Lincoln.
134
+
135
+ ### 4. Thomas Lincoln ("Tad")
136
+
137
+ | Field | Value |
138
+ |-------|-------|
139
+ | Full Name | Thomas Lincoln |
140
+ | Nickname | Tad (father called him this because he wiggled like a tadpole as infant) |
141
+ | Birth Date | April 4, 1853 |
142
+ | Death Date | July 15, 1871 |
143
+ | Age at Death | 18 years |
144
+ | Health | Had a cleft palate and lisp |
145
+ | Note | Outlived his father |
146
+
147
+ Tad died shortly after returning from Europe with his mother Mary.
148
+
149
+ ---
150
+
151
+ ## Lincoln Family Statistics
152
+
153
+ - **Children Born**: 4
154
+ - **Children Survived to Adulthood**: 1 (Robert)
155
+ - **Children Died in Childhood**: 3 (Eddie, Willie, Tad)
156
+ - **Years of Marriage**: 22.5 years (1842-1865)
157
+
158
+ ## Sources
159
+
160
+ - White House Historical Association
161
+ - Mary Todd Lincoln House
162
+ - Abraham Lincoln Historical Society
163
+ - Library of Congress
@@ -0,0 +1,241 @@
1
+ # Abraham Lincoln and Military Leadership
2
+
3
+ ## Lincoln as Commander-in-Chief
4
+
5
+ Abraham Lincoln served as Commander-in-Chief of the Union armed forces throughout the Civil War (1861-1865). Historian James M. McPherson noted that "Even after Ulysses S. Grant became general-in-chief in March 1864, Lincoln maintained a significant degree of strategic oversight."
6
+
7
+ Lincoln was described as "a hands-on commander in chief who persisted through a terrible ordeal of defeats and disappointments to final triumph."
8
+
9
+ ---
10
+
11
+ ## Generals-in-Chief of the Union Army
12
+
13
+ The position of Commanding General changed four times during the war:
14
+
15
+ ### 1. Winfield Scott (to November 1, 1861)
16
+
17
+ | Field | Value |
18
+ |-------|-------|
19
+ | Full Name | Winfield Scott |
20
+ | Nickname | "Old Fuss and Feathers" |
21
+ | Rank | Brevet Lieutenant General |
22
+ | Term as General-in-Chief | Incumbent on January 1, 1861 - November 1, 1861 |
23
+ | Age at Start of War | 74 years |
24
+ | Previous Service | War of 1812, Mexican-American War |
25
+ | Strategy | Developed "Anaconda Plan" |
26
+ | Departure | Retired due to age and health |
27
+
28
+ ### 2. George B. McClellan (November 1, 1861 - March 11, 1862)
29
+
30
+ | Field | Value |
31
+ |-------|-------|
32
+ | Full Name | George Brinton McClellan |
33
+ | Nickname | "Young Napoleon," "Little Mac" |
34
+ | Rank | Major General |
35
+ | Term as General-in-Chief | November 1, 1861 - March 11, 1862 |
36
+ | Age | 35 at appointment |
37
+ | Previous Position | Commander of Department of the Ohio |
38
+ | Removal Reason | Reluctance to take offensive action |
39
+ | Relationship with Lincoln | Mutual distrust; McClellan privately derisive of Lincoln |
40
+ | Later | Democratic nominee for President in 1864 |
41
+
42
+ McClellan was the most popular commander of the Army of the Potomac. However, Lincoln lost confidence in him due to his reluctance to engage the enemy. After failing to pursue Confederate forces following the Battle of Antietam, Lincoln removed him from command.
43
+
44
+ ### 3. Henry W. Halleck (July 11, 1862 - March 9, 1864)
45
+
46
+ | Field | Value |
47
+ |-------|-------|
48
+ | Full Name | Henry Wager Halleck |
49
+ | Nickname | "Old Brains" |
50
+ | Rank | Major General |
51
+ | Term as General-in-Chief | July 11, 1862 - March 9, 1864 |
52
+ | Previous Position | Commander of Department of the Missouri |
53
+ | Role | Served more as administrator and advisor |
54
+ | Later Position | Chief of Staff (after Grant's promotion) |
55
+
56
+ ### 4. Ulysses S. Grant (March 9, 1864 - 1869)
57
+
58
+ | Field | Value |
59
+ |-------|-------|
60
+ | Full Name | Ulysses Simpson Grant |
61
+ | Nickname | "Unconditional Surrender Grant" |
62
+ | Rank | Lieutenant General (rank revived for him) |
63
+ | Term as General-in-Chief | March 9, 1864 - 1869 |
64
+ | Age at Appointment | 41 |
65
+ | Previous Position | Commander of Military Division of the Mississippi |
66
+ | Key Quality | Understanding of civil-military relations |
67
+ | Lincoln's Trust | "Validated the most important personnel decision of Lincoln's presidency" |
68
+ | Later Career | 18th President of the United States (1869-1877) |
69
+
70
+ The grade of Lieutenant General was revived in February 1864 specifically to allow Lincoln to promote Grant to supreme command. Unlike McClellan, Grant dutifully carried out all administration policies and understood both his mission and his relationship to civilian authority.
71
+
72
+ ---
73
+
74
+ ## Commanders of the Army of the Potomac
75
+
76
+ The Army of the Potomac was the principal Union army in the Eastern Theater:
77
+
78
+ ### 1. Irvin McDowell (May 27, 1861 - July 25, 1861)
79
+
80
+ | Field | Value |
81
+ |-------|-------|
82
+ | Full Name | Irvin McDowell |
83
+ | Rank | Brigadier General |
84
+ | Notable Battle | First Battle of Bull Run (defeat) |
85
+ | Removal | After Bull Run defeat |
86
+
87
+ ### 2. George B. McClellan (July 26, 1861 - November 9, 1862)
88
+
89
+ | Field | Value |
90
+ |-------|-------|
91
+ | Full Name | George Brinton McClellan |
92
+ | First Term | July 26, 1861 - November 9, 1862 |
93
+ | Notable Campaigns | Peninsula Campaign, Antietam |
94
+ | Removal | Failed to pursue Lee after Antietam |
95
+
96
+ ### 3. Ambrose E. Burnside (November 9, 1862 - January 26, 1863)
97
+
98
+ | Field | Value |
99
+ |-------|-------|
100
+ | Full Name | Ambrose Everett Burnside |
101
+ | Rank | Major General |
102
+ | Notable Battle | Fredericksburg (defeat) |
103
+ | Facial Hair | Famous for "sideburns" (named after him) |
104
+ | Removal | After Fredericksburg disaster |
105
+
106
+ ### 4. Joseph Hooker (January 26, 1863 - June 28, 1863)
107
+
108
+ | Field | Value |
109
+ |-------|-------|
110
+ | Full Name | Joseph Hooker |
111
+ | Nickname | "Fighting Joe" |
112
+ | Rank | Major General |
113
+ | Notable Battle | Chancellorsville (defeat) |
114
+ | Removal | Before Gettysburg campaign |
115
+
116
+ ### 5. George G. Meade (June 28, 1863 - June 28, 1865)
117
+
118
+ | Field | Value |
119
+ |-------|-------|
120
+ | Full Name | George Gordon Meade |
121
+ | Rank | Major General |
122
+ | Notable Victory | Battle of Gettysburg |
123
+ | Tenure | Commanded through end of war |
124
+ | Relationship with Grant | Grant accompanied Army of Potomac; Meade retained tactical command |
125
+
126
+ ---
127
+
128
+ ## Other Key Union Generals
129
+
130
+ ### William Tecumseh Sherman
131
+
132
+ | Field | Value |
133
+ |-------|-------|
134
+ | Full Name | William Tecumseh Sherman |
135
+ | Rank | Major General |
136
+ | Command | Military Division of the Mississippi (under Grant) |
137
+ | Notable Campaign | March to the Sea (1864) |
138
+ | Strategy | "Total war" approach |
139
+
140
+ ### Philip Sheridan
141
+
142
+ | Field | Value |
143
+ |-------|-------|
144
+ | Full Name | Philip Henry Sheridan |
145
+ | Nickname | "Little Phil" |
146
+ | Rank | Major General |
147
+ | Command | Army of the Shenandoah |
148
+ | Notable Campaign | Shenandoah Valley Campaign (1864) |
149
+
150
+ ### George Henry Thomas
151
+
152
+ | Field | Value |
153
+ |-------|-------|
154
+ | Full Name | George Henry Thomas |
155
+ | Nickname | "Rock of Chickamauga" |
156
+ | Rank | Major General |
157
+ | Notable Battles | Chickamauga, Nashville |
158
+ | Background | Virginia-born but remained loyal to Union |
159
+
160
+ ---
161
+
162
+ ## Confederate Commanders (Adversaries)
163
+
164
+ ### Robert E. Lee
165
+
166
+ | Field | Value |
167
+ |-------|-------|
168
+ | Full Name | Robert Edward Lee |
169
+ | Rank | General (full) |
170
+ | Command | Army of Northern Virginia |
171
+ | Surrender | April 9, 1865 at Appomattox Court House |
172
+
173
+ ### Thomas "Stonewall" Jackson
174
+
175
+ | Field | Value |
176
+ |-------|-------|
177
+ | Full Name | Thomas Jonathan Jackson |
178
+ | Nickname | "Stonewall" |
179
+ | Rank | Lieutenant General |
180
+ | Death | May 10, 1863 (friendly fire after Chancellorsville) |
181
+
182
+ ### Jefferson Davis
183
+
184
+ | Field | Value |
185
+ |-------|-------|
186
+ | Full Name | Jefferson Finis Davis |
187
+ | Position | President of the Confederate States |
188
+ | Military Background | U.S. Secretary of War (1853-1857) |
189
+
190
+ ---
191
+
192
+ ## Lincoln's Early Military Experience
193
+
194
+ ### Black Hawk War (1832)
195
+
196
+ | Field | Value |
197
+ |-------|-------|
198
+ | Conflict | Black Hawk War |
199
+ | Year | 1832 |
200
+ | Rank | Captain (elected by his company) |
201
+ | Service | Illinois militia |
202
+ | Combat | Did not see combat |
203
+ | Significance | First leadership experience |
204
+
205
+ Lincoln was elected captain of his militia company, which he later called a source of "deep satisfaction." Though he did not see combat, the experience gave him his first taste of leadership.
206
+
207
+ ---
208
+
209
+ ## Military Statistics
210
+
211
+ ### Union Armed Forces (1865)
212
+
213
+ | Category | Approximate Number |
214
+ |----------|-------------------|
215
+ | Union Army Personnel | 1,000,000+ at peak |
216
+ | Union Navy Personnel | 58,000+ |
217
+ | Total Union Deaths | 360,000+ |
218
+ | Total Confederate Deaths | 260,000+ |
219
+
220
+ ### General Officers
221
+
222
+ - Over 500 general officers served in the Union Army during the Civil War
223
+ - Lincoln directly appointed or promoted many of these generals
224
+
225
+ ---
226
+
227
+ ## Key Military Decisions by Lincoln
228
+
229
+ 1. **Called for 75,000 volunteers** (April 1861) after Fort Sumter
230
+ 2. **Naval blockade** of Southern ports
231
+ 3. **Removal of McClellan** (twice)
232
+ 4. **Emancipation Proclamation** - allowed African Americans to serve
233
+ 5. **Promotion of Grant** to Lieutenant General and General-in-Chief
234
+ 6. **Support for "total war"** strategy in 1864
235
+
236
+ ## Sources
237
+
238
+ - Mr. Lincoln's White House
239
+ - Library of Congress
240
+ - American Battlefield Trust
241
+ - Miller Center, University of Virginia