Skip to main content

taguru (Python SDK)

Official Python client SDK for the Taguru long-term semantic memory server. The TypeScript SDK (taguru on npm) exposes the identical surface — method names differ only by casing convention (search_passagessearchPassages); data fields are the wire's own snake_case in both.

pip install taguru
from taguru import Taguru

client = Taguru()  # defaults: $TAGURU_URL / $TAGURU_API_TOKEN, else http://127.0.0.1:8248
client.contexts.create("sake", description="青嶺酒造という架空の酒蔵の知識")

ctx = client.context("sake")
ctx.add_associations([
    {"subject": "青嶺酒造", "label": "代表銘柄", "object": "青嶺", "weight": 1.0, "source": "docs/aomine.md"},
])
ctx.store_passages({"docs/aomine.md": "青嶺酒造は1907年創業。代表銘柄は「青嶺」。"})

result = ctx.retrieve("青嶺酒造")           # resolve → describe → activate → citations
hits = ctx.search_passages("1907年に創業した")  # text lane (phrase as an answer)
package = ctx.assemble_evidence("青嶺酒造", budget={"max_items": 10})  # server-side budgeted package

Prefer one add_associations call per document. Above the 10,000-association request limit, add_associations_batched auto-chunks it; for corpus-scale ingestion, use POST /import or taguru import. Each call pays for a full durable write.

AsyncTaguru is the same surface with async/await. The behavioral contract is the server's own protocol document — read it from the deployment you target: client.protocol() (GET /protocol).

See the repository's sdk/ directory for the full documentation, the LangChain integration (langchain-taguru), and the cross-language surface spec.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taguru-0.6.0.tar.gz (131.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taguru-0.6.0-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file taguru-0.6.0.tar.gz.

File metadata

  • Download URL: taguru-0.6.0.tar.gz
  • Upload date:
  • Size: 131.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for taguru-0.6.0.tar.gz
Algorithm Hash digest
SHA256 383df8d426ce11d61d4ef207861ce0c985414653b43b3b3c311d045a8aff9c31
MD5 292f6033272b21b1d82a5fbde90ef1c8
BLAKE2b-256 767fcb54f5792ed79bd7ad0d9f9df4fe147e3acfeed50ad7951b50214c616b3a

See more details on using hashes here.

File details

Details for the file taguru-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: taguru-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for taguru-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebbe59f2400c8338750c56d0d63436698f895be2f04ea97a9ca44716f5956a42
MD5 75cd78c255fefb083efa6ae768e6a9d0
BLAKE2b-256 2f3226b4d1c3bf800b69c68d0509583692d3f9b7ccf003bcb3be4b6e349b0982

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.6

2 files

0.9.5

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 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