PromptFactory Library
3/15/2024
A library for capturing and logging prompts and outputs in AI applications built based on our experience at Superdrop.
At Superdrop, we built lots of LLM and AI apps in production. This meant that we needed a robust and flexible logging system that would capture more about the prompt and output than just the prompt and response.
Originally, we built different libraries internally for different needs. Over time, we realized that we were repeating a lot of the same code and realized that we should open-source something.
PromptFactory is an attempt at a one-size-fits-all solution for capturing and logging prompts and outputs. It is built with extensibility in mind, so that new providers can be added easily.
We are open-sourcing it because we think it could be useful for others. If you have any questions, please reach out to me. This is version 1.0 and we have lots of ideas for how to improve it.
GitHub: https://github.com/completionhq/promptfactory-node
NPM: https://www.npmjs.com/package/@completionhq/promptfactory-node