Documentation
PetroHarness docs
PetroHarness runs formation evaluation from a raw LAS file: Petrophys interprets the log, a language model investigates the interval step by step with Petrophys's tools, and code checks and records every step, so every number in an answer traces back to the log.
Start here
Pick what you want to do and read the pages in order.
Install it and ask your first question
See it work, screen by screen
See what it does with hard questions
Evaluate a formation in your own wells
Run it with your own model
Choose how Petrophys interprets the well
Understand how an answer is produced
Check an answer, number by number
Script it or build on it
Add a tool, a guide or a model
Guides
Evaluate a formationFrom any raw LAS: the interval, its zones, the answer and its recordConversationsFollow-up questions, figures, settings mid-conversation, field notes, resumeWeb UIThe page, its options and its runsRead the workEach step's results, findings and reasoning, in the page and in the filesModelsServing a model, model cards, reasoning models, hosted APIsToolsWhat the model can ask Petrophys for, by kind of request
Concepts
ArchitectureThe parts, and how a question flows through themThe three graphsThe question graph node by node with the direct route, the later-question graph and the session graphAudit an answerThe evidence graph, the audit trail, the report, and the setup record under one hashDesign rulesThe design rules and the generality contract
Reference: using it
Command lineEvery command and flag of petroharness, and the chat commandsPython APIask(), prepare(), Conversation and the result objectsConfigurationThe data config file, environment variables and precedenceInterpretation settingsEvery Petrophys setting, the zone rule, cutoffs and field notesWeb UI APIThe HTTP routes, jobs, progress events and storage of petroharness ui
Reference: how an answer is made
Well preparationFrom the raw LAS to the interval: units, tops, zones, the interpretation, the mapInvestigation stateThe ledger, claims and points, the step loop, budgets and repliesPrompt componentsThe ten text components, their versions, and how each request is builtTools referenceEvery tool the model can call, with arguments and resultsPetrophys integrationThe verbs, the function registry, the binder and the figuresSkillsThe skill library: topic areas, guide format, provenance, your own libraryWriter and checkerWriting, checking, repairing and delivering the answerRecordsanswer.md, trace.json, the session log, the setup record, the evidence graphGlossaryThe terms these pages use, in one place
Working on the code
TestingThe test suite, its markers, and every regression gateExtendingRecipes: a tool, a guide, a report style, a model card, a figure, a switchDevelopmentConfiguration, benchmark mode, testing and the code layoutContributingWhere a contribution goes and how to show a change is safeRules for changesThe rules for changing the code

