Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research: Structure Map Generation Using LLMs #90

Open
lincmba opened this issue Dec 14, 2023 · 1 comment
Open

Research: Structure Map Generation Using LLMs #90

lincmba opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
Blocked Something is blocked

Comments

@lincmba
Copy link
Contributor

lincmba commented Dec 14, 2023

Extracted from https://github.com/onaio/canopy/issues/3094

Background:

The goal is to enhance Efsity by introducing StructureMap generation capabilities. This involves sending a Questionnaire Response (QR) to a Large Language Model (LLM) and obtaining resources, such as Patient and Encounter. The subsequent step is to instruct the LLM to create a StructureMap for converting QR to Patient and Encounter.

The process can be extended by running the generated StructureMap against the QR, comparing it with the requested output, and iterating until a maximum number of loops or convergence is achieved. This combined approach involves generating QR and StructureMap consecutively, ensuring seamless integration.

Initial Attempt:

Started with Code Llama using the setup instructions provided here. Downloaded the 7B Large Language Model (LLM) and utilized code similar to example_completion.py for local testing. Encountered an issue as the code required GPU, which was not explicitly mentioned in the installation instructions.

Troubleshooting:

  1. Attempted cloud options for LLM, including the Code Llama Hugging Face model here.
  2. Observed successful functioning with smaller textual data but encountered errors when the input text exceeded a certain length.

Next Steps:

Currently exploring two additional cloud options:

  1. SantaCoder LLM
  2. Replit Code LLM

Resources: OpenSource Code LLMs https://github.com/eugeneyan/open-llms#open-llms-for-code

@lincmba lincmba self-assigned this Dec 14, 2023
@pld pld added the Blocked Something is blocked label Dec 14, 2023
@pld
Copy link
Member

pld commented Dec 14, 2023

let's discuss before we continue on this, I want to make sure the rest of tooling is solid so that we can align work on this with the other tooling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Something is blocked
Projects
None yet
Development

No branches or pull requests

2 participants