The idea:
/text
Take prompt, output text- In
app/ufoai/text/route.ts
- In
/ufoai/chat
-
/text
Take prompt, output text
- In
app/ufoai/chat/route.ts
-
- Has UI, too maybe?
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
You can't expect any of this to be great with out embedding data or fine tune models.
- Use document loaders
- Make idexes
- Create chains that write based on preexisting content.
- Write chains that make suggestions to improve content.
- Fine tuning?
-
Chat UI
- `https://localhost:3000/chat
- Make it like ChatGPT, but more useful with loaders, agents, etc.
-
UI for crafting blog posts
-
Image generation with Replicate
Ideas
- Make it so you can use your own API Key
- Use existing Laravel app for user auth/ billing
- Use a database