grepai-embeddings-lmstudio

yoanbernabeu/grepai-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-embeddings-lmstudio
0 commentsdiscussion
summary

This skill covers using LM Studio as the embedding provider for GrepAI, offering a user-friendly GUI for managing local models.

skill.md

GrepAI Embeddings with LM Studio

This skill covers using LM Studio as the embedding provider for GrepAI, offering a user-friendly GUI for managing local models.

When to Use This Skill

  • Want local embeddings with a graphical interface
  • Already using LM Studio for other AI tasks
  • Prefer visual model management over CLI
  • Need to easily switch between models

What is LM Studio?

LM Studio is a desktop application for running local LLMs with:

  • 🖥️ Graphical user interface
  • 📦 Easy model downloading
  • 🔌 OpenAI-compatible API
  • 🔒 100% private, local processing

Prerequisites

  1. Download LM Studio from lmstudio.ai
  2. Install and launch the application
  3. Download an embedding model

Installation

Step 1: Download LM Studio

Visit lmstudio.ai and download for your platform:

  • macOS (Intel or Apple Silicon)
  • Windows
  • Linux

Step 2: Launch and Download a Model

  1. Open LM Studio
  2. Go to the Search tab
  3. Search for an embedding model:
    • nomic-embed-text-v1.5
    • bge-small-en-v1.5
    • bge-large-en-v1.5
  4. Click Download

Step 3: Start the Local Server

  1. Go to the Local Server tab
  2. Select your embedding model
  3. Click Start Server
  4. Note the endpoint (default: http://localhost:1234)

Configuration

Basic Configuration

# .grepai/config.yaml
embedder:
  provider: lmstudio
  model: nomic-embed-text-v1.5
  endpoint: http://localhost:1234

With Custom Port

embedder:
  provider: lmstudio
  model: nomic-embed-text-v1.5
  endpoint: http://localhost:8080

With Explicit Dimensions

embedder:
  provider: lmstudio
  model: nomic-embed-text-v1.5
  endpoint: http://localhost:1234
  dimensions: 768

Available Models

nomic-embed-text-v1.5 (Recommended)

Property Value
Dimensions 768
Size ~260 MB
Quality Excellent
Speed Fast
embedder:
  provider: lmstudio
  model: nomic-embed-text-v1.5

bge-small-en-v1.5

Property Value
Dimensions 384
Size ~130 MB
Quality Good
Speed Very fast

Best for: Smaller codebases, faster indexing.

embedder:
  provider: lmstudio
  model: bge-small-en-v1.5
  dimensions: 384

bge-large-en-v1.5

Property Value
Dimensions 1024
Size ~1.3 GB
Quality Very high
Speed Slower

Best for: Maximum accuracy.

embedder:
  provider: lmstudio
  model: bge-large-en-v1.5
  dimensions: 1024

Model Comparison

Model Dims Size Speed Quality
bge-small-en-v1.5 384 130MB ⚡⚡⚡ ⭐⭐⭐
nomic-embed-text-v1.5 768 260MB ⚡⚡ ⭐⭐⭐⭐
bge-large-en-v1.5 1024 1.3GB ⭐⭐⭐⭐⭐

LM Studio Server Setup

Starting the Server

  1. Open LM Studio
  2. Navigate to Local Server tab (left sidebar)
  3. Select an embedding model from the dropdown
  4. Configure settings:
    • Port: 1234 (default)
    • Enable Embedding Endpoint
  5. Click Start Server

Server Status

Look for the green indicator showing the server is running.

Verifying the Server

# Check server is responding
curl http://localhost:1234/v1/models

# Test embedding
curl http://localhost:1234/v1/embeddings \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nomic-embed-text-v1.5",
    "input": "function authenticate(user)"
  }'

LM Studio Settings

Recommended Settings

In LM Studio's Local Server tab:

Setting Recommended Value
Port 1234
Enable CORS Yes
Context Length Auto
GPU Layers Max (for speed)

GPU Acceleration

LM Studio automatically uses:

  • macOS: Metal (Apple Silicon)
  • Windows/Linux: CUDA (NVIDIA)

