Shared core for provider-agnostic LLM support and configuration mapping for qdrant-loader ecosystem
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qdrant_loader_core-1.0.0.tar.gz.
File metadata
- Download URL: qdrant_loader_core-1.0.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7df707f4ac828b8ea1b94b3ea4cae28a688579a282854304a694850237f9d66
|
|
| MD5 |
aca69139c74429109b834de4a00f072c
|
|
| BLAKE2b-256 |
7308b227a511ffb3feb95251c1ec52908f5861bcd547f08c23e7ef95cce5414f
|
Provenance
The following attestation bundles were made for qdrant_loader_core-1.0.0.tar.gz:
Publisher:
publish.yml on martin-papy/qdrant-loader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qdrant_loader_core-1.0.0.tar.gz -
Subject digest:
f7df707f4ac828b8ea1b94b3ea4cae28a688579a282854304a694850237f9d66 - Sigstore transparency entry: 1292259679
- Sigstore integration time:
-
Permalink:
martin-papy/qdrant-loader@b22ed1b7d8f7ed34b7d18b401137a5d6279107dc -
Branch / Tag:
refs/tags/qdrant-loader-core-v1.0.0 - Owner: https://github.com/martin-papy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b22ed1b7d8f7ed34b7d18b401137a5d6279107dc -
Trigger Event:
release
-
Statement type:
File details
Details for the file qdrant_loader_core-1.0.0-py3-none-any.whl.
File metadata
- Download URL: qdrant_loader_core-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa771d860378c013ec8db181e0c8bb67b735f72a046b164338df675c9d3e8f9
|
|
| MD5 |
7cb2bc56f07d098c4e52017643b8da7e
|
|
| BLAKE2b-256 |
35ae530fd1a26c2d29efe84af73a9219470ad21a7ee8b1ee19c505ceb00a9ceb
|
Provenance
The following attestation bundles were made for qdrant_loader_core-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on martin-papy/qdrant-loader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qdrant_loader_core-1.0.0-py3-none-any.whl -
Subject digest:
3fa771d860378c013ec8db181e0c8bb67b735f72a046b164338df675c9d3e8f9 - Sigstore transparency entry: 1292259765
- Sigstore integration time:
-
Permalink:
martin-papy/qdrant-loader@b22ed1b7d8f7ed34b7d18b401137a5d6279107dc -
Branch / Tag:
refs/tags/qdrant-loader-core-v1.0.0 - Owner: https://github.com/martin-papy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b22ed1b7d8f7ed34b7d18b401137a5d6279107dc -
Trigger Event:
release
-
Statement type: