Skip to content

OCL Mapper to use the new generic prompt invoke endpoint #2311

@paynejd

Description

@paynejd

OCL Mapper currently uses the /match/recommend endpoint. This is hard-coded and tied to a single prompt. We want it to use the new general purpose endpoint, and we want invoke to follow the OCL/FHIR convention of prepending a dollar sign for operations instead of resources. So it should now be this:

/prompts/:key/$invoke/

Input variable processing is currently hard-coded in the old /match/recommend/ endpoint workflow. This must be moved over to the new model and triggered based on an attribute of the prompt: prompt_template.processing_method. Allowed values:

  • None
  • "candidates-core-attributes-only" -- or something like this

Note that we will have lots of processing pipelines in the future.

Acceptance Criteria

  • Generic prompt invoking endpoint looks like this: /prompts/:key/$invoke/
  • Input variable processing part of the new /prompts/:key/$invoke/ pipeline
  • Mapper uses the new generic endpoint
  • After testing, the old endpoint is retired

Metadata

Metadata

Assignees

Labels

signal/has-dependenciesRelies on other work or external inputsstage/triagedAI triage complete — scored and classifiedtype/refactorCode restructuring, no behavior change

Projects

Status

UAT

Relationships

None yet

Development

No branches or pull requests

Issue actions