RAG request
Basic RAG request with the Inbound IDE and the SDK.
Inbound IDE​
- Open the Rawen app.
- Route to "Settings" and the "Commands" tab and hit the "Add" button
- Add a new Action and select "LLM-Doc-Request"
- Add a new Action and select "LLm-Request"
- Adjust the Prompt
( ) )
- Save and hit the "Debug" button
SDK​
- Clone the Command Maker repository from here
- Open project and paste in the same code as above into the index.ts.
const docs = await callKnowledge("What?", {
    key: "MY_OPENAI_KEY",
    type: "OPENAI"
});
const response = await callRag("What?", {
    key: "MY_OPENAI_KEY",
    type: "OPENAI"
});
await addResult(response);
- Run the project by typing npm run startin the terminal.