Skip to main content

Python client SDK for the Taguru long-term semantic memory server

Project description

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)

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.

Project details


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.2.0.tar.gz (36.1 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.2.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for taguru-0.2.0.tar.gz
Algorithm Hash digest
SHA256 091e8f010d29ade620a6bc8bf84c323099287f538461158f6dfa704b0debc4be
MD5 01191059bf31234d691e5645cffd21b0
BLAKE2b-256 cb6134c64e8f9a173a68eed44c650d6512107cd52f11283a1b30ecb372a3fd03

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for taguru-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe4178d82d5e12d609588e8a4f76fb85c4227ef5faef365b6af5d9a5d028ee3
MD5 0dc2c25d391ebb1943107c6adb3fcd32
BLAKE2b-256 993a872266343cf2e8616e49e5804d8a09e98b8bb73031f34d62718650de3f77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page