Skip to content

Has anyone actually succeeded in using OpenKB on a mac/M3 pro (36GB) with LM Studio runtime? #140

Description

@SonnyRajagopalan

Hello,

I have tried now multiple times to get to use my LM Studio runtime for openKB on my M3 Pro/36GB macbook pro. LM Studio running on localhost, and then these examples from the README.md on their github page:

openkb add paper.pdf
openkb add ~/papers/                            # Add a whole directory
openkb add https://arxiv.org/pdf/2509.11420     # Or fetch from a URL

With the models qwen/qwen2.5-coder-14b, qwen/qwen3-14b and google/gemma-4-31b. I have had absolutely no luck in ingesting any document(s) with any of these models (atleast no sign of progress in multiple hours).

Let's take LM studio and gemma-4-31b. 2 hours after the start of the session, I see these errors:

$ openkb add https://arxiv.org/pdf/2509.11420
Downloading: https://arxiv.org/pdf/2509.11420
  Saved: raw/2509.11420v1_6.pdf (2.1 MB PDF)
Adding: 2509.11420v1_6.pdf
  Long document detected — indexing with PageIndex...
start find_toc_pages
no toc found
process_no_toc
start_index: 1
divide page_list to groups 3
start generate_toc_init
************* Retrying *************
root ERROR: Error: litellm.Timeout: APITimeoutError - Request timed out. Error_str: Request timed out.
************* Retrying *************
root ERROR: Error: litellm.Timeout: APITimeoutError - Request timed out. Error_str: Request timed out.
************* Retrying *************
root ERROR: Error: litellm.Timeout: APITimeoutError - Request timed out. Error_str: Request timed out.
************* Retrying *************
root ERROR: Error: litellm.Timeout: APITimeoutError - Request timed out. Error_str: Request timed out.
************* Retrying *************
root ERROR: Error: litellm.Timeout: APITimeoutError - Request timed out. Error_str: Request timed out.
start generate_toc_continue
openkb.indexer WARNING: PageIndex attempt 1/3 failed for 2509.11420v1_6.pdf: Failed to index /Users/sonny/Code/open-kb/raw/2509.11420v1_6.pdf: 'dict' object has no attribute 'extend'
start find_toc_pages
(repeat the steps two more PageIndex attempts and then)
  [ERROR] Indexing failed: Failed to index 2509.11420v1_6.pdf after 3 attempts:
...
$ 

My .openkb/config.yaml:

# .openkb/config.yaml

llm:
  provider: "openai"
  model: "openai/gemma-4-31b"

pipeline:
  long_document_threshold: 60
  chunk_size: 2000

and my .env:

# .env
# Force LiteLLM to send all OpenAI-provider traffic to LM Studio
OPENAI_API_BASE=http://localhost:1234/v1

# Use any placeholder string (LM Studio doesn't validate this, but LiteLLM requires its presence)
LLM_API_KEY=local-lm-studio-key

Does anyone have any idea what I might me doing wrong? Has anyone gotten openKB working on local AI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions