LM Studio Embeddings
LM Studio Embeddings turns text into a numeric fingerprint of its meaning using a model loaded in LM Studio, the application for running AI models on your own computer or server. With that fingerprint, NappAI can find the documents that say something similar to what you are looking for, even when they use different words, for example in a knowledge base.
You connect the component to a vector database, which uses it both to store your documents and to search them. Use it if you want the text to stay on a server your company controls.
When to use it
- Give an agent the knowledge in your manuals, contracts or FAQs by storing them in a vector database.
- Build an internal search that finds documents by their meaning, not only by exact words.
- Your company already has a server running LM Studio and does not want to depend on an outside service.
Configuration
| Field | What it does |
|---|---|
| LM Studio Base URL (required) | The address of your LM Studio server. It must be reachable from NappAI. |
| Model (required) | The LM Studio model that calculates the fingerprints. Press the refresh button to load the list of models on your server and pick an embeddings model. |
Advanced options
| Field | What it does |
|---|---|
| Model Temperature | A setting inherited from models that write text. Default: 0.1. You do not need to change it. |
Output
- Embeddings: the model that calculates the fingerprints, ready to use. Connect it to the Embedding input of a vector database: Astra DB, Cassandra, Chroma DB, Couchbase, Elasticsearch, FAISS, Milvus, MongoDB Vector Store, PGVector, Pinecone, Qdrant, Redis, Supabase Vector Store, Upstash, Vectara, Weaviate Cloud (v4). Other components with an input of this type accept it too, such as Semantic Text Splitter or Text Embedder.
Example
An employment advisory firm, Asesores Ribera, wants its assistant to answer using its contract templates, without them leaving its server.
- In a loading flow, split the documents into chunks with Recursive Character Text Splitter and pass them to Chroma DB with Operation set to
Add. - Add LM Studio Embeddings and connect its Embeddings output to the Embedding input of Chroma DB.
- In the assistant flow, use the same Chroma DB collection with the same LM Studio Embeddings component to find the chunks that answer each question.