Lmstudio

LM Studio examples for local models, images, knowledge, memory, storage, retries, structured output, and tools.

ExampleDescription
Lmstudio BasicRun a Qwen model served by LM Studio with sync and streamed responses.
DBStore LM Studio agent sessions in Postgres and answer follow-ups with history in context.
Lmstudio Image AgentSend image bytes to a llama3.2-vision model in LM Studio and stream the description.
KnowledgeQuery a PgVector knowledge base of PDF recipes from an agent running on LM Studio.
MemoryStore and retrieve personalized user memories and conversation summaries in an LM Studio agent.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Lmstudio Structured OutputRequest a MovieScript with JSON Schema and validate the model response locally.
Tool UseAdd web search tools to an LM Studio agent and run sync and streaming queries.