Skip to content

Instantly share code, notes, and snippets.

View Shubhdeep12's full-sized avatar
๐Ÿ”„

Shubhdeep Chhabra Shubhdeep12

๐Ÿ”„
View GitHub Profile
@Shubhdeep12
Shubhdeep12 / docker_model_runner.py
Last active October 3, 2025 11:23
Local AI model integration for LlamaIndex agents and RAG applications using Docker Model Runner
"""
Docker Model Runner LLM implementation for LlamaIndex.
This module provides a custom LLM class that integrates with Docker Model Runner,
allowing users to run local models through Docker containers with LlamaIndex.
"""
import asyncio
import json
from typing import Any, Dict, List, Optional, Sequence, Union