cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable RAG (Retrieval Augmented Generation) on an AMD Ryzen™ AI PC or Radeon Graphics Card

AMD_AI
Staff
Staff
0 0 5,433

GPT based Large Language Models (LLMS) can be helpful AI assistants that maximize your productivity and increase the efficiency of your workflow. Running an AI chatbot on your AMD Ryzen™ AI powered AI PC or Radeon™ 7000 Series Graphics Card is easier than ever but did you know that you could customize it all for yourself? 

Retrieval augmented generation (RAG) is a technique that allows you to enhance and provide context to your personal instance of a Large Language Model (LLM). This context can be local documents that you have on your PC or a text-based URL. And the best part? It runs 100% locally with no need for an internet connection or subscription fee. 

You can use RAG with just one document or multiple documents to experience a truly customized LLM.  

The step-by-step instructions to enable Retrieval Augmented Generation on your PC are given below. If you followed our previous guide and have LM Studio installed already, skip directly to step 7:

1. First, download and setup LM Studio using the instructions on this page.  

2. Select the model you want to use with RAG from the central, drop-down menu in the top center and wait for it to finish loading up.  

image1.jpg

3. Go to the server tab and click on start server.

image2.jpg

4. Please note the base URL. It is typically: http://localhost:1234/v1

image3.jpg

5. Download AnythingLLM for Windows

6. Run the file.

7. Click “Get Started”

8. Click on LM Studio and enter the base URL (typically http://localhost:1234/v1)

image4.jpg

9. Click on AnythingLLM Embedder for a 100% local experience.

image5.jpg

10. Select LanceDB for a 100% local experience.

image6.jpg

11. Click the next arrow on the privacy and summary screen.

12. AnythingLLM will ask you for details – this is optional, and you can either fill the forms here or click on “Skip Survey” to skip this.

image7.jpg

13. Give your workspace a name and click the next arrow.

14. Click on your workspace name. We gave our workspace the name: “Test”

image8.jpeg

15. Click on the wheel button to show settings.

image9.jpeg

16. Click on upload document (you can upload as many as you want – we are using just one) or enter a URL for text-based retrieval.

17. Once your document(s) is uploaded, check it(them) in the left-hand context window and click move to workspace.

image10.jpeg

18. Click on save and embed.

image11.jpeg

19. Close this context window.

20. You can now ask the LLM a question that uses a specific term mentioned in your documents and it will be able to respond. RAG is now working, and it will show you the citation and the name of the local document used to answer your question.

image12.jpg