Skip to main content

aice-knowledge

Python SDK for the Knowledge Service — multi-tenant document ingestion (PDF/DOCX/OCR) into Postgres + pgvector, served over REST and MCP.

from aice_knowledge import KnowledgeClient

client = KnowledgeClient(base_url="https://kb.example.com", api_key="sk-…")

# Upload a document (queued for parsing + embedding)
doc = client.documents.upload(
    file=open("contract.pdf", "rb").read(),
    filename="contract.pdf",
)

# Vector search
hits = client.search(query="payment terms", limit=5)

# Manage the scope tree (multi-tenant document organisation)
client.scopes.create(name="finance", parent_id=None)
client.document_scopes.link(document_id=doc["id"], scope_ids=["sc_finance"])

Endpoints covered (see knowledge_service/app/api/routes.py):

  • POST /documents, POST /documents/batch, GET /documents, GET /documents/{id}, POST /documents/{id}/retry, DELETE /documents/{id}
  • POST /documents/{id}/share, GET /documents/{id}/share, DELETE /documents/{id}/share/…
  • POST /search
  • POST /scope-types, GET /scope-types, DELETE /scope-types/{id}
  • POST /scopes, GET /scopes, DELETE /scopes
  • POST /document-scopes, GET /document-scopes, DELETE /document-scopes

Metadata

Release files for aice-knowledge 0.1.2

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

Source distribution (sdist)

Source distribution for aice-knowledge 0.1.2
File Size Uploaded Provenance
aice_knowledge-0.1.2.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aice-knowledge 0.1.2
File Interpreter ABI Platform
aice_knowledge-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / aice_knowledge-0.1.2.tar.gz

Download URL aice_knowledge-0.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
23ee249087f5d75e00937a4acac78e2e2c85242b4807d3dee97d96edac16da1a
BLAKE2b-256 checksum
How to use checksums
3fb6487dcee02f7c65c0b85821021a14efd4dca56e84668aa195f3d30e5e1735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.24

Release files / aice_knowledge-0.1.2-py3-none-any.whl

Download URL aice_knowledge-0.1.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7472a46bca74a4c36239660deb0f744e209a57a331531e92c072ea437adf2ce8
BLAKE2b-256 checksum
How to use checksums
ccc50271ab8f6f72c52d18e9b28eb6c0d3cdc471268b23a0fccd5bcfb6208146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.24

Security for aice-knowledge 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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