PromptTriad is a Go API hosted on Cloud Run that leverages three competing AI models (OpenAI, Gemini, and Cohere) to collaboratively engineer and optimize the best possible prompt from any given input.
🚧 This project is currently under construction. 🚧
- Integrate OpenAI, Gemini, and Cohere APIs
- Implement response evaluation and selection logic
- Deploy on Google Cloud Run
- Add authentication and rate limiting
- Implement comprehensive logging and monitoring
- Clone the repository
- Set the required environment variables (you will need API keys)
- Run the API server
- Send a POST request to
/engineer-prompt
with your prompt input
curl -X POST http://localhost:8080/engineer-prompt -H "Content-Type: application/json" -d '{"input":"Your prompt here"}'
{
"openai_response": "Response from OpenAI",
"gemini_response": "Response from Gemini",
"Cohere_response": "Response from Cohere",
"best_response": "Selected best response"
}