Skip to main content

QDrant Loader Core

PyPI Python License: Apache 2.0

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 settings and mapping: LLMSettings.from_global_config(...) supports the new global.llm schema and maps legacy fields with deprecation warnings
  • Structured logging with redaction: LoggingConfig.setup(...) masks secrets and reduces noisy logs
  • Normalized errors: consistent exceptions across providers (TimeoutError, RateLimitedError, InvalidRequestError, AuthError, ServerError)
  • Optional dependencies via extras: openai, ollama

📦 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", provider=settings.provider)

📝 Notes

  • Secrets (keys/tokens) are masked in both stdlib and structlog output
  • Noisy third‑party logs are toned down; Qdrant version checks are filtered
  • For MCP integration, set MCP_DISABLE_CONSOLE_LOGGING=true to disable console output

❗ Error Handling

Catch provider-normalized exceptions from qdrant_loader_core.llm.errors:

  • TimeoutError — request timed out
  • RateLimitedError — rate limit exceeded
  • InvalidRequestError — bad parameters or unsupported operation
  • AuthError — authentication/authorization failed
  • ServerError — transport/server failures

📚 Documentation

🆘 Support

🤝 Contributing

See CONTRIBUTING - Contribution guidelines, development standards, and pull request process.

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Ready to get started? Check out our Quick Start Guide or browse the complete documentation.

Release files for qdrant-loader-core 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qdrant-loader-core 1.0.4
File Size Uploaded
qdrant_loader_core-1.0.4.tar.gz 62.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qdrant-loader-core 1.0.4
File Interpreter ABI Platform
qdrant_loader_core-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 114.4 kB

Release files / qdrant_loader_core-1.0.4.tar.gz

Download URL qdrant_loader_core-1.0.4.tar.gz
Size 62.8 kB
Tags Source
SHA-256 checksum
How to use checksums
54c14fbc1ee794ce937471df8e8e17f31d6b5b7feeeeb054af067cf30ca0b4c6
BLAKE2b-256 checksum
How to use checksums
8d19a90d9194d14365ad86b40cecf15b8c049f1dd8ad28a5c15221bdfad317d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.

Transparency log

Release files / qdrant_loader_core-1.0.4-py3-none-any.whl

Download URL qdrant_loader_core-1.0.4-py3-none-any.whl
Size 51.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3899a0d9cba1a78ebbf0e7ab3c1964b6517ad22ec18eaea9c0a6cdf45518bb31
BLAKE2b-256 checksum
How to use checksums
5043552dc5759697353185d2c8d0be05f397ef95b999ef25fc54927acbd47177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.6

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page