Skip to content

A Go API hosted on Cloud Run that leverages three competing AI models to collaboratively engineer and optimize the best possible prompt from any given input.

License

Notifications You must be signed in to change notification settings

TFMV/PromptTriad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromptTriad

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.

PromptTriad

Project Status

🚧 This project is currently under construction. 🚧

Major Goals/Milestones

  • 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

How to Use

  1. Clone the repository
  2. Set the required environment variables (you will need API keys)
  3. Run the API server
  4. Send a POST request to /engineer-prompt with your prompt input

Example Request

curl -X POST http://localhost:8080/engineer-prompt -H "Content-Type: application/json" -d '{"input":"Your prompt here"}'

Example Response

{
  "openai_response": "Response from OpenAI",
  "gemini_response": "Response from Gemini",
  "Cohere_response": "Response from Cohere",
  "best_response": "Selected best response"
}

About

A Go API hosted on Cloud Run that leverages three competing AI models to collaboratively engineer and optimize the best possible prompt from any given input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published