Skip to main content

docmesh-kbms

문서 원본과 메타데이터는 dms-core가 관리하고, 이 프로젝트는 문서 내용을 추출·chunking·embedding하여 Milvus에 저장하는 지식 저장 관리 시스템이다.

외부 공개 진입점은 kbms.KnowledgeManagement 하나다.

계층

  • Domain: Python
  • Document management: dms-core
  • ORM/RDB: SQLAlchemy with SQLite or PostgreSQL
  • Vector store: Milvus
  • Embedding provider: Ollama

KnowledgeManagement의 문서 작업은 모두 async API이며 await로 호출한다. upload_document()은 dms-core에 원본 문서와 메타데이터를 저장한 뒤, 텍스트 문서만 추출·chunking하여 Ollama/Milvus로 지식화한다. SQLAlchemy engine과 dms-core, Ollama, Milvus client의 생성·종료 및 commit/rollback은 host가 맡는다. 비동기 경로를 사용하려면 AsyncEngine(sqlite+aiosqlite 또는 async PostgreSQL), Ollama AsyncClient, pymilvus AsyncMilvusClient를 주입한다. 이 경우 dms-core의 AsyncDocumentManagementSDK와 async SQLAlchemy/Milvus 호출을 사용하며, 동기 클라이언트를 주입하면 기존 호환 경로를 사용한다. host 권한 정책은 생성자에 access_policy로 주입하고, 각 문서 작업에는 dms-core의 AccessContext를 전달해 사용자·그룹 권한을 적용한다.

검증

uv run pytest -q
uv run ruff check kbms test_kbms

SQLite memory/disk와 Milvus local 검사는 항상 실행된다. PostgreSQL, Milvus server, Ollama 연결 검사는 다음 환경변수가 설정된 경우 실행된다.

export KBMS_POSTGRES_URL='postgresql+psycopg://docmesh:postgres@postgres:5432/kbms'
export KBMS_MILVUS_URI='http://milvus:19530'
export KBMS_OLLAMA_HOST='http://192.168.219.106:11434'
export KBMS_OLLAMA_EMBEDDING_MODEL='bge-m3'
export KBMS_OLLAMA_GENERATION_MODEL='llama3.2'
uv run pytest -q -m integration

실환경 전체 흐름(DMS + MinIO + PostgreSQL + Ollama + Milvus)은 다음 테스트가 검증한다. MinIO 설정을 생략하면 devcontainer 기본값을 사용한다.

export KBMS_MINIO_ENDPOINT='milvus-minio:9000'
export KBMS_MINIO_ACCESS_KEY='minioadmin'
export KBMS_MINIO_SECRET_KEY='minioadmin'
export KBMS_MINIO_BUCKET='kbms-e2e'
uv run pytest -q -m real_integration test_kbms/test_real_integration.py

Metadata

Release files for docmesh-kbms 0.1.0

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

Source distribution (sdist)

Source distribution for docmesh-kbms 0.1.0
File Size Uploaded Provenance Actions
docmesh_kbms-0.1.0.tar.gz 12.1 kB With provenance Details for docmesh_kbms-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docmesh-kbms 0.1.0
File Interpreter ABI Platform Actions
docmesh_kbms-0.1.0-py3-none-any.whl Python 3 none any Details for docmesh_kbms-0.1.0-py3-none-any.whl

Total release size: 27.8 kB

Release files / docmesh_kbms-0.1.0.tar.gz

Download URL docmesh_kbms-0.1.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
022a7ac33619ad7491f989537016354729496327db2ca302ac036921dc94b011
BLAKE2b-256 checksum
How to use checksums
6d4e2b812778549131fbc406e441c0309852fe607fab1f09c4cd1645c3b67748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release files / docmesh_kbms-0.1.0-py3-none-any.whl

Download URL docmesh_kbms-0.1.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca01656d6c0bec8f36b8a59a23c439ad120ff5ad46083161a6bf0b54d6463f0c
BLAKE2b-256 checksum
How to use checksums
e9e2f5e8aead84944a13e32aabc7aa5971ac735f2ee9f9a6435967b6352320fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Security for docmesh-kbms 0.1.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docmesh_kbms-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

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.0 This release

2 release files Full 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