responsible-ai-collaborative / aiid

The AI Incident Database seeks to identify, define, and catalog artificial intelligence incidents.
https://incidentdatabase.ai
Other
163 stars 34 forks source link

Improve Graphql endpoint to support dynamic schemas #2256

Open cesarvarela opened 10 months ago

cesarvarela commented 10 months ago

With the advent of #2047, we must perform complex queries on the classifications collection and support dynamic graphQL schemas built from the definitions found in the taxas collection.

Current Architecture

image

Classifications collection schema

image

Update Option 1

image

Update Option 2

image
kepae commented 10 months ago

Per offline (online?) discussion, the need for dynamic graphQL queries results from:

The questions are:

Option 1

Option 2

Option 3

cesarvarela commented 10 months ago

Code lives in Atlas App Services, not GitHub. This makes it more difficult to test and maintain.

Although code is run there, it is being version controlled: https://github.com/responsible-ai-collaborative/aiid/tree/master/site/realm and deployed via https://github.com/responsible-ai-collaborative/aiid/blob/master/.github/workflows/realm-production.yml

We also have some unit tests for them: https://github.com/responsible-ai-collaborative/aiid/tree/master/site/gatsby-site/cypress/e2e/unit/functions

@kepae

kepae commented 10 months ago

Good point, thanks for the definitive correction on that -- we already maintain, test, and push code to realm/app services here in the repo.

cesarvarela commented 10 months ago

From yesterday's discussion:

Conclusions

Actions

Once this is done, we can go back to #2047