lgabs / dialog

Dialog is a production-ready Q&A Application with LLMs, using Langchain and LangServe.
MIT License
3 stars 0 forks source link

use System, Human and AI patterns for prompts roles for OpenAI chat models #16

Open lgabs opened 2 months ago

lgabs commented 2 months ago

Right now, we're building the full prompt directly, combining a system message with context and user message. That's ok for other models, but for OpenAI chat models there is a a better practice for (which is more organized and should lead to better responses) these patterns for each role (reference from langchain).

We should be using this pattern for chains using gpt.