ragops-observatory 0.10.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 (271) hide show
  1. ragops_observatory-0.10.0/.dockerignore +12 -0
  2. ragops_observatory-0.10.0/.env.example +15 -0
  3. ragops_observatory-0.10.0/.gitattributes +5 -0
  4. ragops_observatory-0.10.0/.gitignore +33 -0
  5. ragops_observatory-0.10.0/CHANGELOG.md +382 -0
  6. ragops_observatory-0.10.0/CITATION.cff +12 -0
  7. ragops_observatory-0.10.0/CODE_OF_CONDUCT.md +15 -0
  8. ragops_observatory-0.10.0/CONTRIBUTING.md +22 -0
  9. ragops_observatory-0.10.0/Dockerfile +39 -0
  10. ragops_observatory-0.10.0/LICENSE +21 -0
  11. ragops_observatory-0.10.0/PKG-INFO +387 -0
  12. ragops_observatory-0.10.0/README.md +271 -0
  13. ragops_observatory-0.10.0/SECURITY.md +13 -0
  14. ragops_observatory-0.10.0/SUPPORT.md +8 -0
  15. ragops_observatory-0.10.0/action.yml +46 -0
  16. ragops_observatory-0.10.0/benchmark/RESULTS.json +94 -0
  17. ragops_observatory-0.10.0/benchmark/RESULTS.md +48 -0
  18. ragops_observatory-0.10.0/benchmark/SQUAD_RESULTS.json +104 -0
  19. ragops_observatory-0.10.0/benchmark/SQUAD_RESULTS.md +40 -0
  20. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/Chart.yaml +9 -0
  21. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/NOTES.txt +10 -0
  22. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/_helpers.tpl +59 -0
  23. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/api.yaml +34 -0
  24. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/dashboard.yaml +31 -0
  25. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/ingress.yaml +21 -0
  26. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/migrate-job.yaml +28 -0
  27. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/tests/test-health.yaml +12 -0
  28. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/templates/worker.yaml +25 -0
  29. ragops_observatory-0.10.0/deploy/helm/ragops-observatory/values.yaml +72 -0
  30. ragops_observatory-0.10.0/docker-compose.yml +88 -0
  31. ragops_observatory-0.10.0/docs/api.md +67 -0
  32. ragops_observatory-0.10.0/docs/assurance.md +93 -0
  33. ragops_observatory-0.10.0/docs/benchmarks.md +11 -0
  34. ragops_observatory-0.10.0/docs/case-studies/my-rag.md +81 -0
  35. ragops_observatory-0.10.0/docs/concepts.md +63 -0
  36. ragops_observatory-0.10.0/docs/dashboard.md +63 -0
  37. ragops_observatory-0.10.0/docs/deployment.md +156 -0
  38. ragops_observatory-0.10.0/docs/doctor.md +108 -0
  39. ragops_observatory-0.10.0/docs/feature-map.md +45 -0
  40. ragops_observatory-0.10.0/docs/field-report.md +107 -0
  41. ragops_observatory-0.10.0/docs/gate.md +16 -0
  42. ragops_observatory-0.10.0/docs/images/assurance.png +0 -0
  43. ragops_observatory-0.10.0/docs/images/benchmark-lab.png +0 -0
  44. ragops_observatory-0.10.0/docs/images/cost.png +0 -0
  45. ragops_observatory-0.10.0/docs/images/demo.gif +0 -0
  46. ragops_observatory-0.10.0/docs/images/doctor.png +0 -0
  47. ragops_observatory-0.10.0/docs/images/drift.png +0 -0
  48. ragops_observatory-0.10.0/docs/images/evidence-graph.png +0 -0
  49. ragops_observatory-0.10.0/docs/images/failure-intelligence.png +0 -0
  50. ragops_observatory-0.10.0/docs/images/integrations.png +0 -0
  51. ragops_observatory-0.10.0/docs/images/overview-full.png +0 -0
  52. ragops_observatory-0.10.0/docs/images/overview-light.png +0 -0
  53. ragops_observatory-0.10.0/docs/images/overview.png +0 -0
  54. ragops_observatory-0.10.0/docs/images/release-guardian.png +0 -0
  55. ragops_observatory-0.10.0/docs/images/slos.png +0 -0
  56. ragops_observatory-0.10.0/docs/images/social-preview.png +0 -0
  57. ragops_observatory-0.10.0/docs/images/ui-doctor.png +0 -0
  58. ragops_observatory-0.10.0/docs/images/ui-test-your-rag.png +0 -0
  59. ragops_observatory-0.10.0/docs/index.md +36 -0
  60. ragops_observatory-0.10.0/docs/integrations.md +89 -0
  61. ragops_observatory-0.10.0/docs/quickstart.md +56 -0
  62. ragops_observatory-0.10.0/docs/releasing.md +35 -0
  63. ragops_observatory-0.10.0/docs/reliability.md +96 -0
  64. ragops_observatory-0.10.0/docs/test-your-rag.md +85 -0
  65. ragops_observatory-0.10.0/examples/case-study/CASE_STUDY.md +86 -0
  66. ragops_observatory-0.10.0/examples/case-study/results.json +482 -0
  67. ragops_observatory-0.10.0/examples/case-study/run_case_study.py +325 -0
  68. ragops_observatory-0.10.0/examples/case-study/squad_rag.py +165 -0
  69. ragops_observatory-0.10.0/examples/doctor/README.md +24 -0
  70. ragops_observatory-0.10.0/examples/doctor/acme_rag.py +73 -0
  71. ragops_observatory-0.10.0/examples/doctor/docs/billing.md +7 -0
  72. ragops_observatory-0.10.0/examples/doctor/docs/data.md +7 -0
  73. ragops_observatory-0.10.0/examples/doctor/docs/limits.md +7 -0
  74. ragops_observatory-0.10.0/examples/doctor/docs/security.md +7 -0
  75. ragops_observatory-0.10.0/examples/doctor/docs/support.md +5 -0
  76. ragops_observatory-0.10.0/examples/doctor/my-rag-test/baseline.yaml +3 -0
  77. ragops_observatory-0.10.0/examples/doctor/my-rag-test/candidate.yaml +3 -0
  78. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/about.md +1 -0
  79. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/billing.md +7 -0
  80. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/data.md +7 -0
  81. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/limits.md +7 -0
  82. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/mobile.md +3 -0
  83. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/security.md +7 -0
  84. ragops_observatory-0.10.0/examples/doctor/my-rag-test/docs/support.md +5 -0
  85. ragops_observatory-0.10.0/examples/doctor/my-rag-test/my_rag.py +141 -0
  86. ragops_observatory-0.10.0/examples/doctor/my-rag-test/rag_tests.jsonl +19 -0
  87. ragops_observatory-0.10.0/examples/doctor/my-rag-test/ragops.yaml +16 -0
  88. ragops_observatory-0.10.0/examples/doctor/my-rag-test/send_traffic.py +76 -0
  89. ragops_observatory-0.10.0/examples/doctor/my_rag_multi_llm.py +131 -0
  90. ragops_observatory-0.10.0/examples/doctor/ragops.yaml +14 -0
  91. ragops_observatory-0.10.0/examples/doctor/send_traffic.py +76 -0
  92. ragops_observatory-0.10.0/examples/doctor/tests.jsonl +20 -0
  93. ragops_observatory-0.10.0/examples/frameworks/README.md +81 -0
  94. ragops_observatory-0.10.0/examples/frameworks/common.py +124 -0
  95. ragops_observatory-0.10.0/examples/frameworks/compare.py +46 -0
  96. ragops_observatory-0.10.0/examples/frameworks/haystack.yaml +16 -0
  97. ragops_observatory-0.10.0/examples/frameworks/haystack_rag.py +94 -0
  98. ragops_observatory-0.10.0/examples/frameworks/langchain.yaml +16 -0
  99. ragops_observatory-0.10.0/examples/frameworks/langchain_rag.py +75 -0
  100. ragops_observatory-0.10.0/examples/frameworks/langgraph.yaml +16 -0
  101. ragops_observatory-0.10.0/examples/frameworks/langgraph_rag.py +73 -0
  102. ragops_observatory-0.10.0/examples/frameworks/llamaindex.yaml +16 -0
  103. ragops_observatory-0.10.0/examples/frameworks/llamaindex_rag.py +73 -0
  104. ragops_observatory-0.10.0/examples/frameworks/requirements.txt +10 -0
  105. ragops_observatory-0.10.0/examples/frameworks/send_traffic.py +78 -0
  106. ragops_observatory-0.10.0/examples/gate/baseline.yaml +5 -0
  107. ragops_observatory-0.10.0/examples/gate/candidate-bad-reranker.yaml +5 -0
  108. ragops_observatory-0.10.0/examples/gate/candidate-bigger-topk.yaml +5 -0
  109. ragops_observatory-0.10.0/examples/gate/golden.json +342 -0
  110. ragops_observatory-0.10.0/examples/otel/README.md +20 -0
  111. ragops_observatory-0.10.0/examples/otel/collector.yaml +16 -0
  112. ragops_observatory-0.10.0/examples/sdk/langchain_example.py +10 -0
  113. ragops_observatory-0.10.0/examples/sdk/quickstart.py +31 -0
  114. ragops_observatory-0.10.0/mkdocs.yml +60 -0
  115. ragops_observatory-0.10.0/my-rag-v4-reliability.pdf +99 -0
  116. ragops_observatory-0.10.0/pyproject.toml +92 -0
  117. ragops_observatory-0.10.0/ragops/__init__.py +7 -0
  118. ragops_observatory-0.10.0/ragops/alerts.py +162 -0
  119. ragops_observatory-0.10.0/ragops/assurance.py +234 -0
  120. ragops_observatory-0.10.0/ragops/benchmark.py +206 -0
  121. ragops_observatory-0.10.0/ragops/benchmark_squad.py +234 -0
  122. ragops_observatory-0.10.0/ragops/cli.py +869 -0
  123. ragops_observatory-0.10.0/ragops/clickhouse.py +212 -0
  124. ragops_observatory-0.10.0/ragops/config.py +54 -0
  125. ragops_observatory-0.10.0/ragops/dashboard/Home.py +89 -0
  126. ragops_observatory-0.10.0/ragops/dashboard/__init__.py +0 -0
  127. ragops_observatory-0.10.0/ragops/dashboard/common.py +114 -0
  128. ragops_observatory-0.10.0/ragops/dashboard/pages/1_Root_Causes.py +32 -0
  129. ragops_observatory-0.10.0/ragops/dashboard/pages/2_Traces.py +82 -0
  130. ragops_observatory-0.10.0/ragops/dashboard/pages/3_Drift.py +64 -0
  131. ragops_observatory-0.10.0/ragops/dashboard/pages/4_Knowledge_Base.py +40 -0
  132. ragops_observatory-0.10.0/ragops/dashboard/pages/5_Golden_Sets.py +43 -0
  133. ragops_observatory-0.10.0/ragops/dashboard/pages/6_Judge_Calibration.py +28 -0
  134. ragops_observatory-0.10.0/ragops/dashboard/pages/7_SLOs_and_Alerts.py +49 -0
  135. ragops_observatory-0.10.0/ragops/dashboard/pages/8_Report.py +16 -0
  136. ragops_observatory-0.10.0/ragops/dashboard/pages/9_Settings.py +61 -0
  137. ragops_observatory-0.10.0/ragops/db.py +104 -0
  138. ragops_observatory-0.10.0/ragops/demo/corpus.py +158 -0
  139. ragops_observatory-0.10.0/ragops/demo/pipeline.py +125 -0
  140. ragops_observatory-0.10.0/ragops/demo/seed.py +199 -0
  141. ragops_observatory-0.10.0/ragops/diagnosis.py +390 -0
  142. ragops_observatory-0.10.0/ragops/doctor.py +436 -0
  143. ragops_observatory-0.10.0/ragops/drift.py +348 -0
  144. ragops_observatory-0.10.0/ragops/embeddings.py +103 -0
  145. ragops_observatory-0.10.0/ragops/eval/__init__.py +4 -0
  146. ragops_observatory-0.10.0/ragops/eval/calibration.py +60 -0
  147. ragops_observatory-0.10.0/ragops/eval/judges.py +496 -0
  148. ragops_observatory-0.10.0/ragops/eval/sampler.py +62 -0
  149. ragops_observatory-0.10.0/ragops/eval/types.py +51 -0
  150. ragops_observatory-0.10.0/ragops/gate.py +184 -0
  151. ragops_observatory-0.10.0/ragops/guard.py +72 -0
  152. ragops_observatory-0.10.0/ragops/insights.py +474 -0
  153. ragops_observatory-0.10.0/ragops/judge_check.py +73 -0
  154. ragops_observatory-0.10.0/ragops/kb_health.py +108 -0
  155. ragops_observatory-0.10.0/ragops/migrate.py +83 -0
  156. ragops_observatory-0.10.0/ragops/migrations/__init__.py +0 -0
  157. ragops_observatory-0.10.0/ragops/migrations/env.py +40 -0
  158. ragops_observatory-0.10.0/ragops/migrations/script.py.mako +22 -0
  159. ragops_observatory-0.10.0/ragops/migrations/versions/0001_v04_baseline.py +301 -0
  160. ragops_observatory-0.10.0/ragops/migrations/versions/0002_v05_runs_vectors.py +120 -0
  161. ragops_observatory-0.10.0/ragops/migrations/versions/0003_v06_orgs_sso.py +97 -0
  162. ragops_observatory-0.10.0/ragops/models.py +400 -0
  163. ragops_observatory-0.10.0/ragops/pipelines.py +234 -0
  164. ragops_observatory-0.10.0/ragops/queue_arq.py +159 -0
  165. ragops_observatory-0.10.0/ragops/redaction.py +120 -0
  166. ragops_observatory-0.10.0/ragops/reliability.py +167 -0
  167. ragops_observatory-0.10.0/ragops/report_pdf.py +142 -0
  168. ragops_observatory-0.10.0/ragops/reports.py +123 -0
  169. ragops_observatory-0.10.0/ragops/run_service.py +169 -0
  170. ragops_observatory-0.10.0/ragops/runs.py +236 -0
  171. ragops_observatory-0.10.0/ragops/schemas.py +201 -0
  172. ragops_observatory-0.10.0/ragops/sdk/__init__.py +3 -0
  173. ragops_observatory-0.10.0/ragops/sdk/adapters.py +77 -0
  174. ragops_observatory-0.10.0/ragops/sdk/client.py +350 -0
  175. ragops_observatory-0.10.0/ragops/security.py +33 -0
  176. ragops_observatory-0.10.0/ragops/server/__init__.py +0 -0
  177. ragops_observatory-0.10.0/ragops/server/app.py +1258 -0
  178. ragops_observatory-0.10.0/ragops/server/importers.py +126 -0
  179. ragops_observatory-0.10.0/ragops/server/otel.py +195 -0
  180. ragops_observatory-0.10.0/ragops/server/ui/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
  181. ragops_observatory-0.10.0/ragops/server/ui/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
  182. ragops_observatory-0.10.0/ragops/server/ui/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
  183. ragops_observatory-0.10.0/ragops/server/ui/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
  184. ragops_observatory-0.10.0/ragops/server/ui/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
  185. ragops_observatory-0.10.0/ragops/server/ui/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
  186. ragops_observatory-0.10.0/ragops/server/ui/assets/index-DUrUfMF3.css +1 -0
  187. ragops_observatory-0.10.0/ragops/server/ui/assets/index-DoZERkmi.js +150 -0
  188. ragops_observatory-0.10.0/ragops/server/ui/index.html +14 -0
  189. ragops_observatory-0.10.0/ragops/services.py +1138 -0
  190. ragops_observatory-0.10.0/ragops/services_chunking.py +21 -0
  191. ragops_observatory-0.10.0/ragops/slo.py +52 -0
  192. ragops_observatory-0.10.0/ragops/sso.py +234 -0
  193. ragops_observatory-0.10.0/ragops/testgen.py +237 -0
  194. ragops_observatory-0.10.0/ragops/testing/__init__.py +0 -0
  195. ragops_observatory-0.10.0/ragops/testing/stub_llm.py +127 -0
  196. ragops_observatory-0.10.0/ragops/textutil.py +115 -0
  197. ragops_observatory-0.10.0/ragops/vectors.py +125 -0
  198. ragops_observatory-0.10.0/ragops/worker.py +144 -0
  199. ragops_observatory-0.10.0/sdk-ts/README.md +40 -0
  200. ragops_observatory-0.10.0/sdk-ts/package-lock.json +51 -0
  201. ragops_observatory-0.10.0/sdk-ts/package.json +43 -0
  202. ragops_observatory-0.10.0/sdk-ts/src/index.ts +319 -0
  203. ragops_observatory-0.10.0/sdk-ts/test/integration.test.mjs +32 -0
  204. ragops_observatory-0.10.0/sdk-ts/test/unit.test.mjs +78 -0
  205. ragops_observatory-0.10.0/sdk-ts/tsconfig.json +14 -0
  206. ragops_observatory-0.10.0/tests/__init__.py +0 -0
  207. ragops_observatory-0.10.0/tests/conftest.py +67 -0
  208. ragops_observatory-0.10.0/tests/test_alert_delivery.py +148 -0
  209. ragops_observatory-0.10.0/tests/test_api.py +203 -0
  210. ragops_observatory-0.10.0/tests/test_assurance_stage1.py +207 -0
  211. ragops_observatory-0.10.0/tests/test_benchmark.py +11 -0
  212. ragops_observatory-0.10.0/tests/test_byo_rag.py +179 -0
  213. ragops_observatory-0.10.0/tests/test_clickhouse.py +85 -0
  214. ragops_observatory-0.10.0/tests/test_core_units.py +87 -0
  215. ragops_observatory-0.10.0/tests/test_dashboard_v09.py +113 -0
  216. ragops_observatory-0.10.0/tests/test_diagnosis.py +116 -0
  217. ragops_observatory-0.10.0/tests/test_doctor.py +133 -0
  218. ragops_observatory-0.10.0/tests/test_evidently_presidio.py +56 -0
  219. ragops_observatory-0.10.0/tests/test_gate.py +53 -0
  220. ragops_observatory-0.10.0/tests/test_gate_and_cli.py +50 -0
  221. ragops_observatory-0.10.0/tests/test_ingest_formats.py +123 -0
  222. ragops_observatory-0.10.0/tests/test_judges.py +143 -0
  223. ragops_observatory-0.10.0/tests/test_judges_live_http.py +140 -0
  224. ragops_observatory-0.10.0/tests/test_llm_judge.py +52 -0
  225. ragops_observatory-0.10.0/tests/test_migrations.py +110 -0
  226. ragops_observatory-0.10.0/tests/test_orgs.py +50 -0
  227. ragops_observatory-0.10.0/tests/test_pgvector.py +67 -0
  228. ragops_observatory-0.10.0/tests/test_redis_queue.py +110 -0
  229. ragops_observatory-0.10.0/tests/test_reliability_v08.py +122 -0
  230. ragops_observatory-0.10.0/tests/test_sdk.py +75 -0
  231. ragops_observatory-0.10.0/tests/test_squad_benchmark.py +23 -0
  232. ragops_observatory-0.10.0/tests/test_sso.py +155 -0
  233. ragops_observatory-0.10.0/tests/test_worker_and_demo.py +38 -0
  234. ragops_observatory-0.10.0/tests/test_worker_locking.py +95 -0
  235. ragops_observatory-0.10.0/web/index.html +13 -0
  236. ragops_observatory-0.10.0/web/package-lock.json +2171 -0
  237. ragops_observatory-0.10.0/web/package.json +25 -0
  238. ragops_observatory-0.10.0/web/src/App.tsx +169 -0
  239. ragops_observatory-0.10.0/web/src/api.ts +82 -0
  240. ragops_observatory-0.10.0/web/src/components/Doctor.tsx +113 -0
  241. ragops_observatory-0.10.0/web/src/components/charts.tsx +101 -0
  242. ragops_observatory-0.10.0/web/src/components/ctx.tsx +34 -0
  243. ragops_observatory-0.10.0/web/src/components/parts.tsx +94 -0
  244. ragops_observatory-0.10.0/web/src/components/viz.tsx +185 -0
  245. ragops_observatory-0.10.0/web/src/main.tsx +6 -0
  246. ragops_observatory-0.10.0/web/src/pages/Assurance.tsx +75 -0
  247. ragops_observatory-0.10.0/web/src/pages/Benchmark.tsx +100 -0
  248. ragops_observatory-0.10.0/web/src/pages/Calibration.tsx +26 -0
  249. ragops_observatory-0.10.0/web/src/pages/Cost.tsx +52 -0
  250. ragops_observatory-0.10.0/web/src/pages/Doctor.tsx +25 -0
  251. ragops_observatory-0.10.0/web/src/pages/Drift.tsx +63 -0
  252. ragops_observatory-0.10.0/web/src/pages/Golden.tsx +49 -0
  253. ragops_observatory-0.10.0/web/src/pages/Integrations.tsx +37 -0
  254. ragops_observatory-0.10.0/web/src/pages/Knowledge.tsx +43 -0
  255. ragops_observatory-0.10.0/web/src/pages/Org.tsx +39 -0
  256. ragops_observatory-0.10.0/web/src/pages/Overview.tsx +215 -0
  257. ragops_observatory-0.10.0/web/src/pages/Patterns.tsx +77 -0
  258. ragops_observatory-0.10.0/web/src/pages/Release.tsx +139 -0
  259. ragops_observatory-0.10.0/web/src/pages/Report.tsx +26 -0
  260. ragops_observatory-0.10.0/web/src/pages/RootCauses.tsx +40 -0
  261. ragops_observatory-0.10.0/web/src/pages/Settings.tsx +65 -0
  262. ragops_observatory-0.10.0/web/src/pages/Slos.tsx +64 -0
  263. ragops_observatory-0.10.0/web/src/pages/TestRag.tsx +235 -0
  264. ragops_observatory-0.10.0/web/src/pages/Traces.tsx +153 -0
  265. ragops_observatory-0.10.0/web/src/styles.css +314 -0
  266. ragops_observatory-0.10.0/web/tsconfig.json +8 -0
  267. ragops_observatory-0.10.0/web/tsconfig.tsbuildinfo +1 -0
  268. ragops_observatory-0.10.0/web/vite.config.ts +10 -0
  269. ragops_observatory-0.10.0/website/index.html +305 -0
  270. ragops_observatory-0.10.0/website/site.js +112 -0
  271. ragops_observatory-0.10.0/website/style.css +236 -0
@@ -0,0 +1,12 @@
1
+ .git
2
+ **/__pycache__
3
+ *.db
4
+ *.db-*
5
+ .venv
6
+ .pytest_cache
7
+ .ruff_cache
8
+ site
9
+ node_modules
10
+ **/node_modules
11
+ web/dist
12
+ sdk-ts/dist
@@ -0,0 +1,15 @@
1
+ # Copy to .env and adjust. Never commit the real file.
2
+ RAGOPS_ADMIN_KEY=change-me-to-a-long-random-string
3
+ # Judge: heuristic (free, offline) | openai | ollama (any OpenAI-compatible endpoint) | ragas
4
+ RAGOPS_JUDGE=heuristic
5
+ RAGOPS_JUDGE_MODEL=gpt-4o-mini
6
+ # For ollama/vLLM: RAGOPS_JUDGE_BASE_URL=http://host.docker.internal:11434/v1
7
+ RAGOPS_JUDGE_BASE_URL=
8
+ RAGOPS_EMBEDDER=hashing
9
+ OPENAI_API_KEY=
10
+ # Optional SMTP for e-mail alerts
11
+ RAGOPS_SMTP_HOST=
12
+ RAGOPS_SMTP_PORT=587
13
+ RAGOPS_SMTP_USER=
14
+ RAGOPS_SMTP_PASSWORD=
15
+ RAGOPS_SMTP_FROM=ragops@example.com
@@ -0,0 +1,5 @@
1
+ * text=auto eol=lf
2
+ *.pdf binary
3
+ *.png binary
4
+ *.gif binary
5
+ *.jpg binary
@@ -0,0 +1,33 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.db
4
+ *.db-shm
5
+ *.db-wal
6
+ .env
7
+ .venv/
8
+ dist/
9
+ build/
10
+ *.egg-info/
11
+ .pytest_cache/
12
+ .ruff_cache/
13
+ site/
14
+ node_modules/
15
+ sdk-ts/dist/
16
+ web/dist/
17
+ web/node_modules/
18
+ ragops/server/ui/
19
+
20
+ # Personal / local working files (not part of the open-source project)
21
+ private/
22
+ /my-gen.jsonl
23
+ /gen.jsonl
24
+ /big-tests.jsonl
25
+ /assurance*.html
26
+ /assurance*.json
27
+ /ragops-report.md
28
+ /ragops-doctor.md
29
+ *.log
30
+ .env.*
31
+ !.env.example
32
+
33
+ _site/
@@ -0,0 +1,382 @@
1
+ # Changelog
2
+
3
+ All notable changes follow [Keep a Changelog](https://keepachangelog.com) and [SemVer](https://semver.org).
4
+
5
+ ## 0.10.0
6
+
7
+ First public release.
8
+
9
+ - **Licence:** MIT (previously Apache-2.0).
10
+ - **Packaging:** PyPI metadata, classifiers and project links; the release workflow builds the dashboard into the
11
+ wheel, checks the tag against the version, publishes with PyPI trusted publishing, creates a GitHub release from
12
+ this changelog and pushes a multi-architecture Docker image to GHCR. npm publishing is opt-in.
13
+ - **Docs website** on GitHub Pages (`docs.yml`), a release guide (`docs/releasing.md`), a case study of testing a
14
+ real RAG assistant (`docs/case-studies/my-rag.md`) and refreshed screenshots.
15
+ - **Community files:** code of conduct, support guide, citation file, CODEOWNERS and Dependabot.
16
+ - **Fix:** the `server` extra now installs `python-multipart`; without it `ragops serve` failed on a clean
17
+ `pip install` (found by testing the built wheel in an empty environment). The wheel and sdist now include the
18
+ built dashboard.
19
+ - **CLI:** a `--file` path that does not exist now says "config file not found" with the folder it looked in,
20
+ instead of "no pipeline".
21
+
22
+ ## 0.9.5
23
+
24
+ - Benchmark lab: when the selected runs have no question in common, cards say "on its own N questions (not
25
+ comparable)" instead of "N shared questions", and the warning says which run to unselect.
26
+
27
+ ## 0.9.4
28
+
29
+ - Benchmark lab scores every run on the questions all selected runs share (each card shows how many the run had), and
30
+ picks no "best" run when they share none. A 6-question run could be marked best against 21-question runs.
31
+ - Drift: topic examples are questions that contain the topic's words (an example could belong to another topic);
32
+ retrieval drift with higher scores is labelled "changed (scores up)" instead of "degraded".
33
+ - Cost: serving cost shows "not reported" when no request carries a cost; judge cost is labelled as an estimate.
34
+ - Reports no longer use the deprecated `datetime.utcnow()`.
35
+
36
+ ## 0.9.3
37
+
38
+ - Dashboard times are shown in your local time zone everywhere (alerts on the Overview, run pickers on Assurance and
39
+ Release guardian, decision history, first / last seen). Some new pages showed UTC, 5½ hours off in India.
40
+ - Overview: tokens and cost show "–" / "not reported" when the app never sends them, instead of 0 and $0.0000; a
41
+ metric with no data in the previous period says so instead of "no change".
42
+
43
+ ## 0.9.2
44
+
45
+ - Tests are isolated from the developer's shell: judge, provider, server and key variables (`RAGOPS_JUDGE*`,
46
+ `RAG_LLM`, `RAGOPS_URL`, ...) are cleared for each test, so `pytest` no longer calls a paid LLM or fails when a real
47
+ judge is configured.
48
+ - `pip install -e ".[dev]"` works on Windows: `chdb` (only used by the ClickHouse test) is skipped there.
49
+
50
+ ## 0.9.1
51
+
52
+ - LLM judge: a reply without a `score` field (seen with Sarvam: `KeyError: 'score'`) is read from `rating`, `value`
53
+ or per-statement verdicts before falling back to word matching, and the fallback reason names the keys received.
54
+ - `ragops demo` uses the free rule-based judge unless `--llm-judge` is given: the demo storyline is calibrated for it,
55
+ and an LLM judge spent hundreds of paid calls on made-up traffic.
56
+
57
+ ## 0.9.0
58
+
59
+ The dashboard now follows observe → investigate → fix → test → approve release → prove. No schema change.
60
+
61
+ - **Overview cockpit:** KPI cards with trend lines and change vs the previous window, pipeline flow with p50 / p95
62
+ per stage, Hit@K donut, failure / quality / feedback panels, recent alerts, traffic by version, environment filter
63
+ (`GET /cockpit`).
64
+ - **Evidence graph** on every trace: documents → passages → answer claims, supported / contradicted / no source,
65
+ interactive (`GET /traces/{id}/evidence-graph`). Span timeline from per-stage timings.
66
+ - **Failure intelligence:** patterns with trend (new, growing, steady, shrinking), first / last seen, daily series,
67
+ likely cause with confidence, closest and outdated documents, dominant version (`GET /failure-intelligence`).
68
+ - **Release guardian:** Pass / Review / Block against configurable gates (`release_gates` setting,
69
+ `GET|PUT /release/gates`), case-by-case diff, approve / reject / override with reason and admin rule, decisions in
70
+ the audit log (`/release/check`, `/release/decisions`).
71
+ - **Benchmark lab:** 2–5 runs side by side with best-run selection, charts and a disagreement grid
72
+ (`GET /runs/benchmark`).
73
+ - **Integrations and security** page (`GET /integrations`).
74
+ - Dark theme (default) and light theme; traces show environment and cost; navigation regrouped by workflow.
75
+ - The demo seeds per-stage timings, expected documents and a staging environment.
76
+ - Docs: `docs/dashboard.md` with screenshots.
77
+
78
+ ## 0.8.0
79
+
80
+ Reliability analytics, built into the existing platform (no schema migration; existing databases keep working).
81
+
82
+ - **Environments:** `environment` on traces, the Python client (`environment=` or `RAGOPS_ENVIRONMENT`), filters on
83
+ traces and costs, `GET /environments`.
84
+ - **Cost:** versioned price table (`ragops.reliability`), estimated cost when an app sends tokens but no cost
85
+ (recorded with `pricing_version`), per-project prices (`pricing` setting) or `RAGOPS_PRICING_FILE`;
86
+ `GET /costs` by model, version, environment and day, serving vs. evaluation.
87
+ - **Ranking metrics:** Precision@K, Recall@K, MRR and nDCG when expected documents are labelled (traces and runs).
88
+ - **Claim-level evidence:** every answer split into claims marked supported, contradicted or not found, with the
89
+ source passage; shown on the trace page and in run evidence.
90
+ - **Failure patterns:** `GET /failure-patterns` and a dashboard page grouping failures by stage and topic.
91
+ - **Incidents:** SLO alerts include related signals, recent changes, affected traces and checks to run first;
92
+ `GET /incident`.
93
+ - **Release gate:** `--max-p95-ms`, `--max-latency-increase`, `--max-error-rate` budgets and `--junit` XML.
94
+ - **Security probes:** `ragops generate --security`; leaks fail as `security_leak` and add a blocking assurance check.
95
+ - **Data rights:** `GET /export` and `DELETE /data` (by session, by date, or all), admin only and audited.
96
+ - **Dashboard:** new Assurance (verdict for any finished run, printable report, JSON evidence), Cost and Failure
97
+ patterns pages; claims table on traces. `GET /runs/{id}/assurance?format=json|html`.
98
+ - Docs: `docs/reliability.md`, `docs/feature-map.md`.
99
+
100
+ ## 0.7.3
101
+
102
+ - Abstention is scored from the test's label when there is one: an expected answer means "should answer", an expected
103
+ "I don't know" means "should decline". Word overlap with the corpus is used only for unlabelled traffic. Fixes
104
+ correct answers to paraphrased questions failing with "wrong abstention behaviour", and correct refusals failing
105
+ because the question shared words with the documents.
106
+ - Diagnosis no longer labels a failure `knowledge_gap` when the expected document reached the prompt.
107
+
108
+ ## 0.7.2
109
+
110
+ - A correct answer no longer fails on wording: when a test case's answer matches the reference answer
111
+ (answer correctness >= 0.8), low answer relevance is not a failure reason. Generated questions paraphrase the
112
+ documents ("initial email reply timeframe" vs "first response"), which made right answers fail.
113
+ - `ragops assure` prints every failing question with the answer, the expected answer, the stage and the reason.
114
+
115
+ ## 0.7.1
116
+
117
+ - `ragops assure -f path/to/ragops.yaml` works from any folder: `callable: my_rag:answer` and `corpus: docs/` are
118
+ read relative to the yaml (fixes `ModuleNotFoundError: No module named 'my_rag'`); `--dataset` and `--out` stay
119
+ relative to where you run the command.
120
+
121
+ ## [0.7.0] - 2026-11-20
122
+ ### Added: RAG assurance (stage 1 of the product roadmap, see docs/assurance.md)
123
+ - **`ragops generate`**: builds a test set from your own documents with your LLM: questions and short answers per
124
+ passage plus questions the documents do not answer. Every case is verified against its source passage (answer
125
+ supported, same numbers, not given away by the question, no duplicates; "unanswerable" questions the documents do
126
+ answer are rejected). `--offline` makes template questions without an LLM for CI.
127
+ - **`ragops assure`**: assurance report (HTML + JSON evidence) with a verdict (Ready / Ready with conditions / Not
128
+ ready) from explicit, configurable criteria; failures by stage in plain language with fixes and examples;
129
+ documents to write; outdated documents; judge reliability; supporting-evidence mapping to RBI FREE-AI, EU AI Act
130
+ Articles 15 and 72 and ISO/IEC 42001 clause 9; and a SHA-256 fingerprint checked by `ragops assure --verify`.
131
+ Works from a fresh run or from `ragops test --json-out`.
132
+ - **Grounding guardrail**: `POST /v1/projects/{project}/guard` and `RagopsClient.guard()` check each statement of an
133
+ answer against its passages before it is shown, and allow, rewrite to a safe fallback, block or flag it. Rules
134
+ first (verbatim support with the same numbers and negations), the LLM judge optionally. The SDK fails open by
135
+ default and can fail closed.
136
+ - `ragops test --json-out` also records the pipeline, dataset and judge, for `ragops assure --from-json`.
137
+ ### Fixed
138
+ - **Word-for-word support missed multi-sentence chunks.** Chunks were lower-cased before sentence splitting, so a
139
+ chunk stayed one span and a "not" in a different sentence vetoed a verbatim statement. Faithfulness shortcuts and
140
+ the guard now split first (regression test added).
141
+
142
+ ## [0.6.19] - 2026-11-19
143
+ ### Fixed
144
+ - `send_traffic.py` stopped at the first question the RAG could not answer (an empty LLM reply). It now prints
145
+ an ERROR line for that question, keeps sending the rest, and reports how many failed, like a real app keeps
146
+ serving other users.
147
+
148
+ ## [0.6.18] - 2026-11-19
149
+ ### Fixed
150
+ - **False "retrieval miss" for apps that chunk documents their own way** (LlamaIndex, LangChain, Haystack...).
151
+ Their chunk ids never equal the registered corpus ids, so a correctly retrieved chunk did not count as retrieved.
152
+ A retrieved chunk of the same document that shares most of its content with the gold chunk now counts.
153
+ - `compare.py` showed the previous run's numbers when a run failed; it now shows "error".
154
+ ### Added
155
+ - `send_traffic.py` (doctor and frameworks examples) registers the documents itself, so production diagnosis can
156
+ tell "no document covers this" from "the search missed it".
157
+ - Framework examples retry once when the LLM returns an empty answer (Sarvam 105B sometimes reasons until the
158
+ token budget runs out).
159
+ - `docs/field-report.md`: one day of testing real RAG pipelines, the seven judge failure modes found, the SLO
160
+ incident, the release gate results and the framework comparison, with real numbers.
161
+
162
+ ## [0.6.17] - 2026-11-19
163
+ ### Fixed
164
+ - An answer that contains the whole reference answer word for word, with extra detail from the documents
165
+ ("Acme bills monthly in arrears on the first day of each month. Invoices are emailed...") now scores 1.0 for
166
+ answer correctness without a model call; Sarvam had scored such answers 0.
167
+ - Framework examples allow `max_tokens: 8192`: Sarvam 105B sometimes spent the whole 4096-token budget thinking
168
+ about questions the documents do not cover and returned no answer.
169
+
170
+ ## [0.6.16] - 2026-11-19
171
+ ### Fixed
172
+ - **"I don’t know" with a typographic apostrophe was not recognised as declining**, so correct refusals
173
+ (Tokyo office, student discount) failed answer correctness, relevance and faithfulness. Models such as Sarvam
174
+ write ’; abstention detection now accepts it.
175
+ - **Faithfulness 0.00 on answers copied from the context.** A statement found nearly word for word in one context
176
+ sentence (same numbers, same negations) is supported without asking the model; paraphrases still go to the
177
+ judge. This removes most judge mistakes on extractive answers and saves judge calls.
178
+ - `ragops judge check` still reports "not working" when the model never answers, even though some checks are now
179
+ settled without it.
180
+ ### Changed
181
+ - `ragops test` prints the RAGOps version next to the judge, so a stale install is visible at a glance.
182
+
183
+ ## [0.6.15] - 2026-11-19
184
+ ### Added
185
+ - **`examples/frameworks/`: the same RAG built with LlamaIndex, LangChain, LangGraph and Haystack**, using the
186
+ same documents, test set, LLM (Sarvam, Groq, Gemini, OpenAI or Ollama) and local embeddings (fastembed
187
+ bge-small), so `ragops test`, `doctor`, `gate` and the dashboard compare the frameworks themselves.
188
+ `compare.py` runs all four into one table; `send_traffic.py <framework>` sends live traffic to one project per
189
+ framework for the Organisation page.
190
+
191
+ ## [0.6.14] - 2026-11-19
192
+ ### Fixed
193
+ - **`ragops gate` ignored your LLM judge** and always scored with word matching, so it could disagree with
194
+ `ragops test` (7 baseline failures in the gate, 1 in the test, on the same cases). The gate now uses the same
195
+ judge (`RAGOPS_JUDGE*`, or `--judge`) and the same corpus (`ragops.yaml`) as `ragops test`, prints which judge
196
+ it used, and also gates `answer_correctness` when the golden cases have expected answers.
197
+ - An answer that states the reference word for word ("20 requests per second" vs "20 requests per second.")
198
+ scores 1.0 for answer correctness without asking the model.
199
+
200
+ ## [0.6.13] - 2026-11-19
201
+ ### Fixed
202
+ - `ragops gate --golden rag_tests.jsonl` crashed with `JSONDecodeError: Extra data`: the gate only read JSON/YAML.
203
+ It now reads JSONL, JSON, YAML and CSV, the same files `ragops test` reads.
204
+
205
+ ## [0.6.12] - 2026-11-19
206
+ ### Fixed
207
+ - **Faithfulness 0.00 on correct answers with Sarvam** ("The context states that refunds are available within
208
+ 30 days", score 0). The judge was splitting the CONTEXT into claims and marking facts the answer left out as
209
+ unsupported. RAGOps now splits the ANSWER into numbered statements itself and asks for one verdict per
210
+ statement; verdicts written as "yes"/"supported"/1 are read correctly, and an "I don't know" answer is
211
+ faithful without a model call.
212
+ ### Added
213
+ - `ragops rejudge`: judge a project's failed traces (or `--all`) again with the current judge, so an upgrade
214
+ does not need a new project and fresh traffic.
215
+
216
+ ## [0.6.11] - 2026-11-19
217
+ ### Fixed
218
+ - **Judge scores that contradicted their own explanation** ("directly supported by the context", score 0.00).
219
+ Faithfulness now asks for a supported/unsupported verdict per claim and RAGOps counts them, so the score
220
+ always matches what the judge found. Other metrics ask for the reason before the score.
221
+ - **Answer relevance no longer punishes short, complete answers** for leaving out details the question did not
222
+ ask for ("The Free plan includes 3 projects." scored 0).
223
+ - Scores returned on a 0-10 or 0-100 scale are rescaled instead of clipped to 1.
224
+
225
+ ## [0.6.10] - 2026-11-19
226
+ ### Fixed
227
+ - **Faithfulness no longer sees the reference answer.** Test cases sent the expected answer to every judge prompt,
228
+ so judges (notably Sarvam 105B) marked short but correct answers ("Every 6 hours.") as unfaithful because they
229
+ were less complete than the reference. The reference now goes only to `answer_correctness` and `context_recall`.
230
+ - **A correct "I don't know" scores 1.0 for answer correctness without a model call** when the reference also
231
+ declines (the Tokyo-office case was failing on a judge mistake).
232
+ - **Broken judge JSON** (unescaped quotes, cut-off reason) no longer falls back to word matching when the score
233
+ itself is readable.
234
+
235
+ ## [0.6.9] - 2026-11-18
236
+ ### Added
237
+ - **Reasoning models as the judge (Sarvam 105B, Qwen, DeepSeek).** The judge ignores `<think>...</think>` blocks
238
+ before reading the JSON score, and `RAGOPS_JUDGE_MAX_TOKENS` gives the model room to think. An empty reply now
239
+ fails with a clear reason (`finish_reason`) instead of a confusing JSON error.
240
+
241
+ ## [0.6.8] - 2026-11-18
242
+ ### Fixed
243
+ - **A correct "I don't know" could be counted as a mistake.** The abstention check treated a question as covered
244
+ by the corpus at relevance >= 0.18 while the diagnosis called anything < 0.30 a knowledge gap; between the two the
245
+ same request was "uncovered" and "wrongly refused". Both now use 0.30. Benchmarks: synthetic false alarms
246
+ 3.6% -> 1.8% and knowledge-gap precision 54% -> 64% (accuracy unchanged at 89.6%); SQuAD false alarms
247
+ 21.7% -> 22.3% (accuracy unchanged at 73.8%).
248
+ - **Answer-relevance SLOs no longer count correct refusals as bad requests** (they score 0 relevance by definition),
249
+ matching the failure rule.
250
+ - A correct refusal is no longer counted under "Where the pipeline breaks" (failures only), but it is still recorded
251
+ as a knowledge gap, so the missing content stays on the knowledge-base to-do list ("Write these next").
252
+ - Benchmarks count an alarm only when a request is flagged as a failure.
253
+ - The demo bot now sometimes guesses on questions it cannot answer, so the demo shows a real knowledge-gap failure.
254
+
255
+ ## [0.6.7] - 2026-11-18
256
+ ### Fixed
257
+ - **Ingestion failed with HTTP 500 ("database is locked") while the worker was judging on SQLite.** Trace
258
+ evaluation kept its write transaction open during LLM judge calls, holding SQLite's database-wide write lock for
259
+ seconds or minutes. The worker now commits before judging and writes results in a short second transaction.
260
+ ### Added
261
+ - `examples/doctor/send_traffic.py` retries briefly on server errors.
262
+
263
+ ## [0.6.6] - 2026-11-18
264
+ ### Added
265
+ - `ragops test` prints which judge scored the run, and warns (with the reason) when an LLM judge fell back to word
266
+ matching, so a weak report caused by the judge is never mistaken for a weak pipeline.
267
+
268
+ ## [0.6.5] - 2026-11-18
269
+ ### Fixed
270
+ - **The LLM judge now waits and retries on rate limits (429) and temporary server errors** (honouring
271
+ Retry-After, exponential back-off, `RAGOPS_JUDGE_RETRIES`, default 6). Before, a worker evaluating a burst of traces
272
+ on a free tier (Gemini, Groq) silently fell back to the heuristic judge for most of them.
273
+ - `ragops test --push` explains a missing server, a rejected key or a missing project in one line instead of a
274
+ traceback.
275
+
276
+ ## [0.6.4] - 2026-11-18
277
+ ### Fixed
278
+ - With an LLM judge, **answer correctness is now judged by meaning**: a correct paraphrase of the expected answer
279
+ scores full marks instead of failing on word overlap. The heuristic judge still compares key terms and numbers.
280
+ ### Added
281
+ - Test reports show what the pipeline answered and what was expected for every failed case.
282
+
283
+ ## [0.6.3] - 2026-11-17
284
+ ### Added
285
+ - `RAGOPS_JUDGE_API_KEY`: the LLM judge can use a different provider's key than your application (e.g. Gemini).
286
+ ### Fixed
287
+ - When the LLM judge fails, the HTTP status and the provider's message are recorded, and `ragops judge check` prints
288
+ "Why it fell back: …" instead of only "check the URL, model name and key".
289
+ - The LLM judge accepts JSON replies wrapped in Markdown fences or surrounded by text (Gemini, some Ollama models)
290
+ and retries without `response_format` for providers that do not support JSON mode.
291
+
292
+ ## [0.6.2] - 2026-11-17
293
+ ### Fixed
294
+ - HTTP pipelines that cannot be reached now fail with "could not connect to <url>: is your RAG server running on
295
+ that address?" instead of a raw `ConnectError`, and timeouts say which setting to raise.
296
+ - `ragops test` / `ragops doctor` named the `callable:` in reports even when `kind: http` was in effect; reports now
297
+ name what is actually called.
298
+ - The doctor no longer suggests passing `--corpus` when every case crashed.
299
+
300
+ ## [0.6.1] - 2026-11-17
301
+ ### Fixed
302
+ - Windows: `ragops doctor`, `ragops test`, `ragops report`, `ragops init` and the gate crashed with
303
+ `UnicodeEncodeError: 'charmap' codec can't encode character` because files were written in the system code page
304
+ (cp1252), which cannot hold the reports' emoji. All files are now read and written as UTF-8, and console output
305
+ switches to UTF-8 on Windows (and never crashes on other non-UTF-8 consoles).
306
+
307
+ ## [0.6.0] - 2026-11-16
308
+ ### Added
309
+ - **RAG doctor** (`ragops doctor`, UI page, `/doctor` endpoints): a verdict on whether your RAG works, its mistakes
310
+ grouped by cause with real examples, how to confirm and fix each, and **treatment trials** that re-run your pipeline
311
+ with candidate config changes and recommend only fixes verified by a paired comparison (fewer mistakes, more fixed
312
+ than broken, no new errors, no significant metric regression). Combined fixes are tested too; `--write-config`
313
+ writes the fixed config. Server-side trials for registered HTTP pipelines run in the worker. Walkthrough in
314
+ `examples/doctor/`.
315
+ - **Answer correctness** metric against the reference answer (number-aware, abstention-aware), and a new
316
+ *right document, wrong passage* (`incomplete_context`) diagnosis for test runs.
317
+ - **Organisations** above projects: org-scoped keys and roles, org overview of every project's health, moving projects.
318
+ - **Single sign-on (OIDC)**: authorization code + PKCE, JWKS-verified ID tokens, group → role mapping, allowed e-mail
319
+ domains, revocable session tokens; "Sign in with …" in the UI.
320
+ - **Alembic migrations** with automatic upgrade on start, in-place upgrades of v0.4/v0.5 databases (JSON embeddings
321
+ converted to pgvector), `ragops db upgrade|current|history`, Helm pre-upgrade migration Job.
322
+ - **Arq + Redis** job dispatch with a Postgres transactional outbox and periodic sweep (no lost jobs on Redis restart).
323
+ - **OTLP/HTTP protobuf** (and gzip) on `/otlp/v1/traces`.
324
+ - **Native PDF** reliability report (`format=pdf`, `ragops report --format pdf`, UI download).
325
+ - **Ragas 0.4** judge rewrite, `ragops judge check` (agreement and Cohen's kappa on labelled cases, exits 1 when the
326
+ judge is not working) and a deterministic OpenAI-compatible stub server for offline tests.
327
+ - **Evidently 0.7** drift report (columns + query-embedding drift) at `/drift/evidently` and in the UI.
328
+ - **Microsoft Presidio** redaction (`RAGOPS_REDACTOR=presidio`): names and locations in addition to the regex
329
+ entities; runs offline.
330
+ - Alerts: **Microsoft Teams**, Slack Block Kit messages, PagerDuty `dedup_key`/links, SMTP `starttls|ssl|none`,
331
+ `ragops alerts test` and `POST /alert-channels/{id}/test` that report the receiver's exact answer.
332
+ - Trace ingestion accepts common field names from other stacks (`question`, `response`, `chunks`, `page_content`,
333
+ `ground_truth`, plain-string chunks).
334
+ - Docker: overridable base images, `EXTRAS` build arg, venv, `/data` volume. Compose: Redis, SSO and SMTP settings.
335
+ Helm: Redis, SSO, SMTP, Presidio, security contexts, `helm test`, NOTES.
336
+ ### Fixed
337
+ - Context recall now checks the reference answer's facts, not only whether the expected document was retrieved, so
338
+ a fragment of the right document no longer scores 1.0.
339
+ - A correct "I don't know" on a question the corpus does not cover is no longer counted as a failure.
340
+ - Trace fields with unrecognised names were silently dropped; the common aliases above are now mapped.
341
+
342
+ ## [0.5.0] - 2026-11-13
343
+ ### Added
344
+ - **Test your own RAG**: register any RAG system's HTTP endpoint (any language) with JSON field mapping, check one
345
+ question, run golden sets or pasted questions from the UI/API (executed by the worker with live progress), and
346
+ compare runs with paired-bootstrap intervals. `ragops init`, `ragops test` (thresholds for CI, `--push` to the
347
+ server), `ragops corpus push`. Adapters for HTTP, Python callables, LangChain, LlamaIndex and Haystack 2.x.
348
+ SSRF protection for server-side calls (`RAGOPS_PIPELINE_ALLOWED_HOSTS`). Built-in demo endpoint.
349
+ - **React web UI** at `/ui` (Vite + TypeScript + Recharts): overview with the pipeline schematic, root causes,
350
+ traces with evidence, test your RAG, golden sets, calibration, drift, knowledge base, SLOs and alerts, report,
351
+ settings with key management and audit log. Built into the Docker image.
352
+ - **TypeScript SDK** (`sdk-ts`, `@ragops/sdk`): tracing with per-step timing, `observe()`, batching, retries,
353
+ feedback, corpus, pipelines and runs. Unit and live-server integration tests.
354
+ - **pgvector** storage: `vector(N)` columns with HNSW cosine indexes, index-backed corpus search
355
+ (`/corpus/search`) and index-candidate diagnosis for corpora above `RAGOPS_INMEMORY_CORPUS_LIMIT`.
356
+ - **ClickHouse** analytics mirror with async inserts, `/analytics` endpoint and `ragops clickhouse init|backfill`;
357
+ SQL verified against the embedded ClickHouse engine (chdb) in tests.
358
+ - **Public benchmark on SQuAD 2.0** (`ragops benchmark --dataset squad`) and a **case study** on a real RAG service.
359
+ - Per-step SDK context managers, Haystack logging adapter, draft reference answers extracted for golden cases.
360
+ - GitHub issue templates (bug, wrong diagnosis, feature) and a PR template.
361
+ ### Fixed (found by the SQuAD benchmark and the case study)
362
+ - Citations containing punctuation, e.g. `[Sky_(United_Kingdom)]`, were scored as unsupported claims.
363
+ - Re-chunking a corpus created new document versions and made past answers look outdated.
364
+ - A perfectly constant metric produced a NaN p-value and crashed the drift endpoint.
365
+ - Chunking defects are now recognised by a chunk boundary that cuts the best-matching sentence (recall 15% → 42%).
366
+ - An outdated chunk only marks an answer stale when the answer cites or uses it; otherwise it is a warning.
367
+ - Quality change points are linked to deploys made later on the following day.
368
+
369
+ ## [0.4.0] - 2026-11-13
370
+ ### Added
371
+ - Stage-level root-cause classifier (7 stages) with evidence, plus a reproducible failure-injection benchmark.
372
+ - Four-layer drift detection: query (domain classifier + MMD + uncovered-topic discovery), retrieval, corpus, quality
373
+ (change-point detection linked to the deploy that likely caused it).
374
+ - Knowledge-base health: coverage gaps, hot chunks, never-retrieved chunks, duplicates and contradictions.
375
+ - Failure → golden set loop (manual and automatic), versioned and de-duplicated.
376
+ - `ragops gate` CLI and GitHub Action: paired-bootstrap release gate with per-stage PR comment.
377
+ - Online evaluation with daily judge budget and stratified sampling; judge calibration with Cohen's κ.
378
+ - RAG SLOs with error budgets, burn rate and alerts to Slack, webhooks, PagerDuty and e-mail.
379
+ - PII redaction, hash-only storage mode, retention, project API keys with roles, audit log.
380
+ - OTLP/OpenInference receiver, Langfuse and Phoenix importers, Python SDK, LangChain and LlamaIndex adapters.
381
+ - Durable DB-backed job queue and worker; Streamlit dashboard; weekly reliability report (Markdown/HTML).
382
+ - Docker Compose, Helm chart, CI, release workflow.
@@ -0,0 +1,12 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use RAGOps Observatory in research or a report, please cite it."
3
+ title: "RAGOps Observatory: stage-level diagnosis, release gates and assurance reports for RAG systems"
4
+ authors:
5
+ - name: "Arathi S"
6
+ type: software
7
+ license: MIT
8
+ version: "0.10.0"
9
+ date-released: "2026-11-23"
10
+ repository-code: "https://github.com/ArathiS1/ragops-observatory"
11
+ url: "https://arathis1.github.io/ragops-observatory/"
12
+ keywords: [retrieval-augmented generation, LLM evaluation, LLMOps, observability, AI assurance]
@@ -0,0 +1,15 @@
1
+ # Code of conduct
2
+
3
+ RAGOps Observatory is a project for people who build reliable AI systems. Everyone who takes part (in issues, pull
4
+ requests, discussions or any other channel) is expected to:
5
+
6
+ - be respectful and assume good intent, including when you disagree about technical choices;
7
+ - give and accept constructive feedback about work, never about people;
8
+ - welcome newcomers and explain context they may be missing;
9
+ - never harass, insult, threaten or discriminate against anyone, in public or in private;
10
+ - not share anyone's private information without their explicit permission.
11
+
12
+ Maintainers may edit or remove contributions, and block participants, that break these rules.
13
+
14
+ To report a problem, use GitHub's private "Report content" option or open a private security advisory; reports are
15
+ handled confidentially. This code is inspired by the [Contributor Covenant](https://www.contributor-covenant.org).
@@ -0,0 +1,22 @@
1
+ # Contributing
2
+
3
+ Thanks for helping make RAG systems more reliable.
4
+
5
+ ```bash
6
+ git clone https://github.com/ArathiS1/ragops-observatory && cd ragops-observatory
7
+ python -m venv .venv && source .venv/bin/activate
8
+ pip install -e ".[dev]"
9
+ ruff check ragops tests && pytest -q
10
+ ragops benchmark # must not regress (CI checks accuracy >= 85%, false alarms <= 8%)
11
+ ragops benchmark --dataset squad # real-text benchmark; paste both summaries in classifier PRs
12
+ ```
13
+
14
+ - **Web UI** (`web/`): `npm install && npm run dev` (proxies to the API on :8000); `npm run build` must pass.
15
+ - **TypeScript SDK** (`sdk-ts/`): `npm install && npm test`; `npm run test:integration` against a running server.
16
+ - **PostgreSQL tests**: set `RAGOPS_TEST_PG_URL` to a database with the pgvector extension to run them locally.
17
+ - **Changing the root-cause classifier?** Run `ragops benchmark` before and after and paste both summaries into the
18
+ PR. Do not tune thresholds against the benchmark alone; add a new injected case if you fix a real-world miss.
19
+ - **New metric or judge?** Implement it in `ragops/eval/judges.py` for every judge, and add a unit test.
20
+ - **New integration?** Put it in `ragops/sdk/adapters.py` (lazy imports only) or `ragops/server/importers.py`.
21
+ - Keep the SDK dependency-light: it must never raise into the host application.
22
+ - Commits: small and focused; describe *why* in the PR. Add a CHANGELOG entry under "Unreleased".
@@ -0,0 +1,39 @@
1
+ # RAGOps Observatory — one image for the API, worker (DB or Arq/Redis), Streamlit dashboard and CLI.
2
+ #
3
+ # docker build -t ragops-observatory:0.6.0 .
4
+ # docker build --build-arg EXTRAS=server,dashboard,pgvector,redis,presidio,ragas,evidently -t ragops:full .
5
+ #
6
+ # Base images are build args so air-gapped / mirrored registries work:
7
+ # --build-arg NODE_IMAGE=registry.acme.internal/node:22-slim --build-arg PYTHON_IMAGE=registry.acme.internal/python:3.12-slim
8
+ ARG NODE_IMAGE=node:22-slim
9
+ ARG PYTHON_IMAGE=python:3.12-slim
10
+
11
+ # --- stage 1: build the React UI --------------------------------------------------------------------------------
12
+ FROM ${NODE_IMAGE} AS ui
13
+ WORKDIR /web
14
+ COPY web/package.json web/package-lock.json* ./
15
+ RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
16
+ COPY web/ ./
17
+ RUN npm run build
18
+
19
+ # --- stage 2: the Python service ----------------------------------------------------------------------------------
20
+ FROM ${PYTHON_IMAGE}
21
+ ARG EXTRAS=server,dashboard,pgvector,redis,sso
22
+ ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 \
23
+ VIRTUAL_ENV=/opt/ragops PATH=/opt/ragops/bin:$PATH
24
+ WORKDIR /app
25
+ RUN (id -u ragops >/dev/null 2>&1 || useradd --create-home --uid 10001 ragops) \
26
+ && python3 -m venv /opt/ragops
27
+ COPY pyproject.toml README.md LICENSE ./
28
+ COPY ragops ./ragops
29
+ COPY --from=ui /web/dist ./ragops/server/ui
30
+ RUN pip install --upgrade pip >/dev/null && pip install ".[${EXTRAS}]" \
31
+ && (case ",${EXTRAS}," in *,presidio,*) python -m spacy download en_core_web_sm || true;; esac) \
32
+ && mkdir -p /data && chown ragops /data
33
+ USER ragops
34
+ ENV RAGOPS_DATABASE_URL=sqlite:////data/ragops.db
35
+ EXPOSE 8000 8501
36
+ VOLUME ["/data"]
37
+ HEALTHCHECK --interval=30s --timeout=5s --start-period=20s CMD python -c "import urllib.request,os,sys; sys.exit(0 if os.environ.get('RAGOPS_ROLE','api')!='api' else urllib.request.urlopen('http://localhost:8000/health').status!=200)"
38
+ # Override per service: `ragops worker`, `ragops dashboard`, `ragops demo`, `ragops db upgrade`
39
+ CMD ["ragops", "serve", "--host", "0.0.0.0", "--port", "8000"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Arathi S
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.