diff --git a/apps/docs/docs/getting_started/starter_tutorial/retrieval_augmented_generation.mdx b/apps/docs/docs/getting_started/starter_tutorial/retrieval_augmented_generation.mdx index 599960c1f9809a5f1fb064f1525d030611d2ee47..a618c83e00357bb4ceffac9b30ed650017550ebc 100644 --- a/apps/docs/docs/getting_started/starter_tutorial/retrieval_augmented_generation.mdx +++ b/apps/docs/docs/getting_started/starter_tutorial/retrieval_augmented_generation.mdx @@ -10,21 +10,19 @@ import TSConfigSource from "!!raw-loader!../../../../../examples/tsconfig.json"; One of the most common use-cases for LlamaIndex is Retrieval-Augmented Generation or RAG, in which your data is indexed and selectively retrieved to be given to an LLM as source material for responding to a query. You can learn more about the [concepts behind RAG](../concepts). -## Before you start +## Set up the project -Make sure you have installed LlamaIndex.TS and have an OpenAI key. If you haven't, check out the [installation](../installation) steps. - -You can use [other LLMs](../examples/other_llms) via their APIs; if you would prefer to use local models check out our [local LLM example](../../examples/local_llm). - -## Set up - -In a new folder: +In a new folder, run: ```bash npm2yarn npm init npm install -D typescript @types/node ``` +Then, check out the [installation](../installation) steps to install LlamaIndex.TS and prepare an OpenAI key. + +You can use [other LLMs](../examples/other_llms) via their APIs; if you would prefer to use local models check out our [local LLM example](../../examples/local_llm). + ## Run queries Create the file `example.ts`. This code will