QDrant Loader Core
Shared core library for the QDrant Loader ecosystem. It provides a providerβagnostic LLM layer (embeddings and chat), configuration mapping, safe logging, and normalized error handling used by the CLI and MCP Server packages.
For provider, configuration, and architecture details, use the documentation links below.
π― What It Provides
- Provider-agnostic LLM facade for OpenAI, Azure OpenAI, OpenAI-compatible endpoints, and Ollama
- Unified async APIs for embeddings and chat clients
- Typed configuration mapping via
LLMSettings.from_global_config(...) - Structured logging with secret redaction
- Normalized provider exceptions for predictable handling across backends
π¦ Installation
pip install qdrant-loader-core
With extras:
pip install "qdrant-loader-core[openai]"
pip install "qdrant-loader-core[ollama]"
π Logging
Use built-in structured logging:
from qdrant_loader_core.logging import LoggingConfig
LoggingConfig.setup(level="INFO", format="console", file=None)
logger = LoggingConfig.get_logger(__name__)
logger.info("LLM ready")
π Notes
- Secrets (API keys/tokens) are redacted in logs
- For MCP integrations,
MCP_DISABLE_CONSOLE_LOGGING=trueis recommended - Environment variable reference - Required and optional environment variables for setup, authentication, and runtime behavior.
β Error Handling
Catch provider-normalized exceptions from qdrant_loader_core.llm.errors:
TimeoutErrorRateLimitedErrorInvalidRequestErrorAuthErrorServerError
π Canonical Documentation
- Monorepo overview - Project structure, packages, and high-level navigation across the repository.
- Developer hub - Developer guides for architecture, testing, deployment, and contribution workflows.
- Architecture hub - System design, component interactions, and core technical decisions.
- User configuration reference - Complete config schema and practical setup examples.
- User error troubleshooting - Common error messages, root causes, and recommended fixes.
π€ Contributing
See CONTRIBUTING - Contribution guidelines, development standards, and pull request process.