Skip to content

Add native LangChain and LlamaIndex integrations with runnable PDF examples - #35

Merged
aakashH242 merged 2 commits into
mainfrom
codex/framework-integrations-pypi
Oct 22, 2026
Merged

aakashH242 merged 2 commits into
mainfrom
codex/framework-integrations-pypi

Conversation

@aakashH242

Copy link
Copy Markdown
Contributor

What changes

Add two independently packaged Trimwise integrations: a LangChain RunnableLambda and a native LlamaIndex node postprocessor. Each applies one shared evidence budget after retrieval while preserving source identity, metadata, and exact retained spans. Neither framework is added to core Trimwise's dependencies.

Each integration includes a minimal example and its own runnable PDF RAG playground. The apps use native framework retrieval, freeze one retrieval for both answer conditions, and show full versus trimmed evidence, token counts, citations, and failures. PDF/UI helpers are shared privately; application environments are isolated and force CPU-only embeddings and inference.

Add integration CI and a manual, tag-validated Trusted Publishing workflow for separate 0.1.0 releases. Only the final artifact publishing job receives OIDC permission; package-specific GitHub environments require maintainer approval. The private helper and PDF apps are not published. Include PyPI metadata, installation instructions, and the release guide.

Validation

  • 281 core tests passed; coverage 97.07%.
  • 40 shared playground tests passed, with one inapplicable parameter skipped.
  • 18 LangChain and 20 LlamaIndex tests passed against clean built-wheel installations and PyPI Trimwise 0.7.0; both minimal examples and dependency checks passed.
  • Ruff check/format, strict adapter mypy, actionlint, wheel/sdist builds, strict Twine 7 checks, release guard negative cases, and independent scoped reviews passed.
  • Real CPU fixture comparisons through both native apps retained the incident answer while reducing rendered context from 904 to 278 tokens. Runtime prompt counts matched, and model VRAM was zero. These are smoke checks, not general quality or speed benchmarks.

Benchmark/comparison work, the root lockfile, and historical GPU timing artifacts are excluded from this PR. No core release configuration or runtime dependencies change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T17:41:47.158160Z da70959 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aakashH242
aakashH242 merged commit ad26bc9 into main Oct 22, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant