Skip to content

Using LLM tools offline to analyze your sensitive local data without it ever leaving your device.

Notifications You must be signed in to change notification settings

AshleyDhevalall/llm-tools-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

LLM Tools Demo

The objective of this article is to run different large language models tools to analyze local docs.

Tools

LM Studio

What is LM Studio?

LM Studio is a desktop app for developing and experimenting with LLMs on your computer.

Key functionality

  • A desktop application for running local LLMs
  • A familiar chat interface
  • Search & download functionality (via Hugging Face 🤗)
  • A local server that can listen on OpenAI-like endpoints
  • Systems for managing local models and configurations

AnythingLLM

What is AnythingLLM?

It is an all-in-one zero-setup private application for local LLMs, RAG and AI Agents with embedding models and vector database supportability

GTP4All

What is GTP4All?

An open-source ecosystem used for integrating LLMs into applications without paying for a platform or hardware subscription. It was created by Nomic AI, an information cartography company that aims to improve access to AI resources.

Designed to run on modern to relatively modern PCs without needing an internet connection or even a GPU! This is possible since most of the models provided by GPT4All have been quantized to be as small as a few gigabytes, requiring only 4–16GB RAM to run.

Clone repository

git clone https://github.com/AshleyDhevalall/llm-tools-demo.git

LM Studio

Steps to follow

  1. Download LM Studio
  1. Open LM Studio. Please patient while the application opens...
    lmstudio

  2. Download model (Click My Models on left menu). Ensure you have selected 'Developer' as the role You can search for models by keyword (e.g. llama, gemma, lmstudio), or by providing a specific user/model string.
    You can even insert full Hugging Face URLs into the search bar!. Please patient while to model downloads...

download

  1. Click Chat on left menu

Select model select-model

  1. Navigate to the folder in Clone Repository and select the samples\UsingSQLWithPowerShellExamplesv1.ps1 file

  2. Enter your prompt and click Send

what passwords are used?

Sample chat response
chat_response

Important

Always verify the accuracy of the results

Further reading

Docs
Download Models
Chat
Chat with Documents

AnythingLLM

Steps to follow

  1. Download AnythingLLM
  1. Open AnythingLLM. Please patient while the application opens...
    anythingllm

  2. Create new workspace. Enter name for collection and click Save

  1. Upload files. Navigate to the folder in Clone Repository and select the samples\romeo-and-juliet.pdf file

Warning

PDF, TXT, DOCX, Word docs and more. Unfortunately AnythingLLM does not support .ps1 file :(

Drag and drop your files into the box shown below

Once complete, select the file and click Move to Workspace

Click Save and Embed

Please patient while the files complete embedding...

Close the My Documents window once the embedding is complete

  1. Enter your prompt and click Send prompt message to workspace icon
Who are the characters in Romeo and Juliet?

Sample prompt response
chat

Important

Always verify the accuracy of the results

Troubleshooting

Could not respond to message. fetch failed

troubleshooting

Further reading

Setup
Configuration
System Requirements
FAQ

GTP4All

Steps to follow

  1. Download GPT4All Desktop
  1. Open GTP4All. Please patient while the application opens...
    open_gtp4all

  2. Adding new model (Click Models on left menu) and then click + Add Model button

Tip

Models

add_model

  1. Search for Llama 3.2 1B Instruct and then click Download. Please patient while to model downloads...

explore_models

  1. Configure settings

6.1 Click LocalDocs on left menu. Provide a Collection name eg. Sample Test

6.2 Click Browse.

Navigate to the folder in Clone Repository and select the samples folder. Please patient while the embeddings complete...

  1. Click New chat on left menu. Ensure you select the files from the Local Docs panel on the right side

    Enter your prompt and click Send

what passwords are used?

Tip

Chat

Sample chat response
chat

Important

Always verify the accuracy of the results
GTP4All has an option that allows you to view the source of the files in the Chat response

Troubleshooting

Embedding taking too long

Uploading large files will result in an increased duration for the embedding to complete. Alternatively try a smaller subset of docs

Load Docs collection shows 0 files and 0 words

Ensure that you have included the correct file extension allowed_file_extensions

Chat window closes after selecting model -> try using a smaller model

This usually happens when using models that required more RAM than is available on your system. Try using a smaller model

Further reading

Quickstart
Wiki
FAQ
Settings
What Is GPT4All and How Does It Work?

Authors

Ashley Dhevalall

Acknowledgements

GTP4All
AnythingLLM
Joshua Stenhouse
Jayric Maning
anakin.ai
LM Studio

About

Using LLM tools offline to analyze your sensitive local data without it ever leaving your device.

Topics

Resources

Stars

Watchers

Forks