Skip to content

Add preview-only AI field suggestions to resource detail#60

Open
jdhoffa wants to merge 10 commits intomainfrom
feat/llm-suggestion-mvp
Open

Add preview-only AI field suggestions to resource detail#60
jdhoffa wants to merge 10 commits intomainfrom
feat/llm-suggestion-mvp

Conversation

@jdhoffa
Copy link
Copy Markdown
Contributor

@jdhoffa jdhoffa commented Apr 9, 2026

This PR adds a (very) small MVP for AI-generated field suggestions on the oil and gas resource detail pages.
Note: There IS NOT persistance layer at this stage. The suggestion is totally ephemoral and rendered on the front-end.
The priority here was to focus on wiring up Azure Foundry and getting the suggestion calls wired up. Persistance will be handled in a future PR.

Users can now open an existing resource, choose a "supported" field, and request an AI suggestion, and preview that suggested value in the detail UI.

Next steps:
The current implementation is not doing any grounded web retrieval, so returning URLs at this stage would be misleading (basically just a hallucination). We are going to need to figure out how to connect the model to the Web to parse public sources for citation URLs... otherwise we are just relying on hallucinations here

Changes to ENV

Note, the following environment variables are added in this PR. They are available in LastPass:

AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com
AZURE_OPENAI_DEPLOYMENT=<your-deployment-name>
AZURE_OPENAI_API_VERSION=2024-10-21

@jdhoffa jdhoffa marked this pull request as ready for review April 9, 2026 11:08
@jdhoffa
Copy link
Copy Markdown
Contributor Author

jdhoffa commented Apr 9, 2026

Screenshot 2026-04-09 at 13 08 21

@jdhoffa jdhoffa requested a review from AlexAxthelm April 9, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant