Documentation

BioAgents Architecture

BioAgents is the AI layer of the platform. You hand it a research paper; it hands back structured metadata, recognized entities, and RDF triples ready for the knowledge graph. The point is not to summarize papers - it's to make a corpus of them queryable as data.

INTERFACEResearcher InterfaceBio-DID-Seq Core PlatformAGENT FRAMEWORKAgent RuntimePlugin SystemTask WorkersMemory ManagementKNOWLEDGE PROCESSINGDocument ProcessingEntity RecognitionRelationship DetectionGraph GenerationKNOWLEDGE STORAGERDF Triple StoreJSON-LD DocumentsEntity DatabaseSearch IndexINTEGRATION LAYERDID IntegrationUCAN AuthorizationIPFS Storagedispatch tasksextract knowledgepersistconnect
BioAgents Architecture

The framework underneath

BioAgents runs on the Eliza OS agent framework, which supplies the pieces you'd otherwise rebuild for every agent system: a runtime, a plugin mechanism for specialized capabilities, persistent memory across runs, and task workers so that a forty-page PDF doesn't block an HTTP connection while it's processed.

From PDF to knowledge graph

A paper moves through three stages, and each one narrows the representation.

Document processing comes first. GROBID pulls text and structure out of the PDF - which sounds mundane until you've tried it; scientific PDFs are hostile territory, and getting a clean "this is the methods section, this is a citation" segmentation is half the battle. The output is normalized, section-labelled text.

Knowledge extraction runs over that text: entity recognition for genes, proteins, diseases and compounds; relationship detection between them; claim extraction with its supporting evidence; and the bibliographic metadata - authors, citations, publication details.

Knowledge representation is the final narrowing. Extracted facts become RDF triples and JSON-LD documents, then get linked into the existing graph. From here on the paper isn't a document anymore - it's rows in a queryable structure.

How it connects to Bio-DID-Seq

API integration

Upload Research PaperProcess Paper RequestExtract KnowledgeGenerate Knowledge GraphStore KnowledgeReturn ResultsDisplay ResultsResearcherBio-DID-Seq APIBioAgents ServiceKnowledge Graph
API Integration

DID-based metadata management

Request with UCAN TokenVerify UCAN CapabilitiesForward RequestQuery Knowledge with DIDReturn Authorized DataReturn ResultsDisplay ResultsUserBio-DID-SeqBioAgentsKnowledge Graph
DID based metadata management

Data processing flow

INGESTResearch PaperuploadBio-DID-Seq APIIPFS StoragestoreAI PROCESSINGBioAgentsextract · identify · generateMetadataBiological EntitiesKnowledge GraphSTORAGE & INDEXBio-DID RegistryDID metadataEntity DatabaseRDF Triple StoreSearch IndexDISCOVERYSPARQL EndpointDiscovery Interfaceprocessindexquery
Data Processing Flow

API

Endpoints

EndpointMethodDescription
/api/bioagents/processPOSTProcess a research paper
/api/bioagents/statusPOSTCheck processing status
/api/bioagents/metadataPOSTGet extracted metadata
/api/bioagents/searchPOSTSearch biological entities
/api/bioagents/knowledge-graphPOSTGenerate knowledge graph
/api/bioagents/queryPOSTQuery using natural language

Request/Response Examples

Process Paper Request

json
{
  "file_cid": "QmXg9Pp2ytZ14xgK35M6iTC2Vz6jR9zYgooNp2UHPTMnPN",
  "title": "CRISPR-Cas9 Gene Editing for Neurodegenerative Diseases",
  "authors": ["Jane Smith", "John Doe"],
  "doi": "10.1038/s41586-021-03819-2"
}

Process Paper Response

json
{
  "task_id": "b8e5c9a4-2c7a-4d64-b4b3-7c01e2f8b54e",
  "status": "processing"
}

Security and privacy

Nothing changes at the trust boundary just because AI is involved. BioAgents endpoints sit behind the same authentication and UCAN authorization as the rest of the API, data is encrypted in transit and at rest, and access is audit logged. A paper you haven't shared can't be processed by someone else's agent, the capability check happens before the pipeline ever sees the file.