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

149 lines
3.1 KiB
Python

from .base import AsyncSyncMeta, R2RSerializable, syncable
from .document import (
Document,
DocumentChunk,
DocumentResponse,
DocumentType,
GraphConstructionStatus,
GraphExtractionStatus,
IngestionMode,
IngestionStatus,
RawChunk,
UnprocessedChunk,
)
from .exception import (
PDFParsingError,
PopplerNotFoundError,
R2RClientException,
R2RDocumentProcessingError,
R2RException,
)
from .graph import (
Community,
Entity,
GraphCommunitySettings,
GraphCreationSettings,
GraphEnrichmentSettings,
GraphExtraction,
Relationship,
StoreType,
)
from .llm import (
GenerationConfig,
LLMChatCompletion,
LLMChatCompletionChunk,
Message,
MessageType,
RAGCompletion,
)
from .prompt import Prompt
from .search import (
AggregateSearchResult,
ChunkSearchResult,
ChunkSearchSettings,
GraphCommunityResult,
GraphEntityResult,
GraphRelationshipResult,
GraphSearchResult,
GraphSearchResultType,
GraphSearchSettings,
HybridSearchSettings,
SearchMode,
SearchSettings,
WebPageSearchResult,
select_search_filters,
)
from .tool import Tool, ToolResult
from .user import Token, TokenData, User
from .vector import (
IndexArgsHNSW,
IndexArgsIVFFlat,
IndexMeasure,
IndexMethod,
StorageResult,
Vector,
VectorEntry,
VectorQuantizationType,
VectorTableName,
VectorType,
)
__all__ = [
# Base abstractions
"R2RSerializable",
"AsyncSyncMeta",
"syncable",
# Completion abstractions
"MessageType",
# Document abstractions
"Document",
"DocumentChunk",
"DocumentResponse",
"IngestionMode",
"IngestionStatus",
"GraphExtractionStatus",
"GraphConstructionStatus",
"DocumentType",
"RawChunk",
"UnprocessedChunk",
# Exception abstractions
"R2RDocumentProcessingError",
"R2RException",
"R2RClientException",
"PDFParsingError",
"PopplerNotFoundError",
# Graph abstractions
"Entity",
"Community",
"Community",
"GraphExtraction",
"Relationship",
"StoreType",
# LLM abstractions
"GenerationConfig",
"LLMChatCompletion",
"LLMChatCompletionChunk",
"Message",
"RAGCompletion",
# Prompt abstractions
"Prompt",
# Search abstractions
"AggregateSearchResult",
"GraphSearchResult",
"WebPageSearchResult",
"GraphSearchResultType",
"GraphEntityResult",
"GraphRelationshipResult",
"GraphCommunityResult",
"GraphSearchSettings",
"ChunkSearchSettings",
"ChunkSearchResult",
"SearchSettings",
"select_search_filters",
"HybridSearchSettings",
"SearchMode",
# graph abstractions
"GraphCreationSettings",
"GraphEnrichmentSettings",
"GraphExtraction",
"GraphCommunitySettings",
# Tool abstractions
"Tool",
"ToolResult",
# User abstractions
"Token",
"TokenData",
"User",
# Vector abstractions
"Vector",
"VectorEntry",
"VectorType",
"IndexMethod",
"IndexMeasure",
"IndexArgsIVFFlat",
"IndexArgsHNSW",
"VectorTableName",
"VectorQuantizationType",
"StorageResult",
]