Questions & Answers

Questions and Answers is probably one of the most simple and efficient way of giving knowledge to your LLM.

Ragg provides you a simple API that allows you to manage Q&A based data for your LLM.

Create Q&A

import * as Ragg from '@ragg/node-sdk'

const ragg = Ragg.init(<API_KEY>)

const result = await ragg.qa.createQuestionAnswer({
    workspaceId: string,
    question: "How can I configure my account?",
    answer: "You can configure your account by going on this page...",
});

console.log(result.data);
// { questionId: string, answerId: string, qaId: string }

List Q&A

import * as Ragg from '@ragg/node-sdk'

const ragg = Ragg.init(<API_KEY>)

const result = await ragg.qa.list({
    workspaceId: string,
});

Last updated