Adjust GPU layers in settings for memory/speed balance.

Running LM Studio Headless

For server environments, LM Studio supports CLI mode:

# Start server without GUI (check LM Studio docs for exact syntax)
lmstudio server start --model nomic-embed-text-v1.5 --port 1234

Common Issues

Problem: Connection refused ✅ Solution: Ensure LM Studio server is running:

  1. Open LM Studio
  2. Go to Local Server tab
  3. Click Start Server

Problem: Model not found ✅ Solution:

  1. Download the model in LM Studio's Search tab
  2. Select it in the Local Server dropdown

Problem: Slow embedding generation ✅ Solutions:

  • Enable GPU acceleration in LM Studio settings
  • Use a smaller model (bge-small-en-v1.5)
  • Close other GPU-intensive applications

Problem: Port already in use ✅ Solution: Change port in LM Studio settings:

embedder:
  endpoint: http://localhost:8080  # Different port

Problem: LM Studio closes and server stops ✅ Solution: Keep LM Studio running in the background, or consider using Ollama which runs as a system service

LM Studio vs Ollama

Feature LM Studio Ollama
GUI ✅ Yes ❌ CLI only
System service ❌ App must run ✅ Background service
Model management ✅ Visual ✅ CLI
Ease of use ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐
Server reliability ⭐⭐⭐ ⭐⭐⭐⭐⭐

Recommendation: Use LM Studio if you prefer a GUI, Ollama for always-on background service.

Migrating from LM Studio to Ollama

If you need a more reliable background service:

  1. Install Ollama:
brew install ollama
ollama serve &
ollama pull nomic-embed-text
  1. Update config:
embedder:
  provider: ollama
  model: nomic-embed-text
  endpoint: http://localhost:11434
  1. Re-index:
rm .grepai/index.gob
grepai watch

Best Practices

  1. Keep LM Studio running: Server stops when app closes
  2. Use recommended model: nomic-embed-text-v1.5 for best balance
  3. Enable GPU: Faster embeddings with hardware acceleration
  4. Check server before indexing: Ensure green status indicator
  5. Consider Ollama for production: More reliable as background service

Output Format

Successful LM Studio configuration:

✅ LM Studio Embedding Provider Configured

   Provider: LM Studio
   Model: nomic-embed-text-v1.5
   Endpoint: http://localhost:1234
   Dimensions: 768 (auto-detected)
   Status: Connected

   Note: Keep LM Studio running for embeddings to work.
how to use grepai-embeddings-lmstudio

How to use grepai-embeddings-lmstudio on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add grepai-embeddings-lmstudio
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-embeddings-lmstudio

The skills CLI fetches grepai-embeddings-lmstudio from GitHub repository yoanbernabeu/grepai-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/grepai-embeddings-lmstudio

Reload or restart Cursor to activate grepai-embeddings-lmstudio. Access the skill through slash commands (e.g., /grepai-embeddings-lmstudio) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.550 reviews
  • Meera Harris· Dec 20, 2024

    Useful defaults in grepai-embeddings-lmstudio — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Mia Tandon· Dec 16, 2024

    We added grepai-embeddings-lmstudio from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Ira Verma· Nov 11, 2024

    I recommend grepai-embeddings-lmstudio for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Mia Shah· Nov 7, 2024

    grepai-embeddings-lmstudio fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Diego Thompson· Oct 26, 2024

    grepai-embeddings-lmstudio has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Naina Bhatia· Oct 2, 2024

    Solid pick for teams standardizing on skills: grepai-embeddings-lmstudio is focused, and the summary matches what you get after install.

  • Piyush G· Sep 25, 2024

    Useful defaults in grepai-embeddings-lmstudio — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Zara Desai· Sep 25, 2024

    grepai-embeddings-lmstudio is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Chinedu Choi· Sep 25, 2024

    Useful defaults in grepai-embeddings-lmstudio — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Mei Reddy· Sep 9, 2024

    grepai-embeddings-lmstudio reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 50

1 / 5