Skip to content

DARPA-ASKEM/mit-service

 
 

Repository files navigation

mitaskem

This repository contains the code and products produced by the MIT team as part of the DAPRA Automating Scientific Knowledge Extraction and Modeling (ASKEM) project.

The MIT team consists of (in alphabetical order):

installing:

pip install -e .

developing and testing

For clients: (eg notebooks) Set up environment, specifically OPENAI_API_KEY, for client scripts/notebooks.

For server (no key needed on server side) From within mitaskm root:

uvicorn --reload --reload-dir=./mitaskem/ mitaskem.api.server:app

The above will hot-reload the project as you change files.

testing:

Ensure a server is running on a different tab. The will run the different notebooks as a client, ensuring things are not totally broken.

pytest

to re-generate the notebooks with the latest output: pytest --nbmake --overwrite ./demos/2023-07/*ipynb

docker image (for deploying)

docker compose up --build

Public API

Our functionality is provided via a public API available here. Many of the calls also require you to provide a GPT key, which you can obtain from OpenAI.

For examples of usage, you can refer to our most recent demo here.

Packages

 
 
 

Languages

  • Python 67.4%
  • Jupyter Notebook 31.6%
  • Other 1.0%