project / config /openai.js
kabylake's picture
commit
7bd11ed
raw
history blame contribute delete
604 Bytes
/**
* @typedef {import('app/config/types').LLMConfig} LLMConfig
*/
/**
* @type {LLMConfig}
*/
const config = {
type: "openai",
params: {
prompt_template: `
### Instruction:
Use the following pieces of context to answer the question at the end. If the answer isn't in the context, say that you don't know, don't try to make up an answer.
### Context:
---------------
{context}
---------------
### Question: {question}
### Response:
`,
model_kwargs: {
model_name: "gpt-3.5-turbo",
temperature: 0.0,
},
},
};
module.exports = config;