Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

langchain-taguru

Latest version: v0.11.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: t0k0sh1
0 Stars
0 Forks
4 Versions
331 Downloads
Rust Repo language

Scan summary

langchain-taguru was last scanned on 29 Nov 2026 at version 0.11.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.11.2.
  • Downloads: 331 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.11.2 LATEST 29 Nov 2026 No rules fired
0.11.1 28 Nov 2026 No rules fired
0.11.0 19 Nov 2026 No rules fired
0.10.0 17 Nov 2026 Not shown

No rules fired in 0.11.2

Findings

Findings for v0.11.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.11.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

langchain-taguru (Python)

Official LangChain integration for the Taguru long-term semantic memory server. The TypeScript twin (langchain-taguru on npm) exposes the identical surface.

pip install langchain-taguru
from langchain_openai import ChatOpenAI
from taguru import Taguru
from taguru_langchain import TaguruIngester, TaguruRetriever

# Write: an LLM decomposes documents into the association graph
# (the LangChain twin of `taguru extract`; per-source replace, idempotent).
ingester = TaguruIngester(
    context="sake",
    llm=ChatOpenAI(model="gpt-4.1", temperature=0),
    create_context=True,
    context_description="青嶺酒造という架空の酒蔵の知識",
)
ingester.ingest_documents(docs)          # docs[*].metadata["source"] required

# Read: graph lane (resolve → activate → citations) + text lane
# (search_passages), merged by Reciprocal Rank Fusion.
# The retriever takes the context's id (names are not unique); look it up once.
client = Taguru()
matches = [row.id for row in client.contexts.iter() if row.name == "sake"]
if len(matches) != 1:
    raise RuntimeError(f"expected exactly one context named 'sake', found {len(matches)}")
(context_id,) = matches
retriever = TaguruRetriever(context_id=context_id, client=client, k=8)
documents = retriever.invoke("青嶺酒造")

Runnable use-case examples (RAG QA with citations, governed ingestion, conversational long-term memory — each mirrored in TypeScript) live in examples/langchain; they work offline, no API key needed.

TaguruIngester takes an optional on_event callback for live progress — document/chunk/attempt/import/embedding-refresh events, including why a corrective attempt fired. Useful with slow local models, where a single ingest_text() call can otherwise look like one long silent block:

ingester = TaguruIngester(..., on_event=lambda event: print(event.kind))

Checkpoint/resume for spot and preemptible instances

Pass checkpoint_store to survive an interruption mid-document (a killed process, a reclaimed spot instance) without losing every chunk already extracted for it:

from taguru_langchain import FilesystemCheckpointStore

ingester = TaguruIngester(
    ...,
    checkpoint_store=FilesystemCheckpointStore(".taguru-checkpoints"),
)

Each chunk's accepted output is durably persisted (keyed by the chunk's own content hash) before the next chunk starts; rerunning the same ingest_text()/ingest_documents() call after an interruption resumes without re-calling the model for chunks already completed. Changing the document's content, the model, or any output-shaping setting (fact_budget, structured_output, questions, ...) invalidates the whole cache rather than risking a silent reuse of an incompatible output. The checkpoint is cleared once the source file actually lands in /import, and kept if the document ultimately fails — so a dry_run=True call, which never imports, still records checkpoints but never deletes them. Pass should_stop (a zero-argument callable, or a threading.Event) to stop cooperatively between chunks; IngestOutcome.interrupted reports whether that happened.

checkpoint_store accepts anything implementing the three-method CheckpointStore protocol (load/save/delete, keyed by source id), so object storage or a database work as a drop-in replacement for FilesystemCheckpointStore on an ephemeral instance with no durable local disk:

class S3CheckpointStore:
    def load(self, source: str) -> bytes | None: ...
    def save(self, source: str, data: bytes) -> None: ...  # must be atomic
    def delete(self, source: str) -> None: ...

To force a full re-extraction ignoring whatever is cached, delete that source's checkpoint yourself — store.delete(source), or FilesystemCheckpointStore.path_for(source).unlink().

For composing this with a bounded, resumable runner (time/item windows, signal handling, torn-import repair), see long-running ingestion.

Standard ingest connectors (ADR 0007)

taguru_langchain.ingest_connectors normalizes a source document — plain text plus paragraph-indexed section headings and typed citation locators (page/slide/sheet/table) — into the one shape TaguruIngester consumes, instead of a bare page_content string. The reference connector reads .md/.txt, extracting ATX headings as sections:

from taguru_langchain.ingest_connectors import TextFileConnector, ingest_connector_document

document = TextFileConnector().read("docs/manual.md")
if document.diagnostics:
    ...  # encrypted, corrupt, unsupported format, OCR required, ... — never a silently empty passage
outcome = ingest_connector_document(ingester, document)

ConnectorDocument.sections/.locators round-trip losslessly through /import into Citation.section/.locator on every recall/explore/activate/cite_passage response. A connector's own fetch/parse work is independently resumable via ConnectorCheckpoint, layered over the same CheckpointStore checkpoint_store= already uses above — a distinct namespace= keeps the two from colliding when they share one FilesystemCheckpointStore directory:

from taguru_langchain.ingest_connectors import ConnectorCheckpoint

checkpoint = ConnectorCheckpoint(
    FilesystemCheckpointStore(".taguru-checkpoints"), namespace="connector"
)
cached = checkpoint.load(source, fresh_fingerprint)  # None on any mismatch — never a false hit
if cached is None:
    document = TextFileConnector().read(path)
    checkpoint.save(document)

PdfConnector (issue #348) reads .pdf files the same way — pip install "langchain-taguru[pdf]" for its pypdf dependency, kept out of the default install per ADR 0007 §3/§4 so a caller ingesting nothing but .md/.txt never pays for a PDF parser. One {"kind": "page", "value": ...} locator is emitted per paragraph, derived from the PDF's own page boundaries; its outline (bookmarks), if any, becomes sections and the document title. No OCR engine ships here: a page whose extracted text has fewer than min_chars_per_page (default 16) non-whitespace characters is named in an ocr_required diagnostic instead of silently passed through as low-quality text — raise the threshold for a corpus of mostly-image PDFs, or configure ocr_adapter= (issue #352, see below) to recover exactly the pages it names. Encrypted and corrupt PDFs are reported the same structured way (encrypted/corrupt), never a raised exception:

from taguru_langchain.ingest_connectors import PdfConnector

document = PdfConnector().read("docs/manual.pdf")
if document.diagnostics:
    ...  # encrypted, corrupt, ocr_required, ... — never a silently empty passage
outcome = ingest_connector_document(ingester, document)

HtmlConnector (issue #349) reads both a local .html/.htm/.xhtml file and an http(s):// URL — no extra to install, parsing is stdlib html.parser only. Boilerplate (script/style/nav/aside, and a page's own header/footer when nothing scopes the content to a <main>/<article>) is stripped before text is built; the heading hierarchy survives as a breadcrumb section per paragraph ("Guide > Installation", since sections is flat); and each heading's own id (or its nearest id-bearing ancestor's) becomes a {"kind": "fragment", "value": ...} locator on every paragraph up to the next heading — combined with metadata.canonical_url, a citation can point at a real in-page deep link. A URL fetch's source id is the final, fragment-stripped, canonicalized URL (ADR 0007 §6.1) — <link rel="canonical">, when present, only ever populates metadata.canonical_url, never the source id itself. A page with no extractable text after boilerplate removal (image-only, an unrendered JS-shell SPA) is ocr_required with empty text, and a 4xx/5xx response, a non-HTML Content-Type, or a raw body over max_file_bytes are each their own diagnostic — never a raised exception. By default, a URL fetch also refuses any destination (including one reached only via a redirect) that resolves to a private, loopback, link-local, or multicast address — HtmlConnector still assumes the caller controls or trusts the URL itself, but this stops an otherwise-trusted URL from being turned into a probe of localhost or a cloud metadata endpoint by a redirect the origin server controls. Pass allow_private_networks=True to fetch one intentionally (a local test server, an internal document server on a private network):

from taguru_langchain.ingest_connectors import HtmlConnector

document = HtmlConnector().read("https://example.com/guide")
if document.diagnostics:
    ...  # unreadable, unsupported_format, ocr_required, ... — never a silently empty passage
outcome = ingest_connector_document(ingester, document)

DocxConnector (issue #350) reads .docx files — pip install "langchain-taguru[docx]" for its python-docx dependency, kept out of the default install per ADR 0007 §3/§4 for the same reason PdfConnector's pypdf is. The document body is walked in real document order (paragraphs and tables interleaved, never document.paragraphs/.tables separately); a heading's breadcrumb becomes a section, the same "Guide > Installation" convention HtmlConnector uses. A table — top-level or nested inside another table's cell — becomes exactly one paragraph (rows joined with \n, cells with " | ") carrying a {"kind": "table", "value": ...} locator ("3", or "3.1" for a table nested inside table 3's own cell); an ordinary body paragraph never carries a locator, which is what makes "this paragraph has a locator" mean "this paragraph is a table" when reading this connector's locators. No OCR engine ships: a document left with no extractable text (an image-only .docx) is ocr_required with empty text. A password-protected .docx is recognized by its container's own signature and reported encrypted before ever being opened as a zip; a merely corrupt/truncated package is corrupt. Footnote/endnote/comment text and text-box content are each unreachable through this connector's own paragraph walk — named in a single partial_extraction diagnostic rather than silently short-changed. Only .docx is read; .doc (legacy binary) and .docm (macro-enabled) are both unsupported_format:

from taguru_langchain.ingest_connectors import DocxConnector

document = DocxConnector().read("docs/manual.docx")
if document.diagnostics:
    ...  # encrypted, corrupt, ocr_required, partial_extraction, ... — never a silently empty passage
outcome = ingest_connector_document(ingester, document)

PptxConnector (issue #352) reads .pptx files — pip install "langchain-taguru[pptx]" for its python-pptx dependency, kept out of the default install per ADR 0007 §3/§4 for the same reason DocxConnector's python-docx is. A slide's shapes are walked in document order, recursing into a group shape's own nested shapes; every non-empty text-frame paragraph and every table (rows joined with \n, cells with " | ", one paragraph per table) carries a {"kind": "slide", "value": ...} locator — unlike DocxConnector (whose one-locator-per-paragraph budget goes to tables, since a DOCX has no page-like structure of its own to spend it on instead), a slide already has a number to spend that budget naming, so here it goes to distinguishing a slide's body from its speaker notes instead: a slide's notes are read as their own paragraph(s), each carrying {"kind": "speaker_notes", "value": ...}. A slide's title is read like any other paragraph (same slide locator as its neighbors) and additionally becomes the paragraph-anchored section. No OCR engine, no rasterizer: a presentation left with no extractable text (an image-only deck) is ocr_required with empty text. A chart, a SmartArt diagram, and an embedded/linked OLE object are each unreachable through this connector's own shape walk — named in a single partial_extraction diagnostic rather than silently short-changed. Only .pptx is read; .ppt (legacy binary) and .pptm (macro-enabled) are both unsupported_format:

from taguru_langchain.ingest_connectors import PptxConnector

document = PptxConnector().read("docs/deck.pptx")
if document.diagnostics:
    ...  # encrypted, corrupt, ocr_required, partial_extraction, ... — never a silently empty passage
outcome = ingest_connector_document(ingester, document)

No OCR engine ships in this package, or in any connector (ADR 0007 §10). OcrAdapter (issue #352) is the external boundary a connector calls out to when one is configured — given the raw document bytes and the locators naming which pages are unusable, an adapter returns whatever text it could recover for them, each still tagged with the same locator it was asked about; PdfConnector is the one connector wired to call one today (ocr_adapter=), offering it exactly the pages its own min_chars_per_page threshold found unusable, never the whole document. An adapter's own failure — an exception, or simply recovering nothing for a page — leaves that page exactly ocr_required, as if no adapter had been configured at all:

from taguru_langchain.ingest_connectors import OcrRecoveredText, OcrRequest, OcrResult

class MyOcrAdapter:
    name = "my-ocr-engine"
    version = "1.0"

    def recognize(self, request: OcrRequest) -> OcrResult:
        texts = tuple(
            OcrRecoveredText(locator=locator, text=my_engine.recognize(request.content, locator))
            for locator in request.locators
        )
        return OcrResult(texts=texts)

document = PdfConnector(ocr_adapter=MyOcrAdapter()).read("docs/scanned.pdf")

S3Connector/sync_object_storage (issue #351) list an S3 bucket/prefix and dispatch each object to whichever installed connector above its extension (or, failing that, its content-type) names — pip install "langchain-taguru[s3]" for its boto3 dependency, the same opt-in extra PdfConnector/DocxConnector already use. Credentials always come from boto3's own standard chain (environment, shared config/credentials file, an EC2/ECS/Lambda role, ...); there is no parameter anywhere in this path that accepts an access key or secret directly:

from taguru_langchain import FilesystemCheckpointStore
from taguru_langchain.ingest_connectors import open_object_store, sync_object_storage

store, prefix = open_object_store("s3://my-bucket/reports/")
report = sync_object_storage(
    store,
    prefix,
    ingester=ingester,
    checkpoints=FilesystemCheckpointStore(".taguru-checkpoints"),
)
print(report.discovered, report.imported, report.failed, report.deleted_detected)

Re-running the same call is cheap twice over: an object whose bucket-listing metadata (version id / content hash / size+last-modified, with a bare ETag only as the last resort — some S3-compatible stores compute it in a way that isn't a reliable content hash) is unchanged from last time is never even fetched; one whose bytes are unchanged despite a metadata bump (a tag edit, a copy-in-place) is fetched but never re-ingested. Both checkpoints live in the same checkpoints store passed above — no second store to configure.

Deleted objects are never retracted by default — report.deleted_detected names them, but nothing changes in taguru until you opt in explicitly: sync_object_storage(..., deletion_policy="retract") withdraws exactly the objects this connector's own prior listing no longer sees; "mirror" goes further and reconciles against the context's actual source list too, so it self-heals even the first time it runs, with no prior listing to diff against. dry_run=True reports what a real pass would discover/fetch/skip — including an honest unchanged verdict, since S3's own listing already carries every fingerprint field needed — without ever touching the network, taguru, or the checkpoint/inventory store.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases langchain-taguru

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229