ai-gen1 0.1.0__tar.gz

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 (167) hide show
  1. ai_gen1-0.1.0/.firebase/hosting.d2Vic2l0ZVxkaXN0.cache +100 -0
  2. ai_gen1-0.1.0/.firebaserc +5 -0
  3. ai_gen1-0.1.0/.gitignore +126 -0
  4. ai_gen1-0.1.0/CODE_OF_CONDUCT.md +37 -0
  5. ai_gen1-0.1.0/LICENSE +190 -0
  6. ai_gen1-0.1.0/PKG-INFO +190 -0
  7. ai_gen1-0.1.0/README.md +148 -0
  8. ai_gen1-0.1.0/SECURITY.md +32 -0
  9. ai_gen1-0.1.0/benchmarks/benchmark_sec_60_vs_jev.py +252 -0
  10. ai_gen1-0.1.0/benchmarks/benchmark_vs_json.py +111 -0
  11. ai_gen1-0.1.0/benchmarks/benchmark_wos_50_vs_jev.py +263 -0
  12. ai_gen1-0.1.0/benchmarks/benchmark_wos_dataset.py +92 -0
  13. ai_gen1-0.1.0/benchmarks/compare_llm_speed.py +287 -0
  14. ai_gen1-0.1.0/benchmarks/generate_benchmark_charts.py +230 -0
  15. ai_gen1-0.1.0/benchmarks/results_1660_super.json +56 -0
  16. ai_gen1-0.1.0/benchmarks/results_sec_60_ai_sys1.json +1036 -0
  17. ai_gen1-0.1.0/benchmarks/results_sec_60_gen1.json +1036 -0
  18. ai_gen1-0.1.0/benchmarks/results_wos_50_ai_sys1.json +918 -0
  19. ai_gen1-0.1.0/benchmarks/results_wos_50_gen1.json +918 -0
  20. ai_gen1-0.1.0/benchmarks/run_benchmark_1660_super.py +135 -0
  21. ai_gen1-0.1.0/cookbooks/01_classification_confidence.py +63 -0
  22. ai_gen1-0.1.0/cookbooks/02_hierarchical_classification.py +74 -0
  23. ai_gen1-0.1.0/cookbooks/03_llm_guardrails.py +52 -0
  24. ai_gen1-0.1.0/cookbooks/04_rag_passage_classification.py +54 -0
  25. ai_gen1-0.1.0/cookbooks/05_semantic_rerank.py +57 -0
  26. ai_gen1-0.1.0/cookbooks/06_function_calling_router.py +52 -0
  27. ai_gen1-0.1.0/cookbooks/07_citation_fact_check.py +54 -0
  28. ai_gen1-0.1.0/cookbooks/08_entity_alignment.py +52 -0
  29. ai_gen1-0.1.0/cookbooks/09_sde_cascade.py +51 -0
  30. ai_gen1-0.1.0/cookbooks/10_semantic_find.py +50 -0
  31. ai_gen1-0.1.0/cookbooks/11_parallel_questions.py +67 -0
  32. ai_gen1-0.1.0/cookbooks/run_all_cookbooks.py +193 -0
  33. ai_gen1-0.1.0/docs/assets/benchmark_accuracy_agreement.png +0 -0
  34. ai_gen1-0.1.0/docs/assets/benchmark_accuracy_agreement.svg +2668 -0
  35. ai_gen1-0.1.0/docs/assets/benchmark_latency_tokens.png +0 -0
  36. ai_gen1-0.1.0/docs/assets/benchmark_latency_tokens.svg +3280 -0
  37. ai_gen1-0.1.0/docs/assets/benchmark_throughput_decisions.png +0 -0
  38. ai_gen1-0.1.0/docs/assets/benchmark_throughput_decisions.svg +1791 -0
  39. ai_gen1-0.1.0/docs/assets/logo-dark.svg +12 -0
  40. ai_gen1-0.1.0/docs/assets/logo-light.svg +12 -0
  41. ai_gen1-0.1.0/examples/01_fastapi_router.py +70 -0
  42. ai_gen1-0.1.0/examples/02_guardrail_gate.py +66 -0
  43. ai_gen1-0.1.0/examples/03_pydantic_branch.py +108 -0
  44. ai_gen1-0.1.0/examples/mac_gemma_demo.py +91 -0
  45. ai_gen1-0.1.0/firebase.json +31 -0
  46. ai_gen1-0.1.0/gen1/__init__.py +81 -0
  47. ai_gen1-0.1.0/gen1/backends/__init__.py +16 -0
  48. ai_gen1-0.1.0/gen1/backends/base.py +41 -0
  49. ai_gen1-0.1.0/gen1/backends/hf.py +147 -0
  50. ai_gen1-0.1.0/gen1/backends/llama_server.py +124 -0
  51. ai_gen1-0.1.0/gen1/backends/lmstudio.py +180 -0
  52. ai_gen1-0.1.0/gen1/backends/vllm.py +124 -0
  53. ai_gen1-0.1.0/gen1/core.py +224 -0
  54. ai_gen1-0.1.0/gen1/py.typed +1 -0
  55. ai_gen1-0.1.0/gen1/templates.py +54 -0
  56. ai_gen1-0.1.0/gen1/token_guard.py +122 -0
  57. ai_gen1-0.1.0/gen1/types.py +102 -0
  58. ai_gen1-0.1.0/gen1/typesafe.py +695 -0
  59. ai_gen1-0.1.0/llms.txt +102 -0
  60. ai_gen1-0.1.0/packages/sdk-js/README.md +120 -0
  61. ai_gen1-0.1.0/packages/sdk-js/examples/gen1_native.mjs +39 -0
  62. ai_gen1-0.1.0/packages/sdk-js/examples/sys1_native.mjs +39 -0
  63. ai_gen1-0.1.0/packages/sdk-js/examples/typesafe_dropin.mjs +70 -0
  64. ai_gen1-0.1.0/packages/sdk-js/package.json +46 -0
  65. ai_gen1-0.1.0/packages/sdk-js/test/test_local.mjs +111 -0
  66. ai_gen1-0.1.0/pyproject.toml +82 -0
  67. ai_gen1-0.1.0/scratch_logo.png +0 -0
  68. ai_gen1-0.1.0/sys1/__init__.py +92 -0
  69. ai_gen1-0.1.0/sys1/backends/__init__.py +2 -0
  70. ai_gen1-0.1.0/sys1/backends/base.py +2 -0
  71. ai_gen1-0.1.0/sys1/backends/hf.py +2 -0
  72. ai_gen1-0.1.0/sys1/backends/llama_server.py +2 -0
  73. ai_gen1-0.1.0/sys1/backends/lmstudio.py +2 -0
  74. ai_gen1-0.1.0/sys1/backends/vllm.py +2 -0
  75. ai_gen1-0.1.0/sys1/core.py +2 -0
  76. ai_gen1-0.1.0/sys1/templates.py +2 -0
  77. ai_gen1-0.1.0/sys1/token_guard.py +2 -0
  78. ai_gen1-0.1.0/sys1/types.py +2 -0
  79. ai_gen1-0.1.0/sys1/typesafe.py +2 -0
  80. ai_gen1-0.1.0/tests/test_hf_engine.py +82 -0
  81. ai_gen1-0.1.0/tests/test_token_guard.py +68 -0
  82. ai_gen1-0.1.0/tests/test_typesafe_dropin.py +316 -0
  83. ai_gen1-0.1.0/tests/test_typing.py +74 -0
  84. ai_gen1-0.1.0/tests/test_website_routes.py +37 -0
  85. ai_gen1-0.1.0/typesafe_sdk.py +62 -0
  86. ai_gen1-0.1.0/website/.astro/collections/docs.schema.json +644 -0
  87. ai_gen1-0.1.0/website/.astro/content-assets.mjs +4 -0
  88. ai_gen1-0.1.0/website/.astro/content-modules.mjs +1 -0
  89. ai_gen1-0.1.0/website/.astro/content.d.ts +179 -0
  90. ai_gen1-0.1.0/website/.astro/data-store.json +1 -0
  91. ai_gen1-0.1.0/website/.astro/dev.json +22 -0
  92. ai_gen1-0.1.0/website/.astro/settings.json +5 -0
  93. ai_gen1-0.1.0/website/.astro/types.d.ts +2 -0
  94. ai_gen1-0.1.0/website/.gitignore +21 -0
  95. ai_gen1-0.1.0/website/.vscode/extensions.json +4 -0
  96. ai_gen1-0.1.0/website/.vscode/launch.json +11 -0
  97. ai_gen1-0.1.0/website/AGENTS.md +22 -0
  98. ai_gen1-0.1.0/website/CLAUDE.md +1 -0
  99. ai_gen1-0.1.0/website/README.md +49 -0
  100. ai_gen1-0.1.0/website/assets/benchmark_accuracy_agreement.png +0 -0
  101. ai_gen1-0.1.0/website/assets/benchmark_accuracy_agreement.svg +2668 -0
  102. ai_gen1-0.1.0/website/assets/benchmark_latency_tokens.png +0 -0
  103. ai_gen1-0.1.0/website/assets/benchmark_latency_tokens.svg +3280 -0
  104. ai_gen1-0.1.0/website/assets/benchmark_throughput_decisions.png +0 -0
  105. ai_gen1-0.1.0/website/assets/benchmark_throughput_decisions.svg +1791 -0
  106. ai_gen1-0.1.0/website/assets/logo-dark.svg +12 -0
  107. ai_gen1-0.1.0/website/assets/logo-light.svg +12 -0
  108. ai_gen1-0.1.0/website/assets/mark-dark.svg +21 -0
  109. ai_gen1-0.1.0/website/assets/mark-light.svg +16 -0
  110. ai_gen1-0.1.0/website/astro.config.mjs +63 -0
  111. ai_gen1-0.1.0/website/err.html +1 -0
  112. ai_gen1-0.1.0/website/package-lock.json +5453 -0
  113. ai_gen1-0.1.0/website/package.json +21 -0
  114. ai_gen1-0.1.0/website/public/assets/benchmark_accuracy_agreement.png +0 -0
  115. ai_gen1-0.1.0/website/public/assets/benchmark_accuracy_agreement.svg +2668 -0
  116. ai_gen1-0.1.0/website/public/assets/benchmark_latency_tokens.png +0 -0
  117. ai_gen1-0.1.0/website/public/assets/benchmark_latency_tokens.svg +3280 -0
  118. ai_gen1-0.1.0/website/public/assets/benchmark_throughput_decisions.png +0 -0
  119. ai_gen1-0.1.0/website/public/assets/benchmark_throughput_decisions.svg +1791 -0
  120. ai_gen1-0.1.0/website/public/assets/logo-dark.svg +12 -0
  121. ai_gen1-0.1.0/website/public/assets/logo-light.svg +12 -0
  122. ai_gen1-0.1.0/website/public/favicon.ico +0 -0
  123. ai_gen1-0.1.0/website/public/favicon.svg +12 -0
  124. ai_gen1-0.1.0/website/public/llms.txt +102 -0
  125. ai_gen1-0.1.0/website/src/components/Benchmarks.astro +314 -0
  126. ai_gen1-0.1.0/website/src/components/CtaBanner.astro +126 -0
  127. ai_gen1-0.1.0/website/src/components/DocHeader.astro +259 -0
  128. ai_gen1-0.1.0/website/src/components/Footer.astro +169 -0
  129. ai_gen1-0.1.0/website/src/components/HardwareTrace.astro +222 -0
  130. ai_gen1-0.1.0/website/src/components/Hero.astro +245 -0
  131. ai_gen1-0.1.0/website/src/components/InteractiveDemos.astro +517 -0
  132. ai_gen1-0.1.0/website/src/components/Navbar.astro +210 -0
  133. ai_gen1-0.1.0/website/src/components/ProblemSolution.astro +417 -0
  134. ai_gen1-0.1.0/website/src/components/System1VsLlm.astro +467 -0
  135. ai_gen1-0.1.0/website/src/content/docs/concepts/confidence.md +81 -0
  136. ai_gen1-0.1.0/website/src/content/docs/concepts/outcome-engine.md +50 -0
  137. ai_gen1-0.1.0/website/src/content/docs/concepts/state.md +92 -0
  138. ai_gen1-0.1.0/website/src/content/docs/concepts/system-one.md +66 -0
  139. ai_gen1-0.1.0/website/src/content/docs/cookbooks/citation-fact-check.md +71 -0
  140. ai_gen1-0.1.0/website/src/content/docs/cookbooks/confidence-calibration.md +99 -0
  141. ai_gen1-0.1.0/website/src/content/docs/cookbooks/entity-alignment.md +65 -0
  142. ai_gen1-0.1.0/website/src/content/docs/cookbooks/function-calling-router.md +62 -0
  143. ai_gen1-0.1.0/website/src/content/docs/cookbooks/hierarchical-classification.md +165 -0
  144. ai_gen1-0.1.0/website/src/content/docs/cookbooks/llm-guardrails.md +65 -0
  145. ai_gen1-0.1.0/website/src/content/docs/cookbooks/parallel-questions.md +60 -0
  146. ai_gen1-0.1.0/website/src/content/docs/cookbooks/rag-passage-filtering.md +46 -0
  147. ai_gen1-0.1.0/website/src/content/docs/cookbooks/semantic-find.md +55 -0
  148. ai_gen1-0.1.0/website/src/content/docs/cookbooks/semantic-rerank.md +70 -0
  149. ai_gen1-0.1.0/website/src/content/docs/cookbooks/speculative-cascade.md +58 -0
  150. ai_gen1-0.1.0/website/src/content/docs/docs/index.md +110 -0
  151. ai_gen1-0.1.0/website/src/content/docs/legal/acceptable-use.md +25 -0
  152. ai_gen1-0.1.0/website/src/content/docs/legal/code-of-conduct.md +25 -0
  153. ai_gen1-0.1.0/website/src/content/docs/legal/license.md +35 -0
  154. ai_gen1-0.1.0/website/src/content/docs/legal/privacy.md +34 -0
  155. ai_gen1-0.1.0/website/src/content/docs/legal/security.md +36 -0
  156. ai_gen1-0.1.0/website/src/content/docs/legal/terms.md +29 -0
  157. ai_gen1-0.1.0/website/src/content/docs/local-setup/index.md +117 -0
  158. ai_gen1-0.1.0/website/src/content/docs/primitives/advanced.md +113 -0
  159. ai_gen1-0.1.0/website/src/content/docs/primitives/choice.md +103 -0
  160. ai_gen1-0.1.0/website/src/content/docs/primitives/noul.md +75 -0
  161. ai_gen1-0.1.0/website/src/content/docs/primitives/score.md +77 -0
  162. ai_gen1-0.1.0/website/src/content/docs/sdk/javascript.md +59 -0
  163. ai_gen1-0.1.0/website/src/content/docs/sdk/python.md +66 -0
  164. ai_gen1-0.1.0/website/src/content.config.ts +7 -0
  165. ai_gen1-0.1.0/website/src/pages/index.astro +47 -0
  166. ai_gen1-0.1.0/website/src/styles/custom.css +399 -0
  167. ai_gen1-0.1.0/website/tsconfig.json +5 -0
@@ -0,0 +1,100 @@
1
+ sitemap-index.xml,1790015114671,38e676edb00cf4d3d3b0a194bb89684c7a38f4f6d12f3d669b54a9cbe8ab78bc
2
+ sitemap-0.xml,1790015114671,46f9e554d16672bc23d4ff38e1990b46e7561da0f3251e9102ce7f3f9d756c1c
3
+ llms.txt,1790012562835,fd149a8ad3b3c6475fbb457afde459b9bcc037218461eedb1cc2ae261557a32c
4
+ favicon.svg,1790013800733,712b47307952c416724df80d7919bdecdbf499a28460a96ac3e738de8865ae2e
5
+ _astro/TableOfContents.astro_astro_type_script_index_0_lang.Csloo1VZ.js,1790015114051,3827f87081f5603e5e315c33eb9cab9ae8d5a30b88eb605df17275f3d9efb94c
6
+ favicon.ico,1790013133687,32182b6c0dc577f051aa85b6985168bb45c2580a3df9bd4f889dc260a07a8421
7
+ 404.html,1790015114221,36a4a2f8996ed9e6a1181c69cbd4afebbdb148e91ff1a5b9b1851640627a2282
8
+ _astro/starlight-toc.CTCQXEge.js,1790015114053,5c2248adc38fca0f04ce14ce9c4fa5e5b9b00b6bb9816ab1721d1d5c5eb3b0f9
9
+ _astro/Search.astro_astro_type_script_index_0_lang.DZqJ8Bdf.js,1790015114051,99a252f5511c96cc294b1874a2c34f4cbb8af9b63b1f8eec61ec7c6277f20562
10
+ _astro/print.ehPL0gv-.css,1790015113941,fc3a67225908e86e0373bfa98596ce5d593801b16eafa075a52516e5d60ca3ea
11
+ _astro/page.Dwipeu-R.js,1790015114053,23543e4e52f632ffc6170516d290e80fd247cc0772761732858456543e993607
12
+ index.html,1790015114231,5630e180ec7a2a70524a5ed3b832608815ee2131cfb241afac83772c517567f5
13
+ _astro/MobileTableOfContents.astro_astro_type_script_index_0_lang.BcSo_yiZ.js,1790015114050,cbfdad5c39f761fd9be17be81f42722e321b753ec4a750d95ed1e7b231637b22
14
+ _astro/ec.0vx5m.js,1790015114055,702f2d26ebe8b6e8c86b3e8e636f5a067fa04e5a8d4d57d7a94797d01f33cb10
15
+ _astro/ec.w36nc.css,1790015114056,ac6ddacec6db06e01b20470cb0423366cdf74175fd06407265c2fc8a135956b7
16
+ _astro/custom.DhHoFNrs.css,1790015113938,09583e901862161e8eb1f5d46b6550ec8f610d32052007a492ec6500524cc888
17
+ _astro/index.D9EeVhgH.css,1790015113941,a6cd421226db91fdf705aebc9448638a9bda8184840bd82b4d8c1110b30afc15
18
+ sdk/python/index.html,1790015114506,fca096f8703f19c7cb4b5891acfd226e31933a83c90867f30ea13dfe1f2d5963
19
+ primitives/score/index.html,1790015114489,4bb68a5c2ec82df2b8596d77a0fb5e22550e14d279dc058f985fea977d73ed09
20
+ sdk/javascript/index.html,1790015114497,0d4c3e466be0d2bb5556af5153c91b334bda5e3b73f852863a511745dae9aab9
21
+ _astro/common.BkcfD30E.css,1790015113937,df4c06a972864e3c8aa5a3e647b8d43139611f55f2ca00bd7d9578908bad5df5
22
+ primitives/choice/index.html,1790015114474,dbaa2e117fad45c09753bbb98c0f03274ca387789d089f8aae1c5c153932dc92
23
+ pagefind/pagefind.en_3643ab1923.pf_meta,1790015114629,79f647de68a04f32028bc7a073311a457839297e2b8258963ea30bdd79f85d40
24
+ primitives/noul/index.html,1790015114482,7a14e56a73bc26b385c5b5c2930d445caa249c89923b68c128575a70eb762751
25
+ pagefind/pagefind.js,1790015114654,06d9717be288e5030b42c9961adbd36e7a8ea8ed8bd497796bcb6a6dc7288d2f
26
+ pagefind/pagefind-ui.css,1790015114654,f8a5f4c3d0e997c21b9087b8f627964ee48c05a880fbd166720ca9662001f30f
27
+ pagefind/pagefind-modular-ui.css,1790015114654,5e1585b552635c3eb462af36b599b79bd894734bae26f76399c0a175c6534244
28
+ pagefind/pagefind-modular-ui.js,1790015114654,a195b572b1b822ade4ac776f96c5c6a8982e158d3390ffe972cbfc59024019f6
29
+ pagefind/pagefind-entry.json,1790015114655,d2fd8b377688a4e0355deea6c8659d368e5c64bfb04a7a1643860117997e032a
30
+ pagefind/pagefind-worker.js,1790015114654,da161598a309ea5b57b6be60218102daa362dcf8c9454fc841738d99351be81b
31
+ pagefind/index/en_a59344d.pf_index,1790015114641,352421ef8c849896276820ba2e2cce1b497df4012d594c77e3d3ef0a5527932c
32
+ pagefind/fragment/en_fbc32f8.pf_fragment,1790015114629,6bdf49e77335a3d56f4f267900a779e70d4671aa76cbd1721c5656cb3d6baa4d
33
+ pagefind/pagefind-component-ui.css,1790015114655,68edb83e15d99a035f8f1858b09d6170b808128c864a9f5135f803ec2fa21062
34
+ pagefind/fragment/en_f4a17ef.pf_fragment,1790015114629,cc723a1c4516598e56b7a79f1ca8e21d14d88575abbca865e0998cf75e24afbc
35
+ pagefind/fragment/en_d98d2d3.pf_fragment,1790015114643,98e86f6b5102470223f191e65f902eb947eec3107894abda30821ec363a66310
36
+ pagefind/fragment/en_e2ee8be.pf_fragment,1790015114629,803c5caf264aa336fd0c4daef3e230e54b688c9c0c60f65f7ab922f7b63f6778
37
+ pagefind/fragment/en_d4b6ad2.pf_fragment,1790015114641,11aa9a0f9ffc4b1721846beb9c2c73ad7d2dd6cf1d0e0deb325cee04fc5c06d8
38
+ pagefind/fragment/en_bbb2c18.pf_fragment,1790015114641,1f50aaf230d19cac18268f35aa89e64c646fb4bffa49cd64ca920130443f5e11
39
+ pagefind/fragment/en_b0e0581.pf_fragment,1790015114641,02bdbe2b75ce9d481802f2e8523202a1616a2cffabcecbcc8e210f03644cdf07
40
+ pagefind/fragment/en_ac3b9fc.pf_fragment,1790015114643,398795e7e3bd8fcce75c5006f8b602b7e0021f798a5f69dfa6fde7e6b71e374e
41
+ pagefind/pagefind-highlight.js,1790015114654,ddcd02865dfe6466678ced5969ea858cbe408d040eccb03fbec5f573ccc8340d
42
+ pagefind/fragment/en_a9f5a83.pf_fragment,1790015114641,9c49816c4d689bcaa47d91a019a110bbae0b365a007b8c26cc91e3e03f5aaeb9
43
+ pagefind/fragment/en_a3c5ea8.pf_fragment,1790015114643,4b31d53ade02eeb127f818f90fd4d22d1497c96b7c1ed6e65e974041bc2a5eeb
44
+ primitives/advanced/index.html,1790015114457,788d8a59653a1fa6e2501ff5ed92ba8507087d5dd4b3b0bda8104742d518eca2
45
+ _astro/ui-core.CQ6Bi9up.js,1790015114055,dc05604b477b415c6d746e9a62ec3498581e681644a0407cecec5b1c254a065d
46
+ pagefind/index/en_d481467.pf_index,1790015114640,9b8e4a6a2c51ac244d3d278515f63f12c1eb55cdb6ef94be784ac8776b53e063
47
+ pagefind/pagefind-ui.js,1790015114654,e9c60a1294f29ae96a4454771af7556c6cb6f558e8f045300f46408c8d49c3f7
48
+ pagefind/fragment/en_a2468ff.pf_fragment,1790015114643,bdd7d2be74d7c2257cb2f3a2dd0206d85a6e41923ab67eec7e1412e1b4f992a1
49
+ pagefind/fragment/en_95e2946.pf_fragment,1790015114646,d5673dc816e7b1291bc4e7fdba4734c22fe04a99dbb2a6548dd8a5ad36394afc
50
+ pagefind/fragment/en_80c18f4.pf_fragment,1790015114641,3ef8cc1c57fc143bec9e074b2d29d4cab54f589496932ec118eb5ebed422307f
51
+ pagefind/fragment/en_72fa922.pf_fragment,1790015114646,7c7f79d25f2326069f3834f1bc07ecab0d530532543e43cb95d3ec7358654571
52
+ pagefind/fragment/en_70a8856.pf_fragment,1790015114629,971b17bcead01610386a28247dc22511cac8fec11b480e9c153ccfb9d3d9b4fa
53
+ pagefind/fragment/en_58a3a26.pf_fragment,1790015114629,765614740578fbf29ba3b1587726efd3513da2d9ef72a34c503b7dd6ea4b4034
54
+ pagefind/fragment/en_58568e5.pf_fragment,1790015114644,6f022dd544f1b0cedd988204a56ca8def36bbd05ba4cfbbc28138645b226a918
55
+ pagefind/fragment/en_572454a.pf_fragment,1790015114644,a255c93b7f16a85ef53f0a277b98c6c320bf1b251247fc51e3d9c2936cb227c5
56
+ pagefind/fragment/en_5560ea3.pf_fragment,1790015114644,4da2bd8a479ddd33dc8f8248a661554e11b9d22cef5511507228104ebb608bbd
57
+ pagefind/fragment/en_51c0be8.pf_fragment,1790015114647,7c0107a64e27ba1e92ba02a57e6c5af14f7cf97dcd2c7330899fa6ac239c215f
58
+ pagefind/fragment/en_523585b.pf_fragment,1790015114641,5b3fa128379a580c098d8e9513a13126d4b748c1d97129830b02f631313bce49
59
+ pagefind/fragment/en_4b47643.pf_fragment,1790015114641,4e2b23833e30e29bf42251e43b4e3a85e05facaa086fb736968689b051aa4443
60
+ pagefind/fragment/en_49c4797.pf_fragment,1790015114641,a60d3ab803ba6c5b021d3ee4f58b59de8e2b69c779b256a79d502aa69f398c7a
61
+ pagefind/fragment/en_4711eaa.pf_fragment,1790015114643,d6313db94d4815a14b855885202320d2653013b525edf2ddf1b71191addf7c22
62
+ pagefind/fragment/en_318f60d.pf_fragment,1790015114641,f1cc6b6d170b2d108a367313c11d5e87209f6dfd94595ff10e61b35020e7eacc
63
+ pagefind/fragment/en_2f14792.pf_fragment,1790015114643,6e79b8833d96a3fa0e7ea0e24a35cb86294e387a281ffadbcf27ea934c23fe93
64
+ pagefind/fragment/en_2784ac1.pf_fragment,1790015114644,e76245fc032769a86d3f5fea7175eb74dc176bc2bbedd6e42ff644c05e15bbe0
65
+ pagefind/fragment/en_232ca44.pf_fragment,1790015114641,094066b157e4d80e5f666054a56d451fab04316fd2b81c64cdeefc6f551f4fbc
66
+ pagefind/fragment/en_14c418f.pf_fragment,1790015114641,4b8640afe71b3daaad1850db041ecd84461dbbd2a7c3ca2ab5e89597f81be6fc
67
+ legal/terms/index.html,1790015114429,f744413728e07f4f3ff200e87d70f1ba510f1cd229827646fba6f8899d84a179
68
+ legal/security/index.html,1790015114418,aa8bdeee2fd7adaf37b27c74789047676bb34a65a3d560092a78df523ab985d6
69
+ local-setup/index.html,1790015114440,32604f2d3b3bf4e450b7e3b2820eaeea38d018f81740d5bdc7187d28ad6f2edc
70
+ legal/privacy/index.html,1790015114410,5eb9e748a75497d5b44ae5ba7c76cbfc0b1393b764b36a203e4812cde7b07493
71
+ legal/license/index.html,1790015114400,40fcefa5d569046c34fa3d91524b336fc24eca5d27dc25ccc0cdba1a6c49eb8e
72
+ legal/code-of-conduct/index.html,1790015114392,2a288d5014443c18f8041887f1b324c09cb12feeddca2d1619b21e5f78367b5a
73
+ legal/acceptable-use/index.html,1790015114386,9277bcb2f068f72cd0c579929b374e91d623bc63b1bd16033a7db1c8cd66cda8
74
+ cookbooks/speculative-cascade/index.html,1790015114372,05f5bad5c0c9b953cd777ff57e16ef0d8cec376a9c67112e3c0604dc7f1ae430
75
+ cookbooks/semantic-rerank/index.html,1790015114363,e08e75482d190bb35be1955d498ff286ba705bcc692ef6fc84d0667a3b7c2aa3
76
+ docs/index.html,1790015114378,2dd182e8c83ac144525740b09f181d2c3f88f2eb227f37226df898ae7a25965c
77
+ cookbooks/semantic-find/index.html,1790015114356,dc91c7614b65eb51264ffc37078663b43bd8de457f01b51bea218a3c633d99ca
78
+ cookbooks/rag-passage-filtering/index.html,1790015114348,9f6f0aef9e08aa70a5953e956eb0b8f488bcea111ee0d6fd842fd99df96aa0e6
79
+ cookbooks/parallel-questions/index.html,1790015114336,2f3c392a6ba508457218c6068f94a1e713e019cc13accc71afc8ad914b30b38a
80
+ cookbooks/llm-guardrails/index.html,1790015114327,fdbe9fc704f0b9ded317e743827195873aeb3c5ade7545f589bc5bf054bf283b
81
+ cookbooks/function-calling-router/index.html,1790015114308,3628be1342c80440d8c08859b4a42de15aa2f0459457f16fd79c35af4ab5e5c0
82
+ cookbooks/entity-alignment/index.html,1790015114297,071113509d6ad3dd8776a2d36fe09409497e1af0385acefbbfcc6ff592f41ff5
83
+ cookbooks/confidence-calibration/index.html,1790015114289,cac51ca8425060ac420e70e58d6f2a1b7413e906dd26f721b531820efe7224dc
84
+ cookbooks/citation-fact-check/index.html,1790015114280,55d323ff88ee275241169dbf0de4de0b047b1451d1d8003307826e60cb823ad0
85
+ assets/logo-light.svg,1790013787944,1f3ae9682b8a1c929d5adf408102c5d96c07f53031d8eec1d6c05d242a8b108e
86
+ concepts/system-one/index.html,1790015114271,64171f68cb002b9c320292ad66db8e746e7e0ca3becdb3efb8acc7f44e2e5b19
87
+ concepts/state/index.html,1790015114263,c9499b9b886a9f0ec6c280b44fb911f586a24a839211ac3ee64b17b92917c6cd
88
+ concepts/outcome-engine/index.html,1790015114255,4c14bdaf814fa35911ec6842b67c8243933168209807f0e601e40822494fc76f
89
+ concepts/confidence/index.html,1790015114247,604e6f8e1d1351bc54c03cffcd6ef67b41976320decbd5a6348d279790b952b8
90
+ assets/logo-dark.svg,1790013790783,6e0768d82408b3a5446d5fc790f8b8270eb841e8d39dfe44f8f44cf711fa1f2d
91
+ pagefind/wasm.en.pagefind,1790015114629,701ac70ab80e474de105036d8ce6bc9428dbbb4b506aa17d4b230fe64419bc1e
92
+ pagefind/wasm.unknown.pagefind,1790015114655,6c7987dc36fffffbf856ecd248bacd46e1beaea66049b8db0bfbfbf5d288da5a
93
+ cookbooks/hierarchical-classification/index.html,1790015114317,cd6161ac88f03a93aef2877bdeb94083b2caf8935514afc44acb86e02eb12e69
94
+ assets/benchmark_throughput_decisions.svg,1790013299739,befe05f096ce1d07db5bce15ab7a59f8a910d4e7ea485bbc0e5593519795c521
95
+ assets/benchmark_latency_tokens.svg,1790013298243,263a9b1a765ae7460275ed3b672c2e69dd774eb5ad281c36a1aaea09f74fbeaa
96
+ assets/benchmark_accuracy_agreement.svg,1790013301374,a76dc8decb62cfdd9084ae1e46d3c1ca200193501eca7984dd0072bb38f96843
97
+ assets/benchmark_throughput_decisions.png,1790013299990,17488f2749e07ff2be7af6083a60d732a5b2171889a12479169a733a5f51dfce
98
+ assets/benchmark_accuracy_agreement.png,1790013301775,0d9bd294aecb7181a774adbb23a587a9a5a4859eca2d17b2cc3a2bc017768f47
99
+ assets/benchmark_latency_tokens.png,1790013298815,e2b5807c81cbc9dee0b90accd2d3efa08ab370bbdd73f97d3c88eb6a2adfec99
100
+ pagefind/pagefind-component-ui.js,1790015114655,602facb00f4d2a1b83660d51696cb5a87382555ad3ddf5382d54f4d90ee69bb3
@@ -0,0 +1,5 @@
1
+ {
2
+ "projects": {
3
+ "default": "gen1-ai"
4
+ }
5
+ }
@@ -0,0 +1,126 @@
1
+ # ==============================================================================
2
+ # Python
3
+ # ==============================================================================
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ build/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # Virtual environments
30
+ .venv/
31
+ venv/
32
+ ENV/
33
+ env/
34
+ env.bak/
35
+ venv.bak/
36
+
37
+ # Testing & Coverage
38
+ .pytest_cache/
39
+ .tox/
40
+ .nox/
41
+ .coverage
42
+ .coverage.*
43
+ htmlcov/
44
+ coverage.xml
45
+ *.cover
46
+ *.py,cover
47
+ .hypothesis/
48
+
49
+ # Type checking & Linters
50
+ .mypy_cache/
51
+ .dmypy.json
52
+ dmypy.json
53
+ .ruff_cache/
54
+
55
+ # Jupyter Notebooks
56
+ .ipynb_checkpoints
57
+
58
+ # ==============================================================================
59
+ # Node / JavaScript (packages/sdk-js)
60
+ # ==============================================================================
61
+ node_modules/
62
+ npm-debug.log*
63
+ yarn-debug.log*
64
+ yarn-error.log*
65
+ pnpm-debug.log*
66
+ lerna-debug.log*
67
+ packages/sdk-js/dist/
68
+
69
+ # ==============================================================================
70
+ # Machine Learning, Models & Weights
71
+ # ==============================================================================
72
+ # Large checkpoint files and weights (use Git LFS or object storage if tracking)
73
+ *.pt
74
+ *.pth
75
+ *.bin
76
+ *.safetensors
77
+ *.onnx
78
+ *.engine
79
+ checkpoints/
80
+ models/
81
+ huggingface/
82
+ .cache/huggingface/
83
+
84
+ # Experiment tracking
85
+ wandb/
86
+
87
+ # ==============================================================================
88
+ # Environment & Secrets
89
+ # ==============================================================================
90
+ .env
91
+ .env.*
92
+ !.env.example
93
+ *.pem
94
+ *.key
95
+
96
+ # ==============================================================================
97
+ # IDEs & Editors
98
+ # ==============================================================================
99
+ .vscode/*
100
+ !.vscode/settings.json
101
+ !.vscode/tasks.json
102
+ !.vscode/launch.json
103
+ !.vscode/extensions.json
104
+ .idea/
105
+ *.sublime-workspace
106
+ *.sublime-project
107
+
108
+ # ==============================================================================
109
+ # Operating System
110
+ # ==============================================================================
111
+ .DS_Store
112
+ .DS_Store?
113
+ ._*
114
+ .Spotlight-V100
115
+ .Trashes
116
+ ehthumbs.db
117
+ Thumbs.db
118
+ [Dd]esktop.ini
119
+
120
+ # ==============================================================================
121
+ # Logs & Temporary Files
122
+ # ==============================================================================
123
+ *.log
124
+ tmp/
125
+ temp/
126
+ scratch/
@@ -0,0 +1,37 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies within all community spaces, including issues, pull requests, discussions, and when an individual is representing the project in public spaces.
34
+
35
+ ## Reporting & Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project maintainers at `conduct@gen1.org`. All complaints will be reviewed and investigated promptly and fairly.
ai_gen1-0.1.0/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 gen1 Authors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
ai_gen1-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,190 @@
1
+ Metadata-Version: 2.5
2
+ Name: ai-gen1
3
+ Version: 0.1.0
4
+ Summary: The open-source typed decision engine for LLMs. Generate only 1 thing: the outcome.
5
+ Project-URL: Homepage, https://gen1-ai.web.app
6
+ Project-URL: Documentation, https://gen1-ai.web.app/docs/
7
+ Project-URL: Repository, https://github.com/breejesh/gen1.git
8
+ Project-URL: Issues, https://github.com/breejesh/gen1/issues
9
+ Author-email: gen1 Authors <breejesh2212@gmail.com>
10
+ License: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: classification,decision-engine,fastapi,gen1,llm,logits,outcome-engine,pydantic,system-1,transformers,vllm
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: numpy>=1.24.0
25
+ Requires-Dist: pydantic>=2.0.0
26
+ Requires-Dist: torch>=2.0.0
27
+ Requires-Dist: transformers>=4.40.0
28
+ Provides-Extra: benchmark
29
+ Requires-Dist: fastapi>=0.110.0; extra == 'benchmark'
30
+ Requires-Dist: matplotlib>=3.8.0; extra == 'benchmark'
31
+ Requires-Dist: rich>=13.7.0; extra == 'benchmark'
32
+ Requires-Dist: uvicorn>=0.29.0; extra == 'benchmark'
33
+ Provides-Extra: dev
34
+ Requires-Dist: black>=24.0.0; extra == 'dev'
35
+ Requires-Dist: mypy>=1.10.0; extra == 'dev'
36
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
37
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
38
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
39
+ Provides-Extra: vllm
40
+ Requires-Dist: vllm>=0.4.0; extra == 'vllm'
41
+ Description-Content-Type: text/markdown
42
+
43
+ <p align="center">
44
+ <picture>
45
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
46
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
47
+ <img src="docs/assets/logo-dark.svg" width="220" alt="gen1">
48
+ </picture>
49
+ </p>
50
+
51
+ <p align="center">
52
+ <strong>Generate only 1 thing: the outcome.</strong><br>
53
+ <em>Reflexive semantic branching without unnecessary autoregressive generation.</em><br>
54
+ <em>Independent open-source project; not affiliated with, sponsored by, or endorsed by TypeSafe or Jev.</em>
55
+ </p>
56
+
57
+ <p align="center">
58
+ <a href="https://pypi.org/project/gen1/"><img src="https://img.shields.io/badge/pypi-v0.1.0-E5007D?style=flat-square&logo=pypi&logoColor=white" alt="PyPI"></a>
59
+ <a href="https://www.npmjs.com/package/gen1"><img src="https://img.shields.io/badge/npm-v0.1.0-CB3837?style=flat-square&logo=npm&logoColor=white" alt="npm"></a>
60
+ <a href="#"><img src="https://img.shields.io/badge/generation-outcome%20only-E5007D?style=flat-square" alt="Outcome Only"></a>
61
+ <a href="#"><img src="https://img.shields.io/badge/eval-direct%20logits-10B981?style=flat-square" alt="Direct Logits"></a>
62
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License"></a>
63
+ <a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.10+"></a>
64
+ </p>
65
+
66
+ <p align="center">
67
+ <strong>No waitlist.</strong> Run open weights locally on your GPU, vLLM cluster, or Apple Silicon today.
68
+ </p>
69
+
70
+ ---
71
+
72
+ Most agent decisions are small: *route this*, *verify citations*, *check guardrails*, or *score customer intent*. Standard generative LLMs answer these by spending 300ms to 1,500ms decoding verbose JSON strings that your software immediately parses back into an `if` statement.
73
+
74
+ Named after Daniel Kahneman's **System 1** (fast, reflexive, instinctive thinking), `gen1` gives your software **instant decisions by generating only 1 thing: the outcome**:
75
+
76
+ - **Generate Only The Outcome:** No conversational filler, no token streaming, and no slow autoregressive decode loops. `gen1` reads terminal logits (`logits[:, -1, :]`) during the prefill forward pass and projects them into normalized candidate choice probabilities.
77
+ - **100% Drop-In Replacement for TypeSafe Jev:** Migrate from closed cloud services ($350 / 1M calls) with zero application code changes.
78
+ - **100% Schema Guarantee:** Invalid JSON, truncated keys, and schema violations are mathematically impossible.
79
+ - **Universal Engine Support:** Works across Hugging Face, vLLM, SGLang, llama.cpp, and Apple Silicon MLX.
80
+
81
+ ---
82
+
83
+ ## Quickstart
84
+
85
+ ```bash
86
+ # Python
87
+ pip install ai-gen1
88
+
89
+ # JavaScript / TypeScript
90
+ npm install gen1
91
+ ```
92
+
93
+ ---
94
+
95
+ ## TypeSafe Jev Drop-in Replacement
96
+
97
+ ### Python
98
+
99
+ ```python
100
+ from gen1 import TypeSafeClient, Choice, Noul, Score
101
+
102
+ with TypeSafeClient() as client:
103
+ response = client.system_one(
104
+ state={"ticket": "Charged $49 twice for invoice #1042. Please refund ASAP!"},
105
+ questions={
106
+ "is_billing": Noul(instructions="Is this ticket a billing dispute?"),
107
+ "priority": Choice(instructions="Priority tier", criteria={"HIGH": None, "LOW": None}),
108
+ "sentiment": Score(instructions="Customer sentiment", criteria=["angry", "neutral", "happy"]),
109
+ }
110
+ )
111
+
112
+ print(response.nouls["is_billing"].passed) # True
113
+ print(response.choices["priority"].choice) # "HIGH" (confidence = 0.985)
114
+ print(response.scores["sentiment"].score) # 1.2
115
+ print(response.usage.output_tokens) # 0 (Outcome only, no decode tokens)
116
+ ```
117
+
118
+ ### TypeScript / JavaScript
119
+
120
+ ```typescript
121
+ import { TypeSafeClient } from "gen1";
122
+
123
+ const client = new TypeSafeClient();
124
+ const res = await client.choice({
125
+ state: "Kubernetes worker node crashed with OOMKilled 137.",
126
+ question: {
127
+ prompt: "Route alert to responding engineering team",
128
+ options: ["DevOps", "Billing", "Security", "Sales"],
129
+ },
130
+ });
131
+
132
+ console.log(res.choice); // "DevOps"
133
+ console.log(res.tokensGenerated); // 0 (Outcome only, 168ms)
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Native Typed Decision Engine
139
+
140
+ For new codebases wanting Python `Enum` type-safety and Shannon entropy uncertainty metrics:
141
+
142
+ ```python
143
+ from enum import Enum
144
+ import gen1
145
+
146
+ class Priority(str, Enum):
147
+ P0_CRITICAL = "Outage, database down, or active data loss"
148
+ P1_HIGH = "Degraded service for multiple accounts"
149
+ P2_NORMAL = "Minor cosmetic issue or general inquiry"
150
+
151
+ engine = gen1.load("Qwen/Qwen2.5-7B-Instruct", backend="hf")
152
+ result = engine.decide(
153
+ context="Database latency spiked to 10s and checkout is failing globally.",
154
+ options=Priority,
155
+ )
156
+
157
+ print(result.winner) # Priority.P0_CRITICAL
158
+ print(result.confidence) # 0.9842 (98.4% calibrated probability)
159
+ print(result.entropy) # 0.12 bits (Shannon entropy)
160
+ print(result.tokens_generated) # 0 (Outcome only)
161
+ ```
162
+
163
+ ---
164
+
165
+ ## Speed: Direct Decisions vs Autoregressive LLMs
166
+
167
+ Benchmarked on Gemma 4-E4B (4-bit quantized) across real agent tasks:
168
+
169
+ | Primitive / Task | Generative LLM (Chat + JSON) | gen1 (Outcome Only) | Tokens Decoded | Speedup |
170
+ | :--- | :---: | :---: | :---: | :---: |
171
+ | Binary Guardrail (`Noul`) | 1,463.9 ms | **168.1 ms** | 68 -> **0** | **8.7x faster** |
172
+ | 4-Way Routing (`Choice`) | 1,663.0 ms | **170.7 ms** | 77 -> **0** | **9.7x faster** |
173
+ | High-Context 8k Routing (`Choice`) | 2,419.6 ms | **271.8 ms** | 102 -> **0** | **8.9x - 25.6x faster** |
174
+ | Rubric Scoring (`Score`) | 1,959.5 ms | **163.7 ms** | 91 -> **0** | **12.0x faster** |
175
+ | In-Process Direct Logits | ~450.0 ms | **2.1 ms** | 50 -> **0** | **214x faster** |
176
+
177
+ ---
178
+
179
+ ## Legal & Interoperability Compliance
180
+
181
+ `gen1` is an independent open-source project. Under established law (*Google LLC v. Oracle America, Inc.*, 2021), functional API interfaces, declaring signatures, and parameter schemas are protected under the Fair Use doctrine to ensure developer interoperability.
182
+
183
+ `gen1` is not affiliated with, sponsored by, or endorsed by TypeSafe or Jev. All trademarks and brand names are the property of their respective owners and are used strictly for nominative compatibility identification.
184
+
185
+ ---
186
+
187
+ ## License
188
+
189
+ Apache-2.0 License. Free for commercial and research use.
190
+