Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.69 KB

plan.md

File metadata and controls

64 lines (45 loc) · 1.69 KB

API

The idea:

Zero-shot text generation using ChatGPT

SEE: https://js.langchain.com/docs/modules/models/chat/

  • /text Take prompt, output text
    • In app/ufoai/text/route.ts

ChatGPT With Loaders, Etc.

  • /ufoai/chat
      • /text Take prompt, output text
    • In app/ufoai/chat/route.ts
  • Has UI, too maybe?

Few-shot using PromptTemplates

SEE: https://js.langchain.com/docs/modules/prompts/prompt_templates/

  • In app/ufoai/text/prompt/route.ts
  • POST /text/prompt
    • Send heading, previous paragraphs and keywords
    • This needs to store that as JSON so it can be used
    • And return a JSON {uuid:}
  • GET /text/prompt
    • Send and
    • Use the saved prompt template to generate text

Needs:

  • Database or file system for storing prompt templates

Injest Data, Use It For Better Responses

You can't expect any of this to be great with out embedding data or fine tune models.

UI

  • Chat UI

  • UI for crafting blog posts

  • Image generation with Replicate

Authentication/ eCommerce/ Whatever

Ideas