{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"run (cyclomatic 26): run has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 202, fullTextSearch, spawnDocument, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1204977d55b5b088f66814736c27b04d00120912ba655996405e082f0a0c175"}},{"ruleId":"D1","level":"warning","message":{"text":"pdf_ocr.merge_table_cell_and_ocr (cyclomatic 25): pdf_ocr.merge_table_cell_and_ocr has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/pdf_ocr.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"287aacd0ece6461cb457be84849a64ba30b8c9761e2bb59201066415bd804cba"}},{"ruleId":"D1","level":"warning","message":{"text":"VectorRetrieval.run (cyclomatic 22): VectorRetrieval.run has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/vectorindex.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a7d85b78f7f19640922dc5728b39cb012b8e7d19c682f45c6ba62d2dfe90ca"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupPage.update_model (cyclomatic 22): SetupPage.update_model has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/setup.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d33570ba5e7c37673b400a9737deea8c94c2c03c67cdbf7c1b59b55b21f8a39"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline.construct_pipeline_ui (cyclomatic 20): pipeline.construct_pipeline_ui has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"80210faca93d5f344ac13d121f6ddfb525b5987f0fbbc48df400825125398cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"AnswerWithInlineCitation.stream (cyclomatic 20): AnswerWithInlineCitation.stream has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"860113f0387253d3d08a0a67d627a544032f7e8bd14548d7ba78fc001a422ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"pdf_viewer.onBlockLoad (cyclomatic 19): pdf_viewer.onBlockLoad has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 6 function items inside it that branch (matchRatio, a function literal at line 85, a function literal at line 128, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/pdf_viewer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc682d2e5a314595a3fb0cd9bf72fddf62a8cfae91b756ae7f080a2260de307a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPage.on_building_ui (cyclomatic 18): ChatPage.on_building_ui has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fda7a40aa3a43173daf2fdd7b543eb86e8f5b62c38df4f7a5843527ca42a7fb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPage.submit_msg (cyclomatic 18): ChatPage.submit_msg has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"299f0eb79d6a10b800724014cf2a216942cede0bef24b62d5d0d570eaf27ea6d"}},{"ruleId":"D1","level":"warning","message":{"text":"AdobeReader.load_data (cyclomatic 16): AdobeReader.load_data has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/adobe_loader.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd422bb4346cba7e8269406f8578766cb799de50a37ad8b9ea253a538b3cd25d"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentRetrievalPipeline.run (cyclomatic 16): DocumentRetrievalPipeline.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d289ef65b34f06949740acd697760a36768b0583089d42716da7a7cff5d83658"}},{"ruleId":"D1","level":"warning","message":{"text":"FileIndexPage.index_fn (cyclomatic 16): FileIndexPage.index_fn has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77e7fb1d9b12372e71768db2d43baf1e0023fe72ae2d0c3da708766c18da6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"pdf_ocr.merge_table_cell_and_ocr (cognitive 76): pdf_ocr.merge_table_cell_and_ocr has cognitive complexity 76 (threshold 15). Drivers by points: if/else 16 (53 pts), loops 6 (20 pts), boolean chains 3 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/pdf_ocr.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48f4d66058df9fbab8622ea2c29830b6edeca81adb4b987f1aac12a21b6f1ef"}},{"ruleId":"D2","level":"warning","message":{"text":"run (cognitive 52): run has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (34 pts), loops 6 (15 pts), boolean chains 2, ternaries 1 (nesting depth added 23). Most of this is not in the body itself: 2 of the 52 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 202, fullTextSearch, scrollToCitation, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6c8d90dcc9986b15cbf486f3b7b2b20df5e29ac8084e2520be5a06f5d4a066"}},{"ruleId":"D2","level":"warning","message":{"text":"AnswerWithInlineCitation.stream (cognitive 44): AnswerWithInlineCitation.stream has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (31 pts), error handling 2 (6 pts), ternaries 1 (4 pts), loops 2, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6704a5786d3f1351989988cd8bced621b59f912467b798410ef624ddf32a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"export.from_log_to_dict (cognitive 40): export.from_log_to_dict has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 3 (7 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/export.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f15645accacc9c4db964bd934636a5be36a20d6576fbdb09fad6b2de7af1230"}},{"ruleId":"D2","level":"warning","message":{"text":"RewooAgent._parse_planner_evidences (cognitive 33): RewooAgent._parse_planner_evidences has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 6 (13 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/agent.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"63be8ce936adbe6a9a25beb8a249ef2de87c0287f9a998cebbf3a23c20aa3f68"}},{"ruleId":"D2","level":"warning","message":{"text":"UnstructuredReader.load_data (cognitive 33): UnstructuredReader.load_data has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 2 (6 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/unstructured_loader.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"069790fde36f534151b761d9213635b8d9f75a355d08352f7f27ec69258f5799"}},{"ruleId":"D2","level":"warning","message":{"text":"AnswerWithInlineCitation.answer_to_citations (cognitive 32): AnswerWithInlineCitation.answer_to_citations has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 2 (4 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"472628b8793dbc54d354acde249d33a83cb08960d22c1dcd90d0cf1ad83a2159"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorRetrieval.run (cognitive 32): VectorRetrieval.run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 4 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/vectorindex.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbad601138c11d5b78315083a0820fed746ff917eb1d44442293ce447529d218"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPage.on_building_ui (cognitive 30): ChatPage.on_building_ui has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90a3fa5334e261f096b287503d4f6e622ff98a0b9da11b0813c75baf6c1a57e"}},{"ruleId":"D2","level":"warning","message":{"text":"SetupPage.update_model (cognitive 30): SetupPage.update_model has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 3 (5 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/setup.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c646a9363cf987c29afed268cb00b192e8f9aa5a99ace819b92bb11d3de418"}},{"ruleId":"D2","level":"warning","message":{"text":"onBlockLoad (cognitive 30): onBlockLoad has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 13 function items inside it that branch (matchRatio, compareText, createModal::onclick, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/pdf_viewer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e4d1add76f4855d9b91d3c51c64e0abee49852228c84ed391a9fed1afc9d52"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentRetrievalPipeline.run (cognitive 28): DocumentRetrievalPipeline.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (5 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8754f70f6683873d3effa40d1a59753896d123548ff04e874eb0f769e7ea9628"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline.construct_pipeline_ui (cognitive 27): pipeline.construct_pipeline_ui has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 6 (8 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f39b15f45e2e85396839f39dcfc1a7f442f5d39b1b87fca6b469a3a70b31f8"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.reasoning_tab (cognitive 27): SettingsPage.reasoning_tab has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/settings.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37ae92b5a72247ca145bebdffff6f6bb256843a547abce8bff73b800571d1cf"}},{"ruleId":"D2","level":"warning","message":{"text":"DoclingReader.load_data (cognitive 26): DoclingReader.load_data has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (8 pts), loops 6 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/docling_loader.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84e4605c53ca04d22d6e8bc88850f6c26c859dc834efec137661eff4c28a140"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPage.chat_fn (cognitive 25): ChatPage.chat_fn has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c02824188bf6f745b2fd4d85ce6b1c3ad1f78d715bca0ef242af74c99c5aada"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorIndexing.write_chunk_to_file (cognitive 24): VectorIndexing.write_chunk_to_file has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/vectorindex.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b02b0eee0f87b6a92d2c8a2b2d3347320397429df914d2fedd2288c03760195"}},{"ruleId":"D2","level":"warning","message":{"text":"gpt4v.stream_gpt4v (cognitive 24): gpt4v.stream_gpt4v has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 2 (4 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e44470923915c91fb03aedee275782c7f7623b6e0939b3bfb745606c94b2170"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.__init__ (cognitive 24): SettingsPage.__init__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/settings.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1bdc2e0b393e753e87e512e5c240b7b23184beacd1ce7c957d7ec0c5be0f32"}},{"ruleId":"D2","level":"warning","message":{"text":"RewooAgentPipeline.prepare_citation (cognitive 24): RewooAgentPipeline.prepare_citation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/rewoo.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe3e30a0a5a32bb46779d578c6723ccd4edcd9bc8ec02319b280c3ed1ec9dce"}},{"ruleId":"D2","level":"warning","message":{"text":"PrepareEvidencePipeline.run (cognitive 23): PrepareEvidencePipeline.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/format_context.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d91ec41d2abac764c6152bfc1064da051af4a3fc800721b4195cffc528615a"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIndexPage.index_fn_url_with_default_loaders (cognitive 22): FileIndexPage.index_fn_url_with_default_loaders has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (7 pts), error handling 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c508266459c0bb60141ab0c5d6f1a5f954d95e134ec680df6a47e690fb1144"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPage.create_pipeline (cognitive 22): ChatPage.create_pipeline has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (6 pts), boolean chains 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60faaea8f54159af4e19a6bcc64d6e3fc19a2bc8c9a30af1b4fcc6376f7682a"}},{"ruleId":"D2","level":"warning","message":{"text":"AdobeReader.load_data (cognitive 21): AdobeReader.load_data has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (6 pts), loops 5, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/adobe_loader.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c068d626a6ce5742c5a7f19b0be41b4e1105a505527394eea04fe41d429e5b91"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPage.submit_msg (cognitive 21): ChatPage.submit_msg has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c391425f9cb9ff70a7850932b74b11b78748e4f4d04a057eb9613802681d0bd"}},{"ruleId":"D2","level":"warning","message":{"text":"DocSearchTool.prepare_evidence (cognitive 21): DocSearchTool.prepare_evidence has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b0f7697acc88507f496118a072ade2deb921d02a157369f4e8ae14613eee0d"}},{"ruleId":"D2","level":"warning","message":{"text":"DocSearchTool.prepare_evidence (cognitive 21): DocSearchTool.prepare_evidence has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/rewoo.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbb9608b8da85fe4a00076c08ca4a303e626cfc4cdacf01e0f22bc07bda2121"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.construct_chat_ui (cognitive 20): chat.construct_chat_ui has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"238d22b9614c251093ce3cc5d0626536c0b624a3824e75aca2b15b50fe5ee17d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIndexPage.index_files_from_dir (cognitive 20): FileIndexPage.index_files_from_dir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b4d67b83bb5f6c4b0a58fea18c89264ec29cb6d5cfc436a17fc3f3820caefd"}},{"ruleId":"D2","level":"warning","message":{"text":"AnswerWithContextPipeline.prepare_citations (cognitive 19): AnswerWithContextPipeline.prepare_citations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (6 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"88721944e6910afb88fb4c46fec4fc6befcae0f895bd133d28e4ee986da14fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIndexPage.index_fn (cognitive 19): FileIndexPage.index_fn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bacf7d0126626ed8b661112d3289be20d9a792442dcf8ff67d2503a6117623"}},{"ruleId":"D2","level":"warning","message":{"text":"docs.from_definition_to_markdown (cognitive 18): docs.from_definition_to_markdown has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (12 pts), loops 2 (4 pts), if/else 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/docs.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"663cc8d4bc880552570a2fcef725b237fcc95cf26406395154983570ecb57934"}},{"ruleId":"D2","level":"warning","message":{"text":"AnswerWithContextPipeline.stream (cognitive 18): AnswerWithContextPipeline.stream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 2, boolean chains 1, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c39e3cb2a0381777f194cb9a66580914f28706817f811fdfb01cbdb24ef78c"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.find_text (cognitive 18): utils.find_text has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/utils.py"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2a3088c84f1d152ded794f93d21933aa551d8ddf8c5af13acb2a4285a17012"}},{"ruleId":"D2","level":"warning","message":{"text":"HelpPage.__init__ (cognitive 18): HelpPage.__init__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/help.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4db34fd04c2fe8b832f4b91703b190f611d89079660452a57884a39b962f49"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactAgent.stream (cognitive 17): ReactAgent.stream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"15981160bf17153b96b953fe3a6cc70403c9fdd755dcbf3a9c0ccbf86d06d8c1"}},{"ruleId":"D2","level":"warning","message":{"text":"MathpixPDFReader.lazy_load_data (cognitive 17): MathpixPDFReader.lazy_load_data has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d87ea82a0f35bb9b3fb26d097743d3d7f7a39ffb6801750cf416633e32d52e"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPTool._arun_tool (cognitive 16): MCPTool._arun_tool has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/tools/mcp.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec485e696e48b4d8100c2a4bea2b0fe8bcb85116ac0cf4df97f7a1b58b756d"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptTemplate.partial_populate (cognitive 16): PromptTemplate.partial_populate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/prompts/template.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06600cdbd68a5e7636fb9a404db3f278096aae0b4ceb33c5e2d4d532c7d2cf8"}},{"ruleId":"D2","level":"warning","message":{"text":"MhtmlReader.load_data (cognitive 16): MhtmlReader.load_data has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/html_loader.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ae416ce50771f5f92944d5d3c10e5b4114f42c85eb3352ed90402315c15c28"}},{"ruleId":"D2","level":"warning","message":{"text":"MathpixPDFReader.load_data (cognitive 16): MathpixPDFReader.load_data has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2, boolean chains 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f81bc2a741ac0f873944d4ed8026a6b74ac81f27c62587cc446d7d6b6de9f0"}},{"ruleId":"D2","level":"warning","message":{"text":"FullQAPipeline.show_citations_and_addons (cognitive 16): FullQAPipeline.show_citations_and_addons has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/simple.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad1726dca9d5580ec4ff158b812aba6a42cd3264040b3f623ca8183d37301ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: file/ui.py: FileTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 704 over it, 2.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8e6affc21dd5ece9bf01832d688a61032e2dffbfddaf2da7aeb42ef516ad1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.run: FunctionTooLong \u2014 run runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdbb870f117dd6a900c89dd85db7b3c66b46e9fbb56bde903feb340ca4abf23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pdf_viewer.onBlockLoad: FunctionTooLong \u2014 onBlockLoad runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/pdf_viewer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb7023a88cb74c920ff9d796183c05b2ca32fd610b42ff635ecd1df436e3142"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: file/pipelines.py: FileTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 98 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04038e53b4b45b63e86bc7045420948e44414d567e98fe2fbb1c5e1da1057fb3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileIndexPage: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d772a8abdb7035970ae25ef16e41e41383e4a48cc6a2a67307443de7a7e2190"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/__init__.py: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 60 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3834eb479a53b947943086703ccd91cf8fb08166fc316cba323ac7a8c3c650bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): libs/ktem/ktem/embeddings/ui.py:153-248 | libs/ktem/ktem/llms/ui.py:152-247 | libs/ktem/ktem/mcp/ui.py:102-193 | libs/ktem/ktem/pages/resources/user.py:182-260 | libs/ktem/ktem/rerankings/ui.py:155-247 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbc7226c5daacb03343ae4c4fd354f2e938f88a2b907466234311d2e1a22700"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libs/kotaemon/kotaemon/embeddings/langchain_based.py:33-38 | libs/kotaemon/kotaemon/indices/base.py:56-61 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:135-140 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:52-57 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aed3d7a25172e2c14a39ad2fd0bbdf74d2ac4d8c13083d530edc2fe8b3808df"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libs/kotaemon/kotaemon/embeddings/langchain_based.py:41-48 | libs/kotaemon/kotaemon/indices/base.py:64-71 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:143-150 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:60-67 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daba7bf09ea9f0f3f6a80c79525402903cc6eca3d335bcc5885ee65d30ef71c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libs/ktem/ktem/embeddings/ui.py:297-336 | libs/ktem/ktem/llms/ui.py:296-335 | libs/ktem/ktem/pages/resources/user.py:354-390 | libs/ktem/ktem/rerankings/ui.py:296-335 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc442feaf0386428d0e201851142544564bc64a666a4474c36fd2177930c20ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 95\u002B corresponding lines): libs/ktem/ktem/embeddings/ui.py:32-127 | libs/ktem/ktem/llms/ui.py:32-126 | libs/ktem/ktem/rerankings/ui.py:34-129 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 95 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ae8d9727dc92df2a6924b11ecc8481d408ddb5353cc1f91164db8835f01244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py:49-152 | libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py:44-126 \u2014 These two members are one piece of code written twice and then edited apart: 83 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb25a4a5f17c46e94890cf0c78ba70f067cd807cb5ee83248a00dfa3bd50c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): libs/ktem/ktem/reasoning/react.py:59-118 | libs/ktem/ktem/reasoning/rewoo.py:96-156 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75976b87fa4be2d93715f03467b8e0ddf5003b59751ddd40494e8164bca5ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (97 corresponding lines): libs/kotaemon/kotaemon/indices/qa/citation_qa.py:198-294 | libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py:201-320 \u2014 These two members are one piece of code written twice and then edited apart: 97 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c287b7918ab2b0b9e28362b841df4f5f4a53d9d4b02c5799736e0b41ca1720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): libs/ktem/ktem/index/ui.py:45-108 | libs/ktem/ktem/mcp/ui.py:32-90 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/ui.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"334a4840dc381c5a32681afd4c50a042729527107f63341e7d95333905c0a421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (69 corresponding lines): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:158-232 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:156-224 \u2014 These two members are one piece of code written twice and then edited apart: 69 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1929214fde6e6212d4690eb63152e3f9b554c132fe303129d8d788eca0c4a215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): libs/ktem/ktem/reasoning/react.py:265-306 | libs/ktem/ktem/reasoning/rewoo.py:390-442 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db3e4f712ee85d7b536e2d86bc1bc8af70c979c0aeedad81ae65d845d1c7558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): docs/scripts/generate_examples_docs.py:20-59 | docs/scripts/generate_reference_docs.py:22-72 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/scripts/generate_examples_docs.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee4d737e22b7cabd4212efcf1b5d8271a77174e1625d4fa7a6fa11c1a63a9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): libs/kotaemon/kotaemon/llms/chats/openai.py:164-193 | libs/kotaemon/kotaemon/llms/chats/openai.py:349-380 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/openai.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8220495b170788e7542693b026c18af9f8685dcaaf4c198b5d477862b6c154"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): libs/kotaemon/kotaemon/loaders/mathpix_loader.py:208-269 | libs/kotaemon/kotaemon/loaders/mathpix_loader.py:277-338 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb84025ba6916fbccb475f8d54f5e932247294b496b9c5826b56f1d430aa2b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): libs/ktem/ktem/index/file/graph/nano_pipelines.py:465-495 | libs/ktem/ktem/index/file/graph/pipelines.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/nano_pipelines.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe54966d956130ddd2111ba3f544e7a9c2913b2081a0ebe6e9082171b1240b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): libs/kotaemon/kotaemon/agents/tools/mcp.py:122-150 | libs/kotaemon/kotaemon/agents/tools/mcp.py:192-235 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/tools/mcp.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b893b6376f12934ff377803c945017e427fa60971ebd4993319c2bf71abc27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): libs/kotaemon/kotaemon/indices/rankings/llm.py:34-66 | libs/kotaemon/kotaemon/indices/rankings/llm_scoring.py:19-54 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/rankings/llm.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b6a98d7be8153eb8ceb75090aa1bde3ed3d810a73527020b4c6a2e09eb42d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): libs/ktem/ktem/embeddings/manager.py:188-219 | libs/ktem/ktem/llms/manager.py:195-226 | libs/ktem/ktem/rerankings/manager.py:170-200 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc60e2bbf294bf2732f9a5c9c9715486c93796c1baa2100a197c37d2449a6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:433-458 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:424-449 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"4761f41559c8d3ce4dd1b97bab36c95835fea985593cdb146310ad4690aa86db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): libs/ktem/ktem/pages/resources/user.py:287-313 | libs/ktem/ktem/pages/resources/user.py:407-441 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/resources/user.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7242f3eb06c9ccdab0074471476e70ab72985e1c35c14a6f4a886106f079865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): libs/ktem/ktem/embeddings/ui.py:346-382 | libs/ktem/ktem/llms/ui.py:345-381 | libs/ktem/ktem/rerankings/ui.py:345-381 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"92347a585c7f6a2bd81b7ef1faa92db59f75c576d4bba56db21e7dfe1394bff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:51-72 | libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:77-105 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1946433c3a4d2ea98672c3c17b2d0468343690f714e1e509e8600f14c750f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/kotaemon/kotaemon/llms/chats/langchain_based.py:52-72 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:25-46 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/langchain_based.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf6ac4d29ca3b269de29fb617b711f001d6241487bcf18ea04829269c7e2218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): libs/ktem/ktem/embeddings/manager.py:17-35 | libs/ktem/ktem/llms/manager.py:17-37 | libs/ktem/ktem/rerankings/manager.py:17-35 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"521412d035c80899d6f76f3ac86cc6794f7cb070d7d0772c04cc71ae819fda5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): libs/kotaemon/kotaemon/loaders/utils/adobe.py:114-145 | libs/kotaemon/kotaemon/loaders/utils/table.py:107-140 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/adobe.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaa8d9c3669082f21db218e561d5047d27d5805b853ed83dd32a403ce563641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libs/ktem/ktem/pages/login.py:41-54 | libs/ktem/ktem/pages/login.py:64-76 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/login.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c3c66560c209ba89774488072f32275a19dd98017df64f7840649441e88cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): libs/kotaemon/kotaemon/agents/rewoo/planner.py:42-68 | libs/kotaemon/kotaemon/agents/rewoo/solver.py:25-54 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/planner.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b5604aaec47672361e4cfd1742296b2c61c08b8b358d3e17945bdf623fe99b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): libs/ktem/ktem/index/file/index.py:166-197 | libs/ktem/ktem/index/file/index.py:239-271 | libs/ktem/ktem/index/file/index.py:274-306 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/index.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0008323f003c300406a6e983155a2d570896da58b8570a6682a52b4e4690c206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): libs/ktem/ktem/embeddings/ui.py:251-265 | libs/ktem/ktem/embeddings/ui.py:385-402 | libs/ktem/ktem/llms/ui.py:250-264 | libs/ktem/ktem/llms/ui.py:384-399 | libs/ktem/ktem/rerankings/ui.py:250-264 | libs/ktem/ktem/rerankings/ui.py:384-403 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb45bd59c9ceb6e2122937cd392a5b397016609c126ffef3b301848ad2a04c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libs/kotaemon/kotaemon/agents/react/agent.py:148-173 | libs/kotaemon/kotaemon/agents/rewoo/agent.py:246-264 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d60dc60151188a52576a33260b5024c258c8eab719e11342a1426528e108b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): libs/ktem/ktem/embeddings/manager.py:38-53 | libs/ktem/ktem/llms/manager.py:40-54 | libs/ktem/ktem/rerankings/manager.py:38-52 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f327b41ed0f1f5235fda43d1911317aa962e66feeeb42003f4ceb036734ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): libs/ktem/ktem/embeddings/manager.py:156-173 | libs/ktem/ktem/llms/manager.py:162-180 | libs/ktem/ktem/rerankings/manager.py:139-155 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c20726e67644e6003c174772b9fcd7bb4fd417f8d7c8eb812357c535ec8ca08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): libs/ktem/ktem/reasoning/react.py:310-350 | libs/ktem/ktem/reasoning/rewoo.py:447-504 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"364a733cf2f74e0358dc90e9c558e3f8cbbc96a069cae86e702b2da18c3d4a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:507-547 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:506-549 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2aa5d4de5d2b861f42e16ac2e097d01fabd7a32cf0c343fdf6f913c67a5139"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libs/kotaemon/kotaemon/agents/rewoo/solver.py:62-74 | libs/kotaemon/kotaemon/agents/rewoo/solver.py:82-99 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/solver.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd441f6a8c7f02394318d9567c4956c36ce9b5d81c7c71831a33055f2494485b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): libs/ktem/ktem/embeddings/ui.py:268-284 | libs/ktem/ktem/index/ui.py:262-278 | libs/ktem/ktem/llms/ui.py:267-283 | libs/ktem/ktem/rerankings/ui.py:267-283 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"140f17d343e527c327add535a7e494cac7f2f6bc10cde871a1936fde3415b4ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): libs/kotaemon/kotaemon/loaders/paddleocr_loader/paddleocr_vl_loader.py:129-157 | libs/kotaemon/kotaemon/loaders/paddleocr_loader/ppstructure_v3_loader.py:225-248 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/paddleocr_loader/paddleocr_vl_loader.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9677e46012048821aa70fa55f40719881afc3c78232dce753c201b523356710"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:291-319 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:279-310 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc36671bca3a89c53b13c6f5948e8eab88949d4efe6a67e16ca5c83b2f3edd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libs/kotaemon/kotaemon/agents/rewoo/planner.py:71-83 | libs/kotaemon/kotaemon/agents/rewoo/planner.py:86-106 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/planner.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4952328783ca9d02052edcff078024ac423e768628d8b2a15b0e2ae8901bc2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libs/ktem/ktem/reasoning/prompt_optimization/suggest_conversation_name.py:26-36 | libs/ktem/ktem/reasoning/prompt_optimization/suggest_followup_chat.py:33-43 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/prompt_optimization/suggest_conversation_name.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bbfa2932a1499cdffbf4fdd8424025f49ea9a2d4ba0d5be03c5ca56d203fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): libs/ktem/ktem/embeddings/manager.py:176-185 | libs/ktem/ktem/llms/manager.py:183-192 | libs/ktem/ktem/rerankings/manager.py:158-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"071f4329097c6fe82d8990546b6c1d280cc5afa729d4a9be70e4b3d1e08092e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): libs/ktem/ktem/embeddings/ui.py:142-150 | libs/ktem/ktem/llms/ui.py:141-149 | libs/ktem/ktem/rerankings/ui.py:144-152 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fda567d775e8188ab3d079b4d1044f3c43f289e0aec0e98f1518175625df3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): libs/ktem/ktem/embeddings/ui.py:130-139 | libs/ktem/ktem/llms/ui.py:129-138 | libs/ktem/ktem/rerankings/ui.py:132-141 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73031127d6af7aee75c139298ceb0e073c1ac015f97eade8164aea5de54ee99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libs/ktem/ktem/index/file/pipelines.py:427-443 | libs/ktem/ktem/index/file/pipelines.py:446-464 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcd9efe01cd4fce077217eaec671af50c7fae27ee856b4798b5badc5116d4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/kotaemon/kotaemon/base/component.py:25-33 | libs/kotaemon/kotaemon/llms/chats/base.py:13-22 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/base/component.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f8e698e5b664949f09a014b7bbfa9761e870b8da28d20cfa0645a1fd5b925b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): libs/ktem/ktem/index/file/knet/pipelines.py:120-143 | libs/ktem/ktem/index/file/pipelines.py:227-280 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/knet/pipelines.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7713acf05f83f7a433d462b5aa44575c87392d9ed4587de73dc47ed13c32e968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): libs/kotaemon/kotaemon/loaders/base.py:83-86 | libs/kotaemon/kotaemon/storages/vectorstores/base.py:102-105 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/base.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df7c8e9a27ae81710fc8eff604e6f3c1bae98b9a0ae923374e37868063e90c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:325-399 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:316-390 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060PROMPTS\u0060 names \u0060lightrag.prompt\u0060 in one and \u0060nano_graphrag.prompt\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb49a302af5a328e91544e78fb9f69ef1b4e94b3ab87676e0fa0969d1fd972c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 2): libs/ktem/ktem/reasoning/react.py:59-102 | libs/ktem/ktem/reasoning/rewoo.py:96-140 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/react.py\u0060 and \u0060libs/ktem/ktem/reasoning/rewoo.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd01ecf570c928c9745c7102658a0ba47bab069b7b62755c0e0aeaa2d5f3124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201342 lines \u00D7 2): libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py:49-90 | libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py:44-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c679bd223e1670358211382eed86d586f87f455323f603c4df504f3f15947f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:69-107 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:67-105 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9cc9800c6b0a8ec672863cc76a40f6f5c0bbb72b852a94a218e58d942bca36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:195-230 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:184-217 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"53669d2d48fa8681e6c5715192ee5a1ba6430a8aad23f5e61b92b821d642a520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:46-76 | libs/ktem/ktem/llms/ui.py:47-77 | libs/ktem/ktem/rerankings/ui.py:48-78 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:46\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b96a44bfbb23eb2ef21b8d549911d430bac16304e621bf7df2b9f12861d004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:257-287 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:245-275 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:291\u0060 calls \u0060dict\u0060, \u0060get_user_settings\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py:279\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c584175810ffcfb107d8bf54fa5b3e088865038575d80c033cb2e71c07984f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): libs/kotaemon/kotaemon/loaders/utils/gpt4v.py:19-46 | libs/kotaemon/kotaemon/loaders/utils/gpt4v.py:69-97 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac15fc7104c1ef65f9632d2c8646d9577334d844649ede2609249322d5cd8d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): libs/ktem/ktem/pages/chat/__init__.py:652-678 | libs/ktem/ktem/pages/chat/__init__.py:711-739 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/pages/chat/__init__.py:652\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"621e175548349f8ea5afad574afc191189657dd9d3037b6ce294ac1a707a40bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): libs/kotaemon/kotaemon/indices/qa/citation_qa.py:234-260 | libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py:227-253 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9727ea3d64f829c2170aa47f542f2569409bcc4bdc0388f612024b7b48d54a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): libs/ktem/ktem/pages/chat/__init__.py:601-627 | libs/ktem/ktem/pages/chat/__init__.py:645-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/pages/chat/__init__.py:601\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2521009c7d3267620a8ace0ded964a8e05d116bc8e2cb407bd10c7e7285e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 4): libs/ktem/ktem/embeddings/ui.py:70-92 | libs/ktem/ktem/llms/ui.py:71-93 | libs/ktem/ktem/mcp/ui.py:47-71 | libs/ktem/ktem/rerankings/ui.py:72-94 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/mcp/ui.py:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c305cdfd39afc40dc598814ba06c5a529e47a8f02aacabf74550709990dda863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:181-204 | libs/ktem/ktem/llms/ui.py:180-203 | libs/ktem/ktem/rerankings/ui.py:183-206 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa64b5d0724a1ab20c1699ae9387ab99fbeeb4232d0b407ebd2e965380d7753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 3): libs/ktem/ktem/pages/chat/__init__.py:607-628 | libs/ktem/ktem/pages/chat/__init__.py:651-672 | libs/ktem/ktem/pages/chat/__init__.py:710-733 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/pages/chat/__init__.py:607\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b41906a62d6af778555f6e1d170d9e8b02be8804b785776a5d262333e3e2db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): libs/ktem/ktem/index/file/ui.py:719-742 | libs/ktem/ktem/index/file/ui.py:778-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/index/file/ui.py:719\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e3903a0b3bba5b2801e726edb7bafc2ef208246a1e5aad8620f42f6423e85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/ktem/ktem/embeddings/ui.py:106-127 | libs/ktem/ktem/rerankings/ui.py:108-129 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/rerankings/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 230 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e042fc25bb78bd7eba9f68b5209b22809182224042041e8dc2c2ace49440cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:437-458 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:428-449 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cf8f21d800986e599b3b2fbc7c7d780e05629c1cca44be5595b6b52545a5c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/kotaemon/kotaemon/loaders/utils/adobe.py:126-145 | libs/kotaemon/kotaemon/loaders/utils/table.py:121-140 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/adobe.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a0965e92094fccb16f8b55db4ce2c0c1293b59ffc82fdd3d2f02cd7f28d576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/kotaemon/kotaemon/contribs/promptui/ui/blocks.py:101-119 | libs/kotaemon/kotaemon/contribs/promptui/ui/blocks.py:128-146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/kotaemon/kotaemon/contribs/promptui/ui/blocks.py:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/blocks.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b137cd1be130d974271897d1f168fb74d7e8dfaeadd0bda0f3876dbe351107bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/ktem/ktem/reasoning/react.py:284-302 | libs/ktem/ktem/reasoning/rewoo.py:410-428 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/react.py\u0060 and \u0060libs/ktem/ktem/reasoning/rewoo.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d0c3a6bae17d8c2fb4f6e83c7ef88fdc37a47e2c163509db8f38d6ea3b87ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): libs/ktem/ktem/embeddings/manager.py:188-205 | libs/ktem/ktem/llms/manager.py:195-212 | libs/ktem/ktem/rerankings/manager.py:170-186 \u2014 \u0060libs/ktem/ktem/embeddings/manager.py\u0060 and \u0060libs/ktem/ktem/llms/manager.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a84fc3e211457d4d475966909f0de97866202fce43e1cda6b67d63c4721589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/ktem/ktem/index/file/graph/light_graph_index.py:24-40 | libs/ktem/ktem/index/file/graph/nano_graph_index.py:24-40 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/light_graph_index.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_graph_index.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/light_graph_index.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"460376f400c824fb3ced808b1933084d7060494f8dd6e6869b53016a5b8b7a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/ktem/ktem/index/file/graph/light_graph_index.py:43-59 | libs/ktem/ktem/index/file/graph/nano_graph_index.py:43-59 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/light_graph_index.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_graph_index.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/light_graph_index.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f95c76d8bce96285728596db4c04a5ca1a2cce662c57e7e3cf5c7253e96f17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:160-176 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:159-175 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0588ab5a4cdef9500676dfc3ad8bdb4c67349a388d4a62d48cdfff8189b4372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:474-489 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:465-480 | libs/ktem/ktem/index/file/graph/pipelines.py:313-328 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1aa297fa3a975d1f69e32f043125af4a3560423c5c4a3b68b313f7f4e79a981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): libs/kotaemon/kotaemon/indices/rankings/cohere.py:46-60 | libs/kotaemon/kotaemon/rerankings/cohere.py:51-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/kotaemon/kotaemon/rerankings/cohere.py:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/rankings/cohere.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a4630ef55ba9abcbf296a9fe8868e266baae5c3426c83e82445ab59e629314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libs/kotaemon/kotaemon/agents/react/agent.py:224-238 | libs/kotaemon/kotaemon/agents/react/agent.py:308-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0125ea6c6739875e4ce0a9fccf6182044e151b6ce023c8a6fbcb77e0a0cc017f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): libs/kotaemon/kotaemon/llms/chats/openai.py:164-177 | libs/kotaemon/kotaemon/llms/chats/openai.py:349-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/openai.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b190e043791c70a552d2235085ba806ea2d7d7828a38e91b79711af43407efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:271-284 | libs/ktem/ktem/llms/ui.py:270-283 | libs/ktem/ktem/rerankings/ui.py:270-283 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace3d04962da39f7ed1839233d2a35b7ca37e2062424f32a5ca881e04b47d543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/ktem/ktem/reasoning/react.py:105-118 | libs/ktem/ktem/reasoning/rewoo.py:143-156 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/react.py\u0060 and \u0060libs/ktem/ktem/reasoning/rewoo.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060trim_len\u0060 to \u0060int = 4000\u0060 in one and \u0060int = 3000\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"162aa76db19728033e395604a7c628432233c25531be32c60b6e02b0625d1c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/ktem/ktem/reasoning/react.py:310-323 | libs/ktem/ktem/reasoning/rewoo.py:447-460 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/react.py\u0060 and \u0060libs/ktem/ktem/reasoning/rewoo.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/reasoning/react.py:310\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0ea3d3036774608a9017e2dc095c9f156e52a8966284030ea34b215ef9341d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:392-402 | libs/ktem/ktem/llms/ui.py:389-399 | libs/ktem/ktem/rerankings/ui.py:391-403 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:392\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b44266e8139cc9e3bed90e7fe487c866343954c024e94938f67a8a20842abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:51-62 | libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:77-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d298c1212da1812eb75ba404020ff0f687d6a2baa858667a8db5b853305449dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:122-134 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:120-132 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"87607d8e5a38577fc2fa78585b5da376dfdc534a216d73e773488af5282120b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): libs/ktem/ktem/embeddings/ui.py:213-224 | libs/ktem/ktem/llms/ui.py:212-223 | libs/ktem/ktem/pages/resources/user.py:230-241 | libs/ktem/ktem/rerankings/ui.py:215-226 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"101bd8e011264ec3abf25c4047cd69d195f41fb0523592c1d82a269e08a818ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): libs/ktem/ktem/embeddings/ui.py:299-310 | libs/ktem/ktem/llms/ui.py:298-309 | libs/ktem/ktem/pages/resources/user.py:355-366 | libs/ktem/ktem/rerankings/ui.py:298-309 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libs/ktem/ktem/embeddings/ui.py:311\u0060 calls \u0060update\u0060 and \u0060libs/ktem/ktem/pages/resources/user.py:367\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ce8cbefe3df212cbafdf1b58738a245f9aac9ee54cdd899bb19cb9eee8d7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:433-444 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:424-435 | libs/ktem/ktem/index/file/graph/pipelines.py:194-204 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"48adbff44d783b003584ea2470bf192d5ed3f5ab8d21fd69c875d96fe7ec1dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): libs/kotaemon/kotaemon/agents/tools/mcp.py:130-140 | libs/kotaemon/kotaemon/agents/tools/mcp.py:205-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/kotaemon/kotaemon/agents/tools/mcp.py:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/tools/mcp.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7ad7976e838484c0bb331bff501b5dd94fae786a8b10827d712900811aaff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py:287-298 | libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py:231-242 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"940d1706c2680287adce73aac25d5952e676fb13adeeca760477ceaf7ea1d5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/ktem/ktem/embeddings/ui.py:93-104 | libs/ktem/ktem/rerankings/ui.py:95-106 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/rerankings/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 230 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc9285ea89e7295f03678001a0da757e60636f6b30de0b259cba405d9277e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): libs/ktem/ktem/reasoning/simple.py:496-507 | libs/ktem/ktem/reasoning/simple.py:547-557 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/reasoning/simple.py:496\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/simple.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3f73d3b96ecf66f0184d486bf48812c343482b897e7373c30b1cb47a12cd46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): libs/ktem/ktem/embeddings/ui.py:213-223 | libs/ktem/ktem/llms/ui.py:212-222 | libs/ktem/ktem/mcp/ui.py:163-172 | libs/ktem/ktem/pages/resources/user.py:230-240 | libs/ktem/ktem/rerankings/ui.py:215-225 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3decb3a10a2e91ec4d50e5c21bfdb447dc6ab6ebb077fdece181dc0fd70cb5cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): libs/kotaemon/kotaemon/loaders/docling_loader.py:81-90 | libs/kotaemon/kotaemon/loaders/docling_loader.py:155-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/docling_loader.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7d845b554ffb9c2dad841b30397c4b1d93d439480d0f6ba2bd76ce5cd91443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): libs/ktem/ktem/embeddings/ui.py:90-99 | libs/ktem/ktem/index/ui.py:84-93 | libs/ktem/ktem/llms/ui.py:91-100 | libs/ktem/ktem/rerankings/ui.py:92-101 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/embeddings/ui.py:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf674b4f227c963f0e9d49f2e9e9003c1bb8b57889ab7e5e762a06f16e642d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:355-364 | libs/ktem/ktem/llms/ui.py:355-364 | libs/ktem/ktem/rerankings/ui.py:354-363 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf405d9d0612bf80e58983aa18f7c49382032c299fcba0d975a8e339bf6b3a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:56-63 | libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:83-90 | libs/kotaemon/kotaemon/rerankings/tei_fast_rerank.py:70-78 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5aa7857fc045bb7d8596340c67f063442cc310570dca30222a152dbb622c02d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): libs/ktem/ktem/embeddings/manager.py:211-219 | libs/ktem/ktem/llms/manager.py:218-226 | libs/ktem/ktem/rerankings/manager.py:192-200 \u2014 \u0060libs/ktem/ktem/embeddings/manager.py\u0060 and \u0060libs/ktem/ktem/llms/manager.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06d81a93a81c2105a8f9e32c8d17251c804b0e678d969e9d8c0b02133d1a247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/kotaemon/kotaemon/indices/rankings/llm.py:36-44 | libs/kotaemon/kotaemon/indices/rankings/llm_scoring.py:21-29 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/rankings/llm.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4516eac43ca3322cea4cccbfc812db2bf2037cef2cac4a9e07047ef0275447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:488-496 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:487-495 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"df405987a8799cc9305986fa2abd7a7626a232069bbff39c780c54f9e0222c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): libs/ktem/ktem/index/file/pipelines.py:585-592 | libs/ktem/ktem/index/file/ui.py:565-573 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/ktem/ktem/index/file/pipelines.py:585\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f16338829666d77a5b7f4d83f50a548250a5f9b597848b8feb27c8e85dc0680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): libs/kotaemon/kotaemon/embeddings/langchain_based.py:41-48 | libs/kotaemon/kotaemon/indices/base.py:64-71 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:143-150 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:60-67 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25ed7e9bccab694e7fe0897cad69ce6fdd989365f7c459e8a12e3228fa936e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/ktem/ktem/index/file/ui.py:590-597 | libs/ktem/ktem/index/file/ui.py:626-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50d5721a532938e8eb55c82c0b1133b7704f923ed063ffd19cbe630e630fc11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/kotaemon/kotaemon/llms/chats/langchain_based.py:55-61 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:28-34 \u2014 \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/completions/langchain_based.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/langchain_based.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1829ffb0477ddb61f24c662bf63a0abcaf323ce4db4761165b24ede4858774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/ktem/ktem/embeddings/ui.py:144-150 | libs/ktem/ktem/rerankings/ui.py:146-152 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/rerankings/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 230 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d88787cce4dd543761dd3dc93c9152329f090255112e53da7348acc3dfe9c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): libs/kotaemon/kotaemon/embeddings/langchain_based.py:33-38 | libs/kotaemon/kotaemon/indices/base.py:56-61 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:135-140 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:52-57 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5b10451cd283ac77c5648fdec76bef3967c36b9613508c6e3a4c0d15701a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): libs/kotaemon/kotaemon/indices/qa/format_context.py:50-55 | libs/ktem/ktem/reasoning/react.py:63-68 | libs/ktem/ktem/reasoning/rewoo.py:100-105 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/react.py\u0060 and \u0060libs/ktem/ktem/reasoning/rewoo.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/format_context.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6962c491d0cd1459627924fbb9563ca00df109d8c98dc95aaa0293ad1e3ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:14-20 | libs/ktem/ktem/llms/ui.py:14-20 | libs/ktem/ktem/rerankings/ui.py:16-22 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fa2814ebabab222ce649a0a249bd3609ba65ab35c55e7555ddec3f4ca9a613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libs/kotaemon/kotaemon/agents/tools/mcp.py:142-147 | libs/kotaemon/kotaemon/agents/tools/mcp.py:221-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/kotaemon/kotaemon/agents/tools/mcp.py:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/tools/mcp.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c5f1ce0894e205b6610a1be3073cdd75d81481cc5234620b9f9f20297a75d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libs/ktem/ktem/index/file/ui.py:1430-1435 | libs/ktem/ktem/index/file/ui.py:1439-1444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84668158ebe1774ea72ada74589bbf89562ba0fb7eefd6e2e5eae24538fb607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/kotaemon/kotaemon/agents/react/agent.py:49-62 | libs/kotaemon/kotaemon/agents/rewoo/planner.py:18-31 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9b8824a8b82e369a3918b46e02b51c6161b7bb5f7906b5e5c87d63d5fbd16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libs/kotaemon/kotaemon/agents/rewoo/planner.py:34-39 | libs/kotaemon/kotaemon/agents/rewoo/solver.py:17-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/planner.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ed74dc238b00cc7a90a9bd63025a3d2f563670df2af87838edc98bf1aaae91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libs/kotaemon/kotaemon/embeddings/langchain_based.py:15-19 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:18-22 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/completions/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07e2ca3fd25131d36b949365ce5f8cf6804f28e240feb5e7c0239d29e0c4b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): libs/kotaemon/kotaemon/embeddings/langchain_based.py:51-58 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:153-160 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:70-77 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cf49e495644be81ea1fe5d019e50db5bd37fdd21782026ed7dd75541d2e979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): libs/kotaemon/kotaemon/embeddings/langchain_based.py:66-72 | libs/kotaemon/kotaemon/indices/base.py:86-92 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:168-174 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:85-91 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bba3e895838eac282e4818f45f27b734da3f5dfd9234b62db43ad342ca96e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): libs/kotaemon/kotaemon/embeddings/langchain_based.py:75-86 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:177-188 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:94-105 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ba4d4504fd9d12889e25a6a805df48ee9b8a989128c6eb8245e65a0bde7aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/kotaemon/kotaemon/embeddings/langchain_based.py:102-110 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:230-238 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"101dafed8ca34ffeffcf0beb9714f3f39d3a839bfdcc3699c980fd0c97c7770f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): libs/kotaemon/kotaemon/embeddings/langchain_based.py:133-140 | libs/kotaemon/kotaemon/llms/chats/langchain_based.py:201-208 | libs/kotaemon/kotaemon/llms/completions/langchain_based.py:212-219 \u2014 before extracting anything, compare \u0060libs/kotaemon/kotaemon/embeddings/langchain_based.py\u0060 and \u0060libs/kotaemon/kotaemon/llms/chats/langchain_based.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060LlamaCpp\u0060 names \u0060langchain.llms\u0060 in one and \u0060langchain_community.llms\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20b983b98752c36f2664794b5da99b16a497fd451082c6811e7c46285cd1d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libs/kotaemon/kotaemon/embeddings/voyageai.py:47-52 | libs/kotaemon/kotaemon/rerankings/voyageai.py:39-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/voyageai.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3528ffc8a766ce3f62e0599143ec038b2967eb859177047011b6c5c7ba667b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libs/kotaemon/kotaemon/storages/vectorstores/in_memory.py:61-66 | libs/kotaemon/kotaemon/storages/vectorstores/simple_file.py:66-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libs/kotaemon/kotaemon/storages/vectorstores/simple_file.py:63\u0060 calls \u0060unlink\u0060 and \u0060libs/kotaemon/kotaemon/storages/vectorstores/in_memory.py:58\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/in_memory.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"96979a99ab5e650b0e5f8cee67952a6bfdc3795f494efd382d08737130c1b668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): libs/ktem/ktem/embeddings/manager.py:107-117 | libs/ktem/ktem/llms/manager.py:113-123 | libs/ktem/ktem/rerankings/manager.py:90-100 \u2014 \u0060libs/ktem/ktem/embeddings/manager.py\u0060 and \u0060libs/ktem/ktem/llms/manager.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b761fe19fa8c516e78d5c54e7dab9410127f64510258c7ff2d97c15c8840d663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): libs/ktem/ktem/embeddings/ui.py:287-294 | libs/ktem/ktem/llms/ui.py:286-293 | libs/ktem/ktem/mcp/ui.py:304-309 | libs/ktem/ktem/rerankings/ui.py:286-293 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2aeecacf57e955ea398ca4025a3f7daf4d81a1c01656c1d3138965a8815848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:339-343 | libs/ktem/ktem/llms/ui.py:338-342 | libs/ktem/ktem/rerankings/ui.py:338-342 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2214520c0a8c3bee3f82451fdd101fd486d69d49e39fa997b0876de4a4345c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/ktem/ktem/index/file/graph/light_graph_index.py:64-77 | libs/ktem/ktem/index/file/graph/nano_graph_index.py:64-77 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/light_graph_index.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_graph_index.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/light_graph_index.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dd504d5bf6c3b66ef04d8715383173c83ce7025222654498443ad8ff3c361c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/ktem/ktem/index/file/graph/lightrag_pipelines.py:111-117 | libs/ktem/ktem/index/file/graph/nano_pipelines.py:109-115 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/index/file/graph/lightrag_pipelines.py\u0060 and \u0060libs/ktem/ktem/index/file/graph/nano_pipelines.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac15df3f25bbbafa247f3591a00938d1b89be3500094baa151ac3ad2a9a5d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/ktem/ktem/pages/chat/__init__.py:1034-1065 | libs/ktem/ktem/pages/resources/__init__.py:40-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a6ca94ff7b48699787529ac8884ed8b555ccd8a5e20a35cb961366b3b33e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): libs/ktem/ktem/reasoning/prompt_optimization/rewrite_question.py:32-38 | libs/ktem/ktem/reasoning/react.py:172-178 | libs/ktem/ktem/reasoning/rewoo.py:191-197 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/prompt_optimization/rewrite_question.py\u0060 and \u0060libs/ktem/ktem/reasoning/react.py\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/prompt_optimization/rewrite_question.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c559aa3773b891b42142ad2e7186dce07481c72d781e5b6770203dc99fb773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/ktem/ktem/reasoning/react.py:48-56 | libs/ktem/ktem/reasoning/rewoo.py:85-93 \u2014 before extracting anything, compare \u0060libs/ktem/ktem/reasoning/react.py\u0060 and \u0060libs/ktem/ktem/reasoning/rewoo.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f56b3c71df43b8c0ff0932929678f7a54e45f5a6ece114cec382b7bb19c8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): libs/ktem/ktem/embeddings/ui.py:405-411 | libs/ktem/ktem/llms/ui.py:402-408 | libs/ktem/ktem/rerankings/ui.py:406-412 \u2014 \u0060libs/ktem/ktem/embeddings/ui.py\u0060 and \u0060libs/ktem/ktem/llms/ui.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 14 separate duplicated blocks between them, totalling at least 189 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6587bf833d19d3b663266d8b075036377a9faa8a01ea3034c5c093e30eb1446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libs/kotaemon/kotaemon/llms/chats/openai.py:180-184 | libs/kotaemon/kotaemon/llms/chats/openai.py:367-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/openai.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67d3384beae4dde251c7db9f679400180d6acaf727a3c66de2677ca7ab5e465"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ktem: ktem: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e14924e182163cc0ad56800a3ee7a79dcb505769d9fc2e6d00b33cc2f572dd4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: kotaemon: kotaemon: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0273a7bae4f7afbb68825fc9f1101c3ff02034a5904ba6ee31e3c428b7cc9495"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BasePage (LCOM4 6): BasePage\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/app.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01b0ab9cd4eb8a64150d4609adf0f1a5916bb7a5832cfc652250b055dc07a9c"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: html2text: \u0060html2text\u0060 2025.4.15 is published on PyPI under \u0060GPL-3.0-or-later\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"925e89b19ba6de1c2da5ac31b85f5de213041975f1c100581d14cd2864a2d76a"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: text-unidecode: \u0060text-unidecode\u0060 1.3 is published on PyPI under \u0060GPL-2.0-or-later\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"85b792ddfe32801c013ee8ebcbb674d3f6d61cfd12a7d8f517aaeecfab7ee72e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: separate llm for rewrite if needed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/rewoo.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"099dd39e8b1e8cfd784147c9326f3e5e56fb3e2f1e184b08e94d1bc77544af97"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: previously return [], [] because we think this message as something \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/simple.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f847fd68c429545ebf34e7b4a8d0e54ea07ef610a14ad2f1af4867c3f1cdcb72"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: double check if we need general \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/settings.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdf634ed3daa537c39faeeef7ec94f3dcbb285b9a859dfcdd48d6bf8510c14d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: simplify with using SQLAlchemy directly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/models.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18781dc1650cbcb67e66b485c3e6aa603956e893d366fd86cc50d261d313544"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: double check that llama-index MMR works correctly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5199196370249b94784cc821b2e339144ef1e7711568fe834879fb17d02f2c04"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: on_building_ui is not correctly named if it\u0027s always called in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/ui.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f23adc0442371fa41c745bccc1fc036d1dd631503ee829147aabadeecc8595d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hacky way to input doc_ids to retriever.run() call (through theflow) \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/knet/pipelines.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc12b9d4bc5bf4c75ac38a7afbca908250b1fa4d3817df42b285a26068821ff6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This test is broken and should be rewritten \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/tests/_test_multimodal_reader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1716af25db07c142c0046258c70a08731493c4f7e8b64558a0c834efee39ba3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: save and load aren\u0027t lossless. A Document-subclass will lose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/docstores/in_memory.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef708fb719a2d9bb0f072544ea3fd7a0193b3eb39be644e8f2905f5447f7c030"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this conversion seems common \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/parsers/regex_extractor.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7610693eaca4d28d7810699f4a4f87e920e452e65070c3b1549f9adae50e50b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should declare scope directly in the run params \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/vectorindex.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2772740cd84437fc7a8d6bf1f5118230fef9ac72e8b6687f03190bf6e82f807b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: currently hard-code as ChatConversation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"95dc9e42a25115bf469d081a6865f95aacb278048b3b027e1990c246c48b5272"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: wrap the input and output of this chat function so that it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d1bb3c94f5ce20988e7d1dfadde2233411f2c2e86578de422ffe800d4b7faf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: simplify the Document class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/base/schema.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"66672bca3e6f1ae0443960450e0558267c8e120db76cd6d1bab67a89e794e1ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/utils.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc254fa6247f53cba62df75a5a835d6a048c4f1dfe40176772863e77758859af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (verbose_): Add logging \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/tools/base.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"428f1887bf0be3d3636413fe7fc0ca0e50ca6cfd50a04be224909d0a3d2101a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: could cause bugs if llm doesn\u0027t have \u0060stop\u0060 as a parameter \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12653fcfd9d58cf4ac32b9e85d449287fee396e1fc273d7f6229bd6b3546159"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060fly.toml\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fly.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e29d63eda2a94d0fb2a3407ec7b67cf4587f5b83978499603e988c4023e55fa"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022check if the last bot message has class \u0022text_selection\u0022\u0022 repeats the code it sits on: 7 of its 7 words (check, last, bot, message, class, text, selection) are already in \u0060if (last_bot_message.classList.contains(\u0022text_selection\u0022))\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"672a0537d26179e3a8cdd5d337c3cdc51df3a8891c5101b6bd1d09b377fb6515"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060libs/kotaemon\u0060 (12752 LoC, 181 module-visible types across 30 directories) overshoots its size bounds. 2 of 4 build unit(s) (Python) overshoot their size bounds, lowering Project Cohesion to 0.2/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/pyproject.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fa086509da74a50c5afb263e3d4c37e9fca3fe82b0130bd09626d5e5114ff9"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060libs/ktem\u0060 (11217 LoC, 122 module-visible types across 16 directories) overshoots its size bounds. 2 of 4 build unit(s) (Python) overshoot their size bounds, lowering Project Cohesion to 0.2/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/pyproject.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0777803515b0a4a8f786bad76712e43eed557a938996c1170476cd7808354e"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fceac48147f0959fab83fc543bc8d93f2b9b65f9a362ceb34d9e0f4c6d78038d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27684d623ecb81af4086d62bae2b6b96540db07bdca6a9d6edccdddf512d5a17"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf1f3d0605bcd41695001006609579e76070ecda5e9c34884e63e78adc95d9aa"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6daf9b801e4d7b5b375d51bdf448cf736cc1ee8ea223492a408850ad472b1bd4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd8dfa840e89b13b75079ef96807b3a19f7cdd901b28b3ba97e9d9e85559f611"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8eb695e6eea5efcbcc99489088db51f1c2bd96a1b01f2558e60f4312f86cbadd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a184050c93dc7545b03a85095a5ef175697f0ab9e0546210c05c613dcb29977e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"332b223b30172cd5aa20cdc2f800f339139ae30ac5adf8ce450c51ca3e701443"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09828d73edf728ff4a64822b08afcd9c3d5e617fb3c2e2232883a8bef9289092"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32aec475fda3bcbdf6bb224a03cc8dffb721615a0ca72c9977d14c7ca7116eea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60a746748347d22e1c0d86e4ad21e2280dd41c06a81ae95bc9b04f54ebbd358f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e4eeacb41b44112a7412f6447bd51426974aaddcc5ee5a045029b7b6193fd9d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37e1bf770a06950d0dc6d3a2a8a1dba61d4bab8a4d02bd5624c612c313e7431b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e4e4d514bb245ec746cf9bfacc1cfa6d689dc93cdd26daf20550c2314f68b8d5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82d86ef6461f69b1bf9a29c7a4b5551fd17dc95ae454a569a7e45f1ac18a5723"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06e3fc56e4b987b0ff93e2646609d6cd7c43292e8b254c6599467a4923e26b75"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e742382ebc18ecf8dd3f065a86a6126d857a6b629a2840ac628fe62008918f40"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd950539b0e58b6103dcffaf29cdd479dcefbe006f9087ca1375a02cfddae2a4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3563183c06c874c64d38dd4d95adb6ae7f1bfdf928b1a758281552e1a48aef04"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"777f09282d56ebb00d5c7ea46629ff3ad7c01becbb683a80dafd0b525917ad45"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"515fa31095a5b923494b0975ca33130f6ceabf5749b02cf48b37c9b32642f8f9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb2d358322656d10a48215a1f94197f148d7d3ba1bcf5ef14cb64583a3f88489"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe430ae35e1f4181523c3a5a92ba05931eefbed10d699957d0b0e77c8aab29cd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d5a8ec6f396b85e7af71a46d21f5626acbfa897128eb53e0a5ad1e53b4897b8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2634acd08d8b2b9f96449f9b3b48350562bbbcab87baeb168ba2dd5e53974f8c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31f68d66bb17386488455dc6f3110297b0b8a7ab5608bf28c3230773777b37ea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e0946011dbc754a7a7b70bfe8bbb4d389bc23624c4a4074921ae7f7413f11316"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65fe280709d9fff72cd231ba2b3bb95e4b7257465f1e7d72b12de682b5f24013"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd4e47555a6dc76ca4be32e5379555c77aa8b8e19cc6c33962584133391519c2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"223e79e0d2df2a29500736d4e7deda6d57f7425565770a9ba9309cfffa5f741f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"622b7cefd07c5d99c2d37a1b81dddcf94960bc8369b852013d4a07dd5dae0ac9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6595e86aff12333da43b8859aa520b0ac266ccfa4c85c75c8e0eb713e03809fd"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7edc65eb9af764ab49fe7a8ad8f46e4c69662a1b09bd67841a669231ea1905f7"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7efa61e9cb6dba985f4f760cda51a4ddf6f20e75a69ad7d4eb04ee9b535dfe10"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c635534c9af69a4d8a4c3f4fe819a68853672195332780c836269d213f29b0e"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ccc6a64c2aefa03a4f5846bf518c5e1be4666b99c8fe147e89b9aee631dc490"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e210b4e0cd032342f8520a43a38cf94c9d74dee9403c3475a9f059090f024f18"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45852c2330ebb9b809cbd1496184265d90753dad4605102d6fb9c1c397fe9b62"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3c06b131e980ddd723a148313696e5fc8b5d5394a34d705675684399b33ebfea"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e726cbfdafe4a66046773131cc94225dc670c82e0d9cd224a72fa5576f29bbcd"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d546733b9ca45c1bd162da0b0b01ea42af530b6ed35676e28a14281b1424acd0"},"properties":{"dependency":{"package":"anyio","version":"4.11.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-4024","PYSEC-2026-4025"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/contribs/promptui/ui/blocks.py","line":5}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd9c2514db22b580daf04aea8447f1a620c0b229b4bcabab7616b85d29dfbdca"},"properties":{"dependency":{"package":"authlib","version":"1.6.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1201","PYSEC-2026-1202","PYSEC-2026-1203","PYSEC-2026-188","PYSEC-2026-2116","PYSEC-2026-2117","PYSEC-2026-2119","PYSEC-2026-25","PYSEC-2026-287","PYSEC-2026-4354","PYSEC-2026-4355","PYSEC-2026-4356","PYSEC-2026-4357","PYSEC-2026-4358","PYSEC-2026-4359","PYSEC-2026-4360"],"reachability":{"kind":"production","file":"sso_app_demo.py","line":4}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c39221e7a57c94c8668f293a52beb2217070a9b1a940bee5edd4b6b0b226af4b"},"properties":{"dependency":{"package":"certifi","version":"2025.8.3","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"790398186016ffa7a77342ba1c52145de710c8346d03016a5818e0fc0e2228f4"},"properties":{"dependency":{"package":"chromadb","version":"0.5.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-3813","PYSEC-2026-3814","PYSEC-2026-3815"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/storages/vectorstores/chroma.py","line":36}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7eccfee6d4ee6aea7dc222c5ee344f44140eca1ba2f3fda15c5ef671cc8b75e7"},"properties":{"dependency":{"package":"gradio","version":"4.39.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-196","PYSEC-2024-197","PYSEC-2024-198","PYSEC-2024-199","PYSEC-2024-213","PYSEC-2024-214","PYSEC-2024-215","PYSEC-2024-216","PYSEC-2024-217","PYSEC-2024-218","PYSEC-2024-219","PYSEC-2024-220","PYSEC-2025-118","PYSEC-2025-119","PYSEC-2026-1408","PYSEC-2026-1410","PYSEC-2026-1412","PYSEC-2026-1417","PYSEC-2026-1418","PYSEC-2026-1421","PYSEC-2026-211","PYSEC-2026-2178","PYSEC-2026-2179","PYSEC-2026-63","PYSEC-2026-64","PYSEC-2026-65","PYSEC-2026-66"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/contribs/promptui/base.py","line":1}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b7cbdc6e4b55276b1a6f33a4e834d98093cf5e1c6c2c3b8ac3f3d9bbe7c3c4ab"},"properties":{"dependency":{"package":"langchain-core","version":"0.2.43","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1518","PYSEC-2026-2193","PYSEC-2026-2562","PYSEC-2026-2563","PYSEC-2026-2564","PYSEC-2026-373"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/llms/base.py","line":3}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c23af49fe1a2822c228dcb9a1057441e61a87b809b7822a5b5414909b04190a"},"properties":{"dependency":{"package":"lightrag-hku","version":"1.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1539","PYSEC-2026-2592","PYSEC-2026-2593","PYSEC-2026-3474","PYSEC-2026-3475","PYSEC-2026-4061","PYSEC-2026-4062","PYSEC-2026-4063","PYSEC-2026-4064","PYSEC-2026-4065"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"134a51d1c678f5bea5bd72ebe876aa6502831a392a1850dfb1dca22b8d4ddd40"},"properties":{"dependency":{"package":"llama-index","version":"0.10.68","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-11","PYSEC-2025-244","PYSEC-2025-246","PYSEC-2025-247","PYSEC-2026-1555","PYSEC-2026-1556","PYSEC-2026-1557","PYSEC-2026-1563","PYSEC-2026-1566","PYSEC-2026-1569","PYSEC-2026-2606","PYSEC-2026-394","PYSEC-2026-85","PYSEC-2026-86"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/base/schema.py","line":8}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9464c4b1f258e4ac3f13b48ae7822016e44f4fbdcb93019e5a7915d69184e742"},"properties":{"dependency":{"package":"nltk","version":"3.9.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2078","PYSEC-2026-2085","PYSEC-2026-2235","PYSEC-2026-2236","PYSEC-2026-2237","PYSEC-2026-3581","PYSEC-2026-3582","PYSEC-2026-3583","PYSEC-2026-3584","PYSEC-2026-3657","PYSEC-2026-3722","PYSEC-2026-3723","PYSEC-2026-3724","PYSEC-2026-3728","PYSEC-2026-3729","PYSEC-2026-3730","PYSEC-2026-3731","PYSEC-2026-3732","PYSEC-2026-3733","PYSEC-2026-3734","PYSEC-2026-3735","PYSEC-2026-3736","PYSEC-2026-3737","PYSEC-2026-3738","PYSEC-2026-3739","PYSEC-2026-3740","PYSEC-2026-3741","PYSEC-2026-3748","PYSEC-2026-3749","PYSEC-2026-3750","PYSEC-2026-3751","PYSEC-2026-3752","PYSEC-2026-3868","PYSEC-2026-3869","PYSEC-2026-3870","PYSEC-2026-3871","PYSEC-2026-3954","PYSEC-2026-3955","PYSEC-2026-4318","PYSEC-2026-597","PYSEC-2026-96","PYSEC-2026-97","PYSEC-2026-98","PYSEC-2026-99"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09eef8b6625b25738f8700358b71be29a093fcfe59905926f2178ad3d178132f"},"properties":{"dependency":{"package":"pillow","version":"10.4.0","advisory":"[GHSA redacted]","aliases":["BIT-pillow-2026-112390","BIT-pillow-2026-112391","BIT-pillow-2026-112392","BIT-pillow-2026-112393","BIT-pillow-2026-112394","BIT-pillow-2026-112395","BIT-pillow-2026-112397","BIT-pillow-2026-112398","BIT-pillow-2026-112399","BIT-pillow-2026-112400","BIT-pillow-2026-112401","BIT-pillow-2026-112402","BIT-pillow-2026-112403","BIT-pillow-2026-112404","BIT-pillow-2026-112406","BIT-pillow-2026-112891","BIT-pillow-2026-112892","BIT-pillow-2026-112893","BIT-pillow-2026-112894","BIT-pillow-2026-112895","BIT-pillow-2026-112896","BIT-pillow-2026-112897","BIT-pillow-2026-112898","BIT-pillow-2026-112900","BIT-pillow-2026-112901","BIT-pillow-2026-25990","BIT-pillow-2026-40192","BIT-pillow-2026-42308","BIT-pillow-2026-42310","BIT-pillow-2026-42311","BIT-pillow-2026-54058","BIT-pillow-2026-54059","BIT-pillow-2026-54060","BIT-pillow-2026-55379","BIT-pillow-2026-55380","BIT-pillow-2026-55798","BIT-pillow-2026-59197","BIT-pillow-2026-59198","BIT-pillow-2026-59199","BIT-pillow-2026-59200","BIT-pillow-2026-59204","BIT-pillow-2026-59205","BIT-pillow-2026-96636","BIT-pillow-2026-96637","BIT-pillow-2026-96638","BIT-pillow-2026-96640","BIT-pillow-2026-96641","BIT-pillow-2026-96642","BIT-pillow-2026-96644","BIT-pillow-2026-96778","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-165","PYSEC-2026-2249","PYSEC-2026-2250","PYSEC-2026-2252","PYSEC-2026-2253","PYSEC-2026-2254","PYSEC-2026-2255","PYSEC-2026-2256","PYSEC-2026-2257","PYSEC-2026-2874","PYSEC-2026-3451","PYSEC-2026-3453","PYSEC-2026-3454","PYSEC-2026-3493","PYSEC-2026-3494","PYSEC-2026-3495","PYSEC-2026-3496","PYSEC-2026-4326","PYSEC-2026-4327","PYSEC-2026-4329","PYSEC-2026-4330","PYSEC-2026-4331","PYSEC-2026-4332","PYSEC-2026-4334","PYSEC-2026-4335","PYSEC-2026-4337","PYSEC-2026-4338","PYSEC-2026-4340","PYSEC-2026-4341","PYSEC-2026-4343","PYSEC-2026-4363"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/loaders/azureai_document_intelligence_loader.py","line":7}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c77799cb53eef5cd1672669282e563fca36750e2c7992ae72c9dd6292170d1b5"},"properties":{"dependency":{"package":"sentence-transformers","version":"5.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4164"],"reachability":{"kind":"test-or-tooling","file":"libs/kotaemon/tests/conftest.py","line":67}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e20a04ec52874b58c6ba975328c132e9bb5cac80c0c7e912a522eef2b8de7fb"},"properties":{"dependency":{"package":"torch","version":"2.2.2","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-259","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3d38df9cc693bf32c51ddfdc28e82d823ffc84d9ae014c704ea35e3666177ec"},"properties":{"dependency":{"package":"unstructured","version":"0.15.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-3930","PYSEC-2026-558"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/loaders/unstructured_loader.py","line":61}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a848c382c8b8d7071a123cc620adc049527f5e7c02d12e6b43294a21f8ace908"},"properties":{"dependency":{"package":"aiohttp","version":"3.12.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1097","PYSEC-2026-1099","PYSEC-2026-1100","PYSEC-2026-1101","PYSEC-2026-1105","PYSEC-2026-1106","PYSEC-2026-1107","PYSEC-2026-1109","PYSEC-2026-2094","PYSEC-2026-2095","PYSEC-2026-2096","PYSEC-2026-2097","PYSEC-2026-2098","PYSEC-2026-2099","PYSEC-2026-2100","PYSEC-2026-2101","PYSEC-2026-2102","PYSEC-2026-2103","PYSEC-2026-2104","PYSEC-2026-2105","PYSEC-2026-2106","PYSEC-2026-2107","PYSEC-2026-2108","PYSEC-2026-2109","PYSEC-2026-2110","PYSEC-2026-2111","PYSEC-2026-2112","PYSEC-2026-2113","PYSEC-2026-237","PYSEC-2026-3545","PYSEC-2026-3546","PYSEC-2026-3547"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py","line":1}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b27c009fd0a2aa349ba8ffa8de9006c9f150394fb854b0e86d1d56d573e3ad0a"},"properties":{"dependency":{"package":"azure-core","version":"1.35.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1208"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1bbb737d164fd8f211f53e1320e9ff1fc4666d40e3304fe466bba8607ec90ef3"},"properties":{"dependency":{"package":"black","version":"25.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2120","PYSEC-2026-2121"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27e162474dde2c9361a105b038933373cd874345b54fa8c92f26cb908472d9c6"},"properties":{"dependency":{"package":"cryptography","version":"46.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2141","PYSEC-2026-35","PYSEC-2026-3552","PYSEC-2026-3553","PYSEC-2026-3554","PYSEC-2026-36"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d6125534fa47f96ab56adcf4eef63e1f2c87416a7c027acae1c9fd7c1b51b22"},"properties":{"dependency":{"package":"deepdiff","version":"8.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2445"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fff04a5f0979c074ce28f421ee0f2095aa6ad8be34f910b8d0faf143d2e9632f"},"properties":{"dependency":{"package":"docling","version":"1.11.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2143","PYSEC-2026-2146","PYSEC-2026-2454","PYSEC-2026-2455"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/loaders/docling_loader.py","line":47}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b960291dedabcb8616c25ce3d4843dcce12d83555052c122173d426d9a03a85d"},"properties":{"dependency":{"package":"docling-core","version":"1.7.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2457"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10e04b22e35243729294f2c63d26777ab5e2f09392f1c7f89a239026644367c0"},"properties":{"dependency":{"package":"fsspec","version":"2025.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4217"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/loaders/pdf_loader.py","line":7}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"694620e10e68b11c95e645bffcad2727853e51c64b98ca98eee9ebeb13d6a298"},"properties":{"dependency":{"package":"httplib2","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3444"],"reachability":{"kind":"production","file":"libs/ktem/ktem/utils/plantuml.py","line":9}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87a8d45f85ff8178f45d371c5ddcfb9c65fdfec454f0e2547a4a7d3a743729cf"},"properties":{"dependency":{"package":"langchain","version":"0.2.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-2192","PYSEC-2026-2555","PYSEC-2026-2556","PYSEC-2026-2560","PYSEC-2026-2582"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/agents/langchain_based.py","line":3}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"590d80e0cabf056495d2f8c6a47ecb4e9c8972b685cb84c3b9dddc4d23d34dfd"},"properties":{"dependency":{"package":"langchain-community","version":"0.2.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2024-115","PYSEC-2026-1507","PYSEC-2026-1515"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/agents/tools/google.py","line":4}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0f60e0c5ffe82486d7c64e91283b964787a28993cef1e85fae99b618106f6da"},"properties":{"dependency":{"package":"langchain-text-splitters","version":"0.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-1520","PYSEC-2026-77"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87602f4dce9da508589d16fe1c314ff8341f672d743ace949fbf9f1afd9c9d59"},"properties":{"dependency":{"package":"langsmith","version":"0.1.147","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2555","PYSEC-2026-2560","PYSEC-2026-2582","PYSEC-2026-2583"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7f819837785170d622ae36673dfa50afc91aee1575bed320bd108bfeaeea1f4"},"properties":{"dependency":{"package":"llama-index-cli","version":"0.1.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2025-246","PYSEC-2026-1557"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ab29ce1d8f8f2980f778c86ffe81357c473dc7e570579770781fba63a682fc6"},"properties":{"dependency":{"package":"llama-index-core","version":"0.10.68.post1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-244","PYSEC-2025-251","PYSEC-2026-1559","PYSEC-2026-1560","PYSEC-2026-1561","PYSEC-2026-1562","PYSEC-2026-1563"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8cbb13c1ebd4a96b1d48789c4d1f8cb765655ee480de5b6cfcb31716ff26ad96"},"properties":{"dependency":{"package":"lxml","version":"4.9.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-87"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37a19b59b9767d0c320f187f0c190367a33c8295c93e35e3e6f1239318a77d56"},"properties":{"dependency":{"package":"mcp","version":"1.12.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1617","PYSEC-2026-3482","PYSEC-2026-3483"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/agents/tools/mcp.py","line":123}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf8340270d2b3fb1a57f602bcd16aecce08e99e17c81358c8b19d43602534801"},"properties":{"dependency":{"package":"oauthlib","version":"3.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4113","PYSEC-2026-4114"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d17104a5ceb3b98c392bbba74bcb64816cb7b5bc239e7b633af3e447e25c371e"},"properties":{"dependency":{"package":"onnx","version":"1.19.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-103","PYSEC-2026-104","PYSEC-2026-2239","PYSEC-2026-2240","PYSEC-2026-2241","PYSEC-2026-2689","PYSEC-2026-3587","PYSEC-2026-3876"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"908c75fb62999ae42bccfe1163828c744ce3a0789ef67cdc74f0dbd5e7ceaa59"},"properties":{"dependency":{"package":"orjson","version":"3.11.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-107"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a22f33ff13534695bdbc83544259b765f67c8be29e88eb8728ab1c3a5e039e5d"},"properties":{"dependency":{"package":"protobuf","version":"4.25.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1805"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94b71d228747e748e287702e1514bc873875fb8b3f4b6246a77f892c3e552ecc"},"properties":{"dependency":{"package":"pyarrow","version":"16.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","PYSEC-2024-161","PYSEC-2026-113"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5102fe556f3399b622dcd81c118f7d1308c1374fbd00ede44c01babfc78c0a23"},"properties":{"dependency":{"package":"pyasn1","version":"0.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1810","PYSEC-2026-2263","PYSEC-2026-3455","PYSEC-2026-3456","PYSEC-2026-3457"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b49b20d26e984334ad34ba49e1ce4cd19309dab5e247cf38780a6c9976b89b30"},"properties":{"dependency":{"package":"pypdf","version":"4.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1827","PYSEC-2026-1828","PYSEC-2026-1829","PYSEC-2026-1830","PYSEC-2026-1831","PYSEC-2026-1832","PYSEC-2026-1833","PYSEC-2026-3004","PYSEC-2026-3005","PYSEC-2026-3006","PYSEC-2026-3007","PYSEC-2026-3009","PYSEC-2026-3010","PYSEC-2026-3011","PYSEC-2026-3012","PYSEC-2026-3013","PYSEC-2026-3014","PYSEC-2026-3015","PYSEC-2026-3016","PYSEC-2026-3017","PYSEC-2026-3018","PYSEC-2026-3019","PYSEC-2026-3020","PYSEC-2026-3021","PYSEC-2026-3022","PYSEC-2026-3023","PYSEC-2026-3024","PYSEC-2026-3025","PYSEC-2026-3026","PYSEC-2026-3027","PYSEC-2026-3610","PYSEC-2026-3611","PYSEC-2026-3612","PYSEC-2026-3613","PYSEC-2026-3655","PYSEC-2026-3656","PYSEC-2026-3910","PYSEC-2026-3911","PYSEC-2026-3912","PYSEC-2026-3913","PYSEC-2026-4153","PYSEC-2026-4154","PYSEC-2026-4155","PYSEC-2026-4156","PYSEC-2026-4157","PYSEC-2026-4158","PYSEC-2026-4159","PYSEC-2026-4160"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17f0aaf99d6bdc0bebe5f90de29d2729c66d0b694f1a0b851d2271e619c27719"},"properties":{"dependency":{"package":"python-multipart","version":"0.0.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1851","PYSEC-2026-1852","PYSEC-2026-3036","PYSEC-2026-3037","PYSEC-2026-3038","PYSEC-2026-3039","PYSEC-2026-3040","PYSEC-2026-3041"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6fbb72981de59d5d2e2e2eb22003cc3569dddc398322df21d8b898c8b556cdaa"},"properties":{"dependency":{"package":"soupsieve","version":"2.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-3071","PYSEC-2026-3072","PYSEC-2026-4170","PYSEC-2026-4171"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55dafb5dd1a9bfa0286572041c83230db1fdbb3e170dceaf78ee18fc0f94ae0f"},"properties":{"dependency":{"package":"starlette","version":"0.38.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-161","PYSEC-2026-1941","PYSEC-2026-1943","PYSEC-2026-2280","PYSEC-2026-2281","PYSEC-2026-248","PYSEC-2026-249","X41-2026-002"],"reachability":{"kind":"production","file":"sso_app_demo.py","line":8}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b731911f29470ef1a5407e431a8cdd305763bf99e30984614480cbbd5e0ce0a9"},"properties":{"dependency":{"package":"torch","version":"2.8.0","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55554","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-206","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-2286"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2a2cf9c9925446c52932cb39a40d85d495525f6ee4eaaaeeb84f2373f7c130c"},"properties":{"dependency":{"package":"transformers","version":"4.56.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc57807177f28824996d2a38f98c3cd84588c725283ad6b776a44252433ffc0c"},"properties":{"dependency":{"package":"ujson","version":"5.11.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2291","PYSEC-2026-2292","PYSEC-2026-2293","PYSEC-2026-2294"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64c75a3299a9a190872f0b607fb5f4a2eec4880c08479c856652bbb6b93bd391"},"properties":{"dependency":{"package":"urllib3","version":"2.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-141","PYSEC-2026-1994","PYSEC-2026-1996","PYSEC-2026-1997","PYSEC-2026-1998","PYSEC-2026-1999","PYSEC-2026-4175","PYSEC-2026-4177"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cebe9ad6cd46790024b517d6c5049099ee23b44f50c9cae011efb57f253284fa"},"properties":{"dependency":{"package":"virtualenv","version":"20.34.0","advisory":"[GHSA redacted]","aliases":["BIT-virtualenv-2026-102925","BIT-virtualenv-2026-102930","BIT-virtualenv-2026-102937","BIT-virtualenv-2026-102938","BIT-virtualenv-2026-113714","BIT-virtualenv-2026-113715","BIT-virtualenv-2026-113716","BIT-virtualenv-2026-113717","BIT-virtualenv-2026-113718","BIT-virtualenv-2026-113719","BIT-virtualenv-2026-113720","BIT-virtualenv-2026-113721","BIT-virtualenv-2026-113722","BIT-virtualenv-2026-113723","BIT-virtualenv-2026-113724","BIT-virtualenv-2026-113725","BIT-virtualenv-2026-113726","BIT-virtualenv-2026-113732","BIT-virtualenv-2026-113776","BIT-virtualenv-2026-22702","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2009","PYSEC-2026-4011","PYSEC-2026-4012","PYSEC-2026-4013","PYSEC-2026-4014"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"192d71e31f5b218b409fbc8278ed8879311fdc1a2ee38721d0d47695d04f91f5"},"properties":{"dependency":{"package":"diskcache","version":"5.6.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2447"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c19df4d1358b29b373ba4a875a37caf6a28452faa0803b1585703e69e1306b73"},"properties":{"dependency":{"package":"filelock","version":"3.19.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1374","PYSEC-2026-1375"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f825156dcb9a84c4072050a0f4309dcf07b7d69812a2b64c2aff89bf7a794db"},"properties":{"dependency":{"package":"fonttools","version":"4.60.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1389"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4c1c6cdc449165258340d785bf0717bb47ce7c0b28550828b8de1d6598a8e79"},"properties":{"dependency":{"package":"h2","version":"4.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3628"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e06703139f2ab9eacfcff8ea99afe1adbf1b8fb60adbffe77920d0af56c6882c"},"properties":{"dependency":{"package":"hpack","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4053"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0edbe0c20f21720d5285b2663177b2e3ab8c055b3130ca092c57460fd8d8174a"},"properties":{"dependency":{"package":"idna","version":"3.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-215"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5956987cd89eec5d6ecca6b9ef05c4d69b3daa86047083e94410ea3234b5513b"},"properties":{"dependency":{"package":"langchain-anthropic","version":"0.1.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2192","PYSEC-2026-2556"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/llms/chats/langchain_based.py","line":280}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d30077017d4a89db0d73d8a702c920ebf6efc6139b8d3190ece6b973a146c932"},"properties":{"dependency":{"package":"langchain-experimental","version":"0.0.64","advisory":"PYSEC-2023-194","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-53","PYSEC-2024-62"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0cb8933b9f2c8c8f882416fac6a0dbdcc3e01ebdb40509d44efefffebc54f430"},"properties":{"dependency":{"package":"langchain-openai","version":"0.1.25","advisory":"PYSEC-2026-76","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/embeddings/langchain_based.py","line":114}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e766af18da8fb981a444cf9f7503d392b3a53705b0dd58b878a1c9aa5c01a40"},"properties":{"dependency":{"package":"marshmallow","version":"3.26.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1605"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b3561b3bde269e229d36f78bc14d6fa7c55db65722539ac2080da513f44a218"},"properties":{"dependency":{"package":"opentelemetry-api","version":"1.27.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4422028c03a32871e5233403e0308e8f6b20d31e756da7763ac9c84f419ace4d"},"properties":{"dependency":{"package":"pydantic-settings","version":"2.13.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"854da5cef13784fde7cfff8a79eb2a7417bef798a376f1ff9e501c0d2a107a1d"},"properties":{"dependency":{"package":"pygments","version":"2.19.2","advisory":"PYSEC-2026-2987","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0e6a57015dc23cfdd8374d0bc7df076eac4b337374fa23d10cb0ae918b0187d"},"properties":{"dependency":{"package":"pytest","version":"8.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1845"],"reachability":{"kind":"test-or-tooling","file":"libs/kotaemon/tests/conftest.py","line":1}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f35bcb5a3b582c92e6a7d51caec3ab2557cbdd9baaad1832ae7151bb7deb455e"},"properties":{"dependency":{"package":"python-dotenv","version":"1.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2270"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"510b0c198150a1a92e7161d2206c9a297f1e519838cce1206883e22c5a54a3e2"},"properties":{"dependency":{"package":"requests","version":"2.32.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2275"],"reachability":{"kind":"production","file":"libs/kotaemon/kotaemon/contribs/promptui/tunnel.py","line":9}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13586fc0c39afd311c8f68b33f2e89fbb1618f43b2d8bc54d4d00cd4d7925790"},"properties":{"dependency":{"package":"setuptools","version":"80.9.0","advisory":"[GHSA redacted]","aliases":["BIT-setuptools-2026-59890","[CVE redacted]","[GHSA redacted]","PYSEC-2026-3447"],"reachability":{"kind":"production","file":"templates/project-default/{{cookiecutter.project_name}}/setup.py","line":1}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be9c57e2fb625c43c271d051f76b97f27b6976f4ec358ef8fea1d9cb5205f460"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9b15183b821b0d8f2a8a9a4a501e7e6d43815f083fe597ec3f99fb39c4628148"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 113 of 121 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 113 separate risks. Counted over 121 of the 235 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd79543a5266b2a7900de373ae711e4a875a4f67d2a9c5f81972f405d79c21e0"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"452abd1a515bc8ff102423a9f72d63749887160c95d51da72152601d7da27db1"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/simple.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d44282ac44d19ad8247a807a6d9e37e7e39b029bcc4f35b271bd45f4365dde"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/rewoo.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2232446293a1afc50f1f96dbce1becb49bebaf4eb7b32916d6faeac4dcda9366"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81313cb75051dd1e085d4f2c39d1999dbe4f4e5342e0dfc887e47deb9b357bfc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/settings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee5f1d076df053ec0ceaad45533a6c552502749a7eeb0c14aaabe5968522ffd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/nano_pipelines.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b8246db1f8f875e977a58119752246a0320cfc90c5194629109166a168c18d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8ec5aaccd1b0954529bc35a163029572a51b7f6fc8e150c56cb153cdd3cf64"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/openai.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"893a8f9c271aa3f36f3ae58fb9e6c69c3b7fd8fb47fc16dd7dbceecfb2f83c9e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/rerankings/ui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1a6ead83d7858bbba53832dcae3bc76e4777ed0f89bf8317d68f0accd4b026"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/control.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e726c395e16fdcfde36a7cddfb929d3885583c3fe211f759bfed61cb54f8480"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/ui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79dcd7b4b28d91af894dad0cf563a618aaeff9ef18997357476671807c93a26"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/resources/user.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ab9882b5d9152c7c6828335b0cb18cd91bbd27c396b8064a9ab88990114475"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/llms/ui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb3cd7d4dda55f7a739db3b86f179bcdea319f0c4815eeb6440ddebfca9b683"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/setup.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d357579bac71ef9709f817d09ffdb739d919145acbcda3eb42898dac7452b1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/pipelines.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e321713dab466b8e97d599abc7908d8701d791af99fbc13694955d0404e15e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8182de4c88dd2d7d4b2a9936d70d3891026a8c9047dde0ac3c52f9f435d535d2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/agent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"878c7b9a8bde4f3b6ac5540469af0996b2bfa5e34dea951fd66070b0d36a67d4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de79c0fbe6e990a84fd3d3ea189952cb82abc87b8e4fc2e1e48f9ee6ec396845"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6288e6123ffacb709877751f5596510fa455822fe0150c2f9ea83e642fd278"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flowsettings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9274633bf5cfcf0b467ed3977cb653828c0158428f4582a7bfa84974e508ac0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/ui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5fe2c34b4fe791b2ed2e27bff06be3915f1ba8d2def8c21d6a207ce8cbe858"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e184602e716a82b83ef3ec539e8c88d213ddc92c2ae4631f88494165a14d25"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/langchain_based.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecbdda3e28b9671053592fd9c79e9331149b2d6e8e128ab6868bc776ac06dc2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57790ba86e4dbfb261ab4db7445a46683fec1789d6915bac8b40bc6fef2551c0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/vectorindex.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31576f4380f38dd724a0f9d3691117cc5f602faf3edfe305014c05dc7bc332d5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/app.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dd6570890436cc69ef5def27f505f9729c4b92bda942052d598d575e7b8fa5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"980a46504c87285c58f86f6ccf663d7bfdfbe14a70f25522c6573dba6cedc101"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/pdf_ocr.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e7a4b48729ebb575c2f3c4620c91a5ce81d28d6366b91b93ad5d9ef9c766ca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c79f1c7d7cbb7c02993fe3b0cb40e79ae1155a11889c5cbbc1e8b556698815"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/langchain_based.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3347430d53770068a120bc1783ed5b42c1cd704dc1c85942e99ac27ac4cb99a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9612c7228fa394c3f518098c5c2abfb1e89effc87f0216e5c7a96f9ee9fb08"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/openai.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d16f89302b44b7dce26aa8e2c08af924d45f040f86d7c9c72d89c2d9b898e2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/azureai_document_intelligence_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4009f68497a8c4e5f2b696b91b1c065c8dfa7505837854c796f728edae2007e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/adobe.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f050959799ccae70d17a43f5a7fdf217afeecfe8e2731d476d01bdb12ba0d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/docling_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc05628a7732d8c3343e17fecb4e6f6f070f833c1b56d0b9822e16223288915"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/main.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c85f65e2b3ab075fd586d2594df0ad367715f73c5612c035715db706a636a6b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/render.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48970655e53df8abbdf75a237aede2d7be71cf31cfe0980e31a29eec53f2e595"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/llms/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1654d8cf3b87693385a18d5504c89a7a0fc427430d0411ad2eb3d82ef0d829b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15353fd733f632dd036db4bb423468bea97aeb9eabab5ce1ccfef25dc5a036f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/completions/langchain_based.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05adf454e0202cb2723745e2cc37371a705cf14404f5a228eadaa162860bb7ce"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/ocr_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9cd4d1ce4ab807267790db651cf0707c69745f87e38af730db221fb9c800d8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/rerankings/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"134ea8607aa996c1d8a96d8e19f04c2aa61ac82118bee585eb7a8a05987f5d9e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/theme.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a67e9640d0c410049247a3783b4b1c2d34713a90436b4649cf228241f0404f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/adobe_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"851ee79aaac54a72b74a82a799e4e043e61dada5a394dae18be500707de5aac7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/excel_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8c2c1e42db59659e7c663d3c7800867503860cdb7575d961b3dafe2a123ae2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20517cb9bfc95e73c9a378c0d733afb1cfc659044b12fa9cc08d2e49ff176d24"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/blocks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c630a0354a48a05465e9169da23aa21714b685e4f1e7a3dcdea13317972fe52"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/cot.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30663171426e801dcd9ccb708c58a2b9d9a70b4c1651a2cacee6304b581563a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/docstores/elasticsearch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd2b1006a85e4c12c77708d363c7ef403084730176465d7fc9b50218203b885"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab04d481853551bb6fd3a00f12180108c9d3e3b7a3ad3109309419132c88c67"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate/migrate_chroma_db.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccd3431583308db21772fbfac50effc48bcd3ce1510a1c0bd79f0ed68627dae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/branching.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa12280b089d718f849263304c6e843497c7d847b1981e41b49c08ccfdf4c63"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/rankings/llm_trulens.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96d7a1684e7833a7d017f93ee18d8952add8021739217c91d9a39c9772f1661"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c99221df7cfbec99bcc53ef90129523ad77f3f7f9bb94822de9b1cfb6ad625"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/io/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf822dbbdeba5042cffee2eec95bbbf59f58481567ab5e4c22935d25d3e880aa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/knet/pipelines.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33dc382342965be8103514ed9e222ed4490e3491b881a44a1e66e5316059653"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/prompts/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e816fd37afab08876b1db41df6ac5e041057203ed6511fd823228dde27c4afa8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/html_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e72e8f801896f097bf476ccd013fbadddb44b8433c89cfaad5c9d973447d29f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a758695c4b269546421f11e77acd78d5e42faf6d616371b53274cf9dc19118a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/llamacpp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23d6e06beb20c996223aa5e07faa5bbde657f2026982c16fc6f8a0fa835f412"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/docstores/lancedb.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9d0d221b09393c45c1ae904773c8f972a06c9f23922a7549ad2d9a6f5aaab6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/components.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30766b721808bc68fbbf8e7d294c6321e4224f633516697961e16e8d14c9208c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/base/schema.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"470c8e87e4dfd4bb182887146651ed260828959ecfdcbc58fa68ac65139ea74d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/linear.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ca55d2c1d57a39450d2e9860a511461419fa6322ad2c439d579bd33d6ec277"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/visualize_cited.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78934fce3ec1a1c1ce41044b72ffdc979904176dbfa2c21b4407d63a7e8934d9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/tools/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a612f27c9f0d20e4ca54dc848833968fa65344c8f28c601f2be28d276828a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/export.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63a22747b0d2fab16cf9f88f4ecc40818900a0ac2d57f58395c5f04df8ec064"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/cli.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74480eecb31fd7e051c7bd3726bd50a06cf593bdc9716e39fe3e3716734dfc22"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"474f9102f9757a1eaaa126d53b74dcfaf0513b3c57f6223a1997ba587759bddf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/ingests/files.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdc8971a9857fde5d1fd9b2fc82c5c89cd6e4c0c33f14d78f5b60d658dffcb7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/parsers/regex_extractor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89d0256aa5c5fc93a842e0abfb40890257a31ff3996142bc5cf1711a99618e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/settings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4353553acf53ec6f3c02b15a7acf70d10f0f17606f3ce7d4acbc458f3e73b995"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/box.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28edef9390c40b348629dd8f1ee2f234ff62fc341f82bd16cff23f7eb5892cf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/prompts/template.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da77c28559daad181894c33686e97f361a887450b5d3f744d6f830b1dee5410"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/format_context.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4612597594f5cb6640a1f8ae61cdc01abec871a5f65782a324b8f93feac5951f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/help.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f87f32e0b16b653ff6429dae1d5ca70419cdf19f29a1e3a6fccb822ba914e32"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/login.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d226feab602007a8690babbc60db061ffd1e72d0b69d358f7a24511a7b6ee0c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2922d3f0a1af120a68d28516a6e893fa26827b5f492777f1cec3fee090546450"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/planner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa933661cf7740c3fccf8e387535e97c82e17188b9845233fce30e158aec3253"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fd75abf29ba83106b1825ba4a6d0bb5b9adf0fba9d7ef23ce47bbc5588dc78"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/unstructured_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7871bef09131f08f017242ac08c518c22e3c06e127df55acb16f6634755f2f17"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/themes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85962cb31fbb4bf2d1bc7a9af5ef79286e04017a70ce63084d3cb2aa91ef864c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/prompt_optimization/fewshot_rewrite_question.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cf44f63dffb27db9d6c01504d8dc235eaf59b5e68b4b44ff20edfa2edc0bdd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f1f90f4942471436fce3ea56aa6dc58e87d874dd9990b45dcfec6ad52148c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/hf_papers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d94d4727ab8e94e0ae298dc19ff94dc7a09d903d9b8f5d29241d2de2ac4b8b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/solver.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f47b5310fd2bd27353158d1b69319419bd81ad332f7ebd34334751e4787f2e2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/pdf_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"451be2467e7f47dba948a0f44601bb31a3f5da66c9de775a1c2403639424cf2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/prompt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b3a560973b44a9e2455a97115960cf2b0e81b863cba2cf2ac8e79541d47258"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0708321941a8f4e36805e40bca98de02464f612ffe595c0dc922e324490a9950"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/milvus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"305e23b3b7d0f8b06b295af0812e907a38aeab5a84d1e26d32c0b26638923916"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/plantuml.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a611896e30c14148edec70e57ee2d9b92e29ce6c68c1b9b039fa64e697668b20"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/chatbot/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8072cb634f5ecffe7bcd74a459967ed83de9ae89c2f6fedd651b2e2c789a6ab7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b90bd7ba831124b9a8f97b9d23521a88d665cd3bb125edfdb47151647c7c65"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/tunnel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2941dff48cadaaa5751964973568abba8b7c9c174c198aa29ccf677cb76b61"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/prompt_optimization/decompose_question.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc44cf1a233215b4dda7ab319b5907c1b01454bde3a19ecceeda92d4c4e92a5f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/db/base_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5dfef71628ea6ed05bdd79d3ef789a34605aa6e4509e837511f09600850740"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/docx_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07142691beeeac3ec3c0bc1bee7b42f3d34c89212d378c5f6de16f837e97c18e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/docstores/in_memory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73ca23170afbc0624d1abc77a829d9178591a487f5e5645946783f0f692cd54"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e70ff766ca59d45d24b60e1fd6f0a59b9771c3e685cfb3520f4dc674683379e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/rerankings/tei_fast_rerank.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0606e2b3bce16514ac9e5bb45b8130c59801d335d5082913f93e1459b2e8b20"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2382917f92b1038cd2ca0c8769db01973b9bda354a825cee210139b09a678f3b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/chroma.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e2dfe7f3799b58fe699a051b7655ce67debd57cc7053f95afbc5da85cb95f6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/nano_graph_index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6104328ce28cfdefae6f2ffe3911c83256fb20d5f76eca8763a0c5a77b6499e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sso_app_demo.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c04b133bfc5e473bf2584ef3708dfc769229db6c71700a309b994ae141df01"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/light_graph_index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2247e0729651408b0f23b72ca489d6cbb20ba450c5bd94aba054353ae30ba3d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/langchain_based.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c957bc602bec79789b8c51f5ffd25762b6af8bd2e17e1d043db7ea6501c0ae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/prompt_optimization/mindmap.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"353d288178dd45e38ab1c988ceabea5ed68fb808671b0c7de7e334e6d763b5f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/visualize.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f52f50be6ad8f4f9fd32ab4192d7c315a3e32335161af26f4b0447c15c003a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/lancedb.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee55940a5d0ea63f5f148f4e6008140c48eac2b7118cfc5d9ad1fe2cc5f98257"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/endpoint_based.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7177b2cad9fd66f7ac3c413ec82abf7f7ee0b069a4b0f0c0724e22bc1b36b0c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/resources/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0a83cf53938161d2d544609b5f5f60298e05fc01671912820a1c757cfc8e12"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/serve_local.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5199c885a82d4ff82d9f169922e8ea873271098621145cad48fd8a0bcc94c0c4"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0adf0689ce5c141a78af1cce83b37dba81bdca549d24bd8cdcb98c84c101878"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59619175abc9d1024d1944a814823f75f70f6463b8fcf2fb1bca18633ab960cd"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e5b381c94c06d68437dfbf4712528d05f39fd367231d7d8e63f10fb52986b34"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa8d555f7aeb7dae4c96be3d61aaff8206abfa6dc8c4b937ef602b62de9db3ad"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18d16aeba6500fdf7f22c6a356fed3b63f6eb0c411c6c41dd69911d99830ab71"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a request handler (@app.get() (sso_app.py:65) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sso_app.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc50b0297e640ed2febd87b99830c10b162a8e1a4baed1571402aa2a8e7f9e8b"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 4 application file(s) sit at the repository root beside the build and tooling files (\u0060app.py\u0060, \u0060flowsettings.py\u0060, \u0060sso_app.py\u0060, \u0060sso_app_demo.py\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/4 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 5 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/pr-lint.yaml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060pyproject.toml\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cb10b4cecf1ff8954b4572fe00acd990e1e486a213ddb60c937a99b3b59c61"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build-push-docker.yaml"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/tunnel.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ea546a5ca4810e25dcf17a909f66a9db2ada8baccb00c3fa9bababd74d631b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/endpoint_based.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"273c9a1c5f1c79bced3e9dd6288bed10d12f1eda441881ad19e454fc84dcc903"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060aiohttp.ClientSession(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/embeddings/tei_endpoint_embed.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"218c9026cec9584edc3343b329068e612c94485b5fcb651b76edd3feb18163dc"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/retrievers/jina_web_search.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"970295e8ab5d93908eccfa6c296ec3c0ce029c4f5e19f766aafe733c69882a7d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/endpoint_based.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba4e7fe10a48763c954d1c2c97dbb1604cdbd3e64a130eeb5f8a13ce970619c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d029b7f9b8c9ea23b148f804ce99969293619c0e1999f765a91cef4c503523cd"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2908df59ed13aa0d2e28232549a469a2736db261b44d0b2e54af498ccff0fecf"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/mathpix_loader.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e110cdae289d417c96e8280a773db358bf16fdef646b7cf9081cc671f214e74d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dcafbb919d70f1b8305444c6f743c295e165238af257983fa19969b83d1f23"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bff2041696d891c68926677e1ad83ee413a5bea1687b8e01a8569391ad94ad7"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/web_loader.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1704e6d2d281b2829f1d08ba0f6775b1776ccf3ffbf21565879dcd4c22e2f7"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/knet/pipelines.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc55901fc855a2df1965ae0933e6935a3d6c688d76fbd9f4e2e28f3cf01c7b2"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/utils.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d64f7e9cc99323f8e37a0fb463ac257fa7c09f7e09e340f86a87d70cee0c63"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/utils.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eda9456812f9d9c96b6eb3099fea7eb8049d7c3256a5ed3d657c2ae183fb6cc"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/help.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee493d1543f5644b5e7db5d0d7fa49c9a0370ee59e081e9d50f5e23511015a48"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/help.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efe79040e0825034d7d7ee5fa5aef6d2361f008df34be9295eb0996da599d9c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/setup.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"128bd6e21e66e7bdc70d3bb91464c394b7c2fc22a785652d695d72dfd1fca67e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/hf_papers.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ecf93a19eb08073785adbc7e9dd7f1b4957b448de1cbbcc0b82c060d0a2507"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/hf_papers.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1358e4416a55288ed6a81f2ea292953205041612fb88a12f528cc0aa010e60"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/utils/hf_papers.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38e51c9f95a5e61477c39c649e70e368033e4e7bc30d303f547992233750f87"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/rerankings/db.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f960b1e4df2c26684eb255ead591f54e2a18761b6bf3c7e1b367bea34d27f0f"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/mcp/db.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce60fc1dd5f1cec8e4cd272a9fefecd27fae6885f1d9009bfece013fb33ad40"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/llms/db.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b742c1b664eed677d66dcf4e57bb05df31f65220e34f98c0986cb60764753d"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/models.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f22dddd5e012408f4027cf5ee0614f9055ea980317fed119224a3be35f3bd4d"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/index.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"802ecca2471daad9b009231cb5e15fe8e3fec87b6e8c8aaa53b5509b5ac2f8cf"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/index.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ac3c3047c59f825eebe97027504870003aec1e5c8580fb58bac3243902fb70"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/index.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4660aac1eb3889fb1fcdfa50dbe6bd3e478fd8a6acb306e71f137989ee046c72"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/embeddings/db.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dbe9bbe2e71a342264c37ced8ce40232fc02c8f20242e6ca9d11d6693e5625"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/db/models.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ac742223eea6f5ef2f3e1dba8a0b68ed202b619d162e3f72bf6f8ff4bdc7b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060doc.metadata.get(\u0022type\u0022, \u0022text\u0022) == \u0022text\u0022 and len(doc.text.strip()) \u003E 0\u0060 appears character-identically in 2 files \u2014 libs/ktem/ktem/index/file/graph/lightrag_pipelines.py, libs/ktem/ktem/index/file/graph/nano_pipelines.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27d78fe6264c49ad0d78e06820ef3232c71c254db50a07c631d821f539d7ef7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060doc_dir.name != doc_dir_name and doc_dir != doc_dir.parent\u0060 appears character-identically in 2 files \u2014 docs/scripts/generate_examples_docs.py, docs/scripts/generate_reference_docs.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/scripts/generate_examples_docs.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"add512cd5a82b2ef0247fa8f24cd0b73dba0acec9f85e8e6c4fe40f842ad0985"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getter and getter in allowed_resultlog_callbacks\u0060 appears character-identically in 2 files \u2014 libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py, libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9657508bb86380e77c816ee8b16d2f7e08d1c8dd5bbf394ed1927d1df6df8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(component, \u0022label\u0022) and not component.label\u0060 appears character-identically in 2 files \u2014 libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py, libs/kotaemon/kotaemon/contribs/promptui/ui/pipeline.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/ui/chat.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"722a23933e33c2fa740f6815054eb12e3c625d44f2eb7b2cb357476882ba31cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.use_multimodal and evidence_mode == EVIDENCE_MODE_FIGURE\u0060 appears character-identically in 2 files \u2014 libs/kotaemon/kotaemon/indices/qa/citation_qa.py, libs/kotaemon/kotaemon/indices/qa/citation_qa_inline.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/indices/qa/citation_qa.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0a2960c8412b5f205a4152c46c1003470c51fe14535fdf5beca07912147853"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060handle_node\u0060 is public and takes \u0060node: dict\u0060 from its caller, and it calls itself at line 77 (\u0060handle_node\u0060) with a piece of \u0060node\u0060 \u2014 and nowhere in \u0060handle_node\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060handle_node\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/contribs/promptui/config.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1844523c11173be9af92c97a46aeb72b0240f8ac9e05e1a881afdcde15f435ee"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060mark.innerText\u0060 is text this program did not author, and it is written into the text of an element through \u0060outerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8badae255786a3d26c4801451d5ae034622f65793542ee1d7342f9c124ecfc"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060p_content.replace(matched_text,\u0022\u003Cmark\u003E\u0022\u002Bmatched_text\u002B\u0022\u003C/mark\u003E\u0022)\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"896c8c551d462c5cd4d4fff597ced6e952f0d8b7336abf729ab3bff203ca752f"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060matched_text\u0060 is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f7ada872f7f72d4741bd2cd28034264c8ff7ebc4c38d887e80f55e29e49ad3"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060content.toString()\u0060 is text this program did not author, and it is written into the text of an element through \u0060document.write\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/main.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"190c436029d3f4abbece35721b3b4171d6d0ee7be60dcb1963c7ed3b7a3794d2"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060span.textContent\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/pdf_viewer.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2dcc3e7d1e812abc442eebf0878c051751fe907657bea24e8e36a6605541ce"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060span.textContent\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/assets/js/pdf_viewer.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c3b73037448894ac14179109d445f63581af047f65dfe1261ecf49313c0b6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flowsettings.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f5c1c50446f9c4f75de48e40e0597fe785734cb9e3f2eeb215ac2a9f070e0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/settings.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5b077d2d32fe848b788c5da9c94a9af7cb65bb0844faadba6907825596615d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/pages/chat/__init__.py"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"59992cc38220c4ec4a09968cdd141a401f85be560dec4d53390e54e7d3c9c653"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/knet/pipelines.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f355d501c880c49e938019a313eec5c67547a7ecf0b5f96accae358602c0fa59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"087016fd9bfc035cf827d67e4f333d57fb5f4759479545ab5cea717be554bc35"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29560942ea2be34a335b8040aea679102b05d16b77660c856dbdf13bc496e66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/milvus.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fa3ca8625729392745f8145e28e4e8e6241ab1f71c6bd8562442d32f2ae765"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3c46743471f1532762c95fc3d0091d4af8e51831bf868e03c93125df733c51"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/paddleocr_loader/adapter.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"020bfa78f9cd271f70211f9131cc438dacdf5e8e982834ecca30590526233fdd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/chats/langchain_based.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e081b42b0217c296c809a0e1b61fe5712dbf0840eb50f2af07d3c94ada414971"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 315 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd851225b91caef1d09a5075bf6beb4ddcb03da544dc3b3ad62e7e37f94e78d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 321 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/react.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"173f738c8b63017d2f004033314e5dd2f7e9cf16708fa979a8cb53bc5f3020e4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 452 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/rewoo.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"442e328eb2e831704efd6753e2266e554eddc090156a60ea980070f3f98d3161"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 458 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/rewoo.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b81acddc9f43d08611b8e4c510db5e346f924f2c1f072544344fa25ab07a025"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 406 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/reasoning/simple.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e65ae4e58ce0cd051684e29f3c6823bfb54a297f53ecf114b09d1149ac130da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 143 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/pipelines.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bda566caac0d3cd825584208568c56f51a08c398ec270ef68106144a9ad9a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 65 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ee0b09b086beef19da8a8c0f57500e27abbfe230e363bcd00a9840eefd8a4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 96 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a349a2e7d2718caa67085c4571bb9053517d6a3fcfc018f105a35ab1c375085"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 192 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/lightrag_pipelines.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf100c5810bc699573838c73cb3785801d01e954b4a695d61b5eef907a77f805"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 63 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/nano_pipelines.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a24b492f042b6e56432fb00690e6e29c3f1024067b0c284b969d54cc5aaab88"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 94 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ktem/ktem/index/file/graph/nano_pipelines.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc12913b8209d9843cbebd68d390029ba81cab6d96539827645d5042e46e6f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 53 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"226fd26f90b58d7c931e68b92831ab3629b78fdf88dc4a14ede16265e3acf547"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 131 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/loaders/utils/gpt4v.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"044afc939eccae09ff1142d891455ec5f8a694ff042bc67e246f959d830e7646"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 35 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/llms/completions/langchain_based.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3a709a8d86110ff4ea7bdcd67ecd862fec82507257c9eb215cabb7dde8afbb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 263 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/agent.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"917ed2dd1f68263753d76d0861de34e11bf016f658d8034eccbd317e3a46e35b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 271 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/agent.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c9cccb342bba26c1df04e4a1ebe7c7cc0047a88481e69ef35e6c7e1550dffa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 316 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/rewoo/agent.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfb1b7606b8fd22fc931a02b7494333a29f0a108326de7812846e5a2c992687"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 172 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5d607857b5149c787c2a530d460664f8c48c3b7bc0ecb85803e81b1193dd5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 198 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77f20f30f76f56c288a0bf82eae593b7ef736147b8b43de58c6afb57f379592"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 206 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef228e37f60ac5ec74cccdfbd66767e5245feaa4bddd21633371fb1b5c36d3e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 211 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d93a3d1238ff8952ad23fb55a9af7b61f2b4f2adb0ea458a2e9790653503f51"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 222 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1559ac91fe95bae1b61f1edfdeb22e7a5c31250ac1d311f3749cfbe1aba56764"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 223 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d7f933316e7eac73df161ee7f27c902e189772aed93856f4f40193b628c097"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 238 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"031377d6e999e36aa0ab41c295bca0ae70091c30529078024a60b29dcc3c5fb1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 242 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2775c62bf1a80b4b008060bdb1400a0503b980a895847657340281cec3a63f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 275 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"923f345bb76896902e33c75378f9860f5e41dfbc45ffba6024b993f0a4025b77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 284 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"05235f0550dc2313bf1edab159191e152673d7a3f1a538e8f09538249f525940"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 290 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"754e69e6c8f2eb6f21d351614b9a68a95e6deff015e165b4c53cfe149fe1fd13"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 304 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e46bc44dde10e018ce38edd16a3c18524ba0447109463f1193a6685f341085"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 306 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2250e3afaec6640764bb0ad6015fec3802ad3c88190662a42f3b72415c36b59"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 322 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c0fe0503c9e5ab4a46005c2b08abc5a3104555e4e33fc05757bf939f5683a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 327 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/react/agent.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"067f674c571030fe8d60ed85c2ab073110287eeee2bf4c10aee97c02c9789f3a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 118 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/agents/io/base.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7ccb6e58bd2e6ec4b670c9e76391e7c9464c38ec9feee81b441351dca426eb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060count\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/kotaemon/kotaemon/storages/vectorstores/milvus.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af4aae064a4f8510baf29ad56028875c258bec873f813a875c3238842ed15a5"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":117,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}