prompttriad

command module
v0.0.0-...-819c172 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 15 Imported by: 0

README

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"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL