This app is designed to use LM Studio with AnythingLLM, allowing an AI to search and retrieve information from the documents you upload to the RAG system.
So for this proyect you will need two software that before I have indicated you.
-
LMStudio
When you download LM Studio on your device, you will be able to start the setup steps.
-
First of all, if you want to load a small IA model, you will need to go the last option of the left vertical menu named
Discover
-
Search in the bar for example
llama-3.2-1b-instruct
, when you select the model clicked in download button.
- When you download the model, to load the model downloaded you will click
in the option above
Select a model to load
and click inLoad model
- You need to put your LMStudio in server mode and you can do it,
clicking in the second option of the left vertical menu named
Developer
- Finally, you need to activate in
settings
the first optionserve on local network
-
-
AnyThingLLM
When you download AnyThingLLM on your device, you will be able to start the setup steps.
-
IMPORTANT
¡For this step it is very important don't have open AnyThingLLM!
- Before, you start to prepare AnyThingLLM, you will need to go to this PATH in your file explorer:
C:\Users\your_username\AppData\Local\Programs\AnythingLLM\resources\backend
. Make click inserver.js
-
Open in Visual Studio and use keyboard shortcut
Ctrl+F
, string to search indicate127.0.0.1
and for replace0.0.0.0
. You will replace 5 references. -
When the change is done close everything and you open AnyThingLLM. Later you go to your browser put the ip of your device and the path to go to AnyThingLLM Swagger API. Like: http://YOUR_IP:3001/api/docs
- Before, you start to prepare AnyThingLLM, you will need to go to this PATH in your file explorer:
- First of all, during the installation you will arrive a step what, you will need to
indicate your
LLM Providers
and you will putLM Studio
, When you will selectLM Studio
how LM provider will indicate in field LM Studio Model the model that you selected.
- After you have setuped and installed AnyThingLLM, you will go to configurations and select LM preference and you should see your LM provider and LM Studio model selected. Check it is everything okey.
-
Go to your workspace settings that you have created go to
chat configuration
. You will indicate query inchat mode
and translate the prompt to your language. -
You will go to configuration (the botton last option of the left bar), click in
Tools
section and go toAPI KEY
. Create a new API KEY to have api autorization.
- Finally, when you start the app you will put your API KEY in settings to start the conection the AnyThingLLM
-