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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址