An open API service indexing awesome lists of open source software.

https://github.com/crdoconnor/tmg-test

TMG solution
https://github.com/crdoconnor/tmg-test

Last synced: over 1 year ago
JSON representation

TMG solution

Awesome Lists containing this project

README

          

# TMG test

To run:

* Check out repository
* Put OPENAI_API_KEY=<< openai key >> in .env file
* make build
* make run

To test:

* make test

## Deploying in the cloud

* Use poetry / pipenv to fix requirements.
* Don't bake the secrets into the docker container.
* Push docker container to registry
* Create secret in secret storage in cloud
* Create service manifest (e.g. in kubernetes) which will run container as a service and inject the secret as an environment variable

## Testing

* Already has one test - end to end (might be flaky).
* Inject the LLM Runner as a dependency in fastapi, swap with fake to run dependency-less unit tests.
* For testing the LLM build up a test set of recipes and expected tags and evaluate response.