Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

harborrag-engine

Owns RAG orchestration using core contracts and adapter implementations.

Folder ownership

ingestion/admission.py       # source change and version planning
ingestion/chunking/          # canonical route and evidence chunking
ingestion/representations/   # dense/sparse representation policy
ingestion/projections/       # Qdrant/Falkor projection construction and verification
retrieval/                   # authoritative retrieval, fusion, reranking, and evidence
tools/                       # canonical reader catalog, schemas, handlers, and checked invoker
agent/                       # bounded multi-hop model/tool orchestration
chat/prompts/                # typed, packaged provider-neutral chat prompts
conversation/                # compatibility exports for the core memory port

Extension boundaries

  • Core domain records and ports remain provider-neutral.
  • Connectors, parsers, models, and repositories are injected through adapters.
  • Canonical chunking has maintained Confluence and Jira policies plus a source-neutral fallback for attachments and community connectors.
  • Provider writes and Temporal orchestration remain outside the engine.
  • Agent tool dispatch and chat prompt definitions are provider- and transport-neutral; runtime binds clients and optional memory services.
  • Reader tools bind only to core reader ports. MCP and the optional agent invoke them through the same policy, validation, and output-budget boundary.
  • Conversation identity and memory contracts live in core; PostgreSQL persistence lives in adapters, outside chat and agent orchestration.

Ingestion chunking

harborrag_engine.ingestion.chunking implements the deterministic chunking stages used before the immutable chunk registry:

canonical document
  -> canonical, Confluence, Jira, or registered source strategy
  -> structure segmentation
  -> oversized-unit refinement
  -> compatible peer packing
  -> separate source/context metadata
  -> stable logical + revision identity
  -> canonical chunk records
  -> lightweight manifest validation

minimum_tokens is a preferred merge threshold, target_tokens is the soft packing target, and maximum_tokens is a hard postcondition. Tables are split by complete rows and repeat their header only as bounded context metadata; canonical chunk content remains suitable for fingerprinting and source diffs.

ChunkingConfig maps a normalized connector name to a profile; it never routes on raw media types. ChunkingService executes the profile's registered strategy, validates its output, assigns stable logical_chunk_id and content-specific chunk_id values, and returns a ChunkingResult containing canonical core ChunkRecord values plus a manifest of lightweight chunk references.

Construct the service with build_chunking_service, a model-compatible TokenCounter, and a framework-neutral TextRefiner. ChunkingService.chunk is synchronous, pure, and deterministic. The runtime persists the returned validated chunk set and manifest through its immutable artifact repositories.

Confluence and Jira are maintained built-ins. Community connectors use the canonical fallback or inject a ChunkStrategy through additional_strategies; they do not modify the service. Raw Markdown, HTML, JSON, PDF, and Office structure is resolved before chunking by parser and normalizer adapters. A TextRefiner remains explicit because enforcing maximum_tokens is a hard correctness requirement.

See ingestion/chunking/README.md for the package map and extension boundary.

Representations and projections

harborrag_engine.ingestion.representations creates versioned dense and sparse representations. harborrag_engine.ingestion.projections maps validated chunks and canonical relations into deterministic staged vector and graph batches:

validated chunks + representation manifest + canonical relations
  -> Qdrant route/evidence batches
  -> FalkorDB document/section/table/comment batches
  -> cross-projection verification
  -> Postgres-controlled publication in the runtime

Projection builders are pure and provider-independent. They never publish a version, call Qdrant or FalkorDB, or treat a projection store as authoritative. The runtime owns staged writes, verification, and the Postgres activation transaction. Provider adapters own native payload and query translation.

Package tests

Tests for this package live in:

packages/harborrag-engine/tests/
├── ingestion/
    ├── unit/
    └── integration/

Run from the repository root:

pytest packages/harborrag-engine/tests/ingestion/unit
pytest packages/harborrag-engine/tests/ingestion/integration -m integration

The deployed end-to-end ingestion smoke lives in harborrag-runtime, which owns provider composition and Temporal orchestration.

Metadata

Release files for harborrag-engine 2.0.0a2

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

Source distribution (sdist)

Source distribution for harborrag-engine 2.0.0a2
File Size Uploaded Provenance Actions
harborrag_engine-2.0.0a2.tar.gz 284.3 kB With provenance Details for harborrag_engine-2.0.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harborrag-engine 2.0.0a2
File Interpreter ABI Platform Actions
harborrag_engine-2.0.0a2-py3-none-any.whl Python 3 none any Details for harborrag_engine-2.0.0a2-py3-none-any.whl

Total release size: 538.6 kB

Release files / harborrag_engine-2.0.0a2.tar.gz

Download URL harborrag_engine-2.0.0a2.tar.gz
Size 284.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a184301f5c51897e05b305ee9aebf7e3b7517cca0c0764171d819df870cfa3e
BLAKE2b-256 checksum
How to use checksums
51acbd29ef355213e20328900d9d1fd92d282a53b264c5a188bac6a0d10a6f64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 27, 2026.

Transparency log

Release files / harborrag_engine-2.0.0a2-py3-none-any.whl

Download URL harborrag_engine-2.0.0a2-py3-none-any.whl
Size 254.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e55db12367dc0b10128cbf8b62a3589ef6768c700b8dd7f57ee7aa662f15b4b
BLAKE2b-256 checksum
How to use checksums
3d83405617015f5712834c861aca0b0f22157aa9808ca0099242ee1098429094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 27, 2026.

Transparency log

Security for harborrag-engine 2.0.0a2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for harborrag_engine-2.0.0a2.tar.gz

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 Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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