Using ChatGPT to compose queries against the OMOP CDM

I have been slowly working on an API via FastAPI/OpenAPI for a GPT to reference. I wonder if PYOMOP could be used in some way for this? I’d be happy to out-of-pocket some of the server and other fees for testing.

I agree with @schuemie that there is a large bridge here that needs to be built, and I think part of that is in the API development space.

The main issue I have had so far is controlling hallucinations, particularly with R&SQL code / mappings.

2 Likes