caelum0x 174222bcaa feat: Builder-Track named-user tools, bio + evidence-intelligence platform, Apache-2.0
Builds PaperTrail from the base skeleton into a full evidence-verification platform
for the "Built with Claude: Life Sciences" hackathon (Builder Track).

New named-user features (Build Beyond the Bench):
- Lab Notebook Companion — rough bench notes -> structured, searchable, grounded
  experiment records (lib/labNotebook, /console/lab-notebook, migration 0059)
- Clinical Trial Matcher — de-identified patient notes -> ranked eligible
  ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning
  (lib/trialMatcher, /console/trial-matcher, migrations 0060)

Platform:
- Deterministic verification moat (biostats recompute, exact-span grounding)
- 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar,
  PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier)
- Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise
  governance (RBAC, /api/v1 gateway, metering, audit chain, retention)
- 17 OSS projects assimilated into native TypeScript on our stack (backend/engines
  retained + credited in NOTICE)
- Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site
- Next.js 16 upgrade, benchmark harness (honest smoke-test caveat)

Licensing: Apache-2.0 (LICENSE + NOTICE).
2026-07-10 16:23:13 +03:00

83 lines
2.8 KiB
ReStructuredText

Architecture
============
ASReview provides developers and researchers (with a more technical skill set)
with several interfaces to interact directly with the underlying ASReview
machinery. This enables the development of custom algorithms, the integration of
ASReview into larger projects, and the creation of custom workflows. The
following overview shows the available interfaces for interacting with the
ASReview software:
.. figure:: ../../figures/architecture.png
:alt: ASReview API
Core Interfaces
---------------
API
~~~
ASReview LAB ships with a documented Application Programming Interface (API)
that provides models, data, and project management functionality. The rich set
of functions, classes, and modules allows researchers and developers to develop
custom workflows, integrate new algorithms, or embed ASReview functionality in
larger projects. It is also the foundation for the higher-level interfaces of
ASReview LAB. For detailed documentation, refer to the :doc:`API reference
<reference/asreview>`.
REST API
~~~~~~~~
A stateless REST API written in Flask provides an interface for web applications
built on ASReview. While integral to ASReview LAB, this REST API is still under
active development and is not yet fully documented.
CLI
~~~
The :doc:`Command Line Interface (CLI) <cli>` of ASReview provides an
interface for users of computer terminals to start ASReview LAB, run
simulations, list algorithms, and more. The command `asreview lab` will start
the user-friendly web app interface. It can also be extended with subcommands
provided by both official and community-built extensions (see
:doc:`extensions`).
Servers
-------
Task Server
~~~~~~~~~~~
ASReview LAB v2 introduces a task server for handling asynchronous tasks like
training agents and running simulations. The task server comes with a network
socket interface and makes use of the Transmission Control Protocol (TCP) for
communication. Via environment variables or :doc:`../server/configuration`, you can
set the port, the host, and the number of workers. The variables are:
.. envvar:: ASREVIEW_LAB_TASK_MANAGER_PORT
The port for the task server.
.. envvar:: ASREVIEW_LAB_TASK_MANAGER_HOST
The host for the task server.
.. envvar:: ASREVIEW_LAB_TASK_MANAGER_WORKERS
The number of workers for the task server.
ASReview LAB Server
~~~~~~~~~~~~~~~~~~~
The LAB server runs on Flask and serves the RESTful API and the web application.
It is responsible for handling incoming requests and serving the ASReview LAB
web application. The LAB server is started with the command `asreview lab`.
Extensions
----------
ASReview LAB is designed to be extensible, allowing users to add new models,
subcommands, and datasets. The extension system is built on top of the core
ASReview API and Python's entry point system. More information on developing
extensions can be found under :doc:`extensions`.