Skip to main content

rag-core-sdk(Python)

面向 rag_core REST 的可选 Python 客户端 SDK。

  • Python:≥ 3.10
  • 包名:rag_core_sdk
  • 鉴权:Authorization: Bearer <access_key>

SDK 不能替代部署 rag_core。统一说明见上级 ../USER_GUIDE.md。

安装

cd rag-core-sdk/python
pip install -e .
# 开发依赖(pytest):
pip install -e ".[dev]"

快速开始

export RAG_BASE_URL=http://127.0.0.1:9988
export RAG_ACCESS_KEY=debug-access-key
python examples/quickstart.py

测试

pytest tests/test_client_unit.py -q

# 端到端(需 rag_core 已启动)
RAG_E2E=1 RAG_BASE_URL=http://127.0.0.1:9988 pytest tests/test_e2e.py -q -s

OpenAPI 导出

# 对已启动服务:
curl -s http://127.0.0.1:9988/openapi.json | python3 -m json.tool > ../openapi.json

# 或能 import rag_core 时:
python scripts/export_openapi.py -o ../openapi.json

Metadata

Release files for rag-core-sdk 0.10.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 rag-core-sdk 0.10.2
File Size Uploaded Provenance Actions
rag_core_sdk-0.10.2.tar.gz 7.6 kB Without provenance Details for rag_core_sdk-0.10.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rag-core-sdk 0.10.2
File Interpreter ABI Platform Actions
rag_core_sdk-0.10.2-py3-none-any.whl Python 3 none any Details for rag_core_sdk-0.10.2-py3-none-any.whl

Total release size: 15.3 kB

Release files / rag_core_sdk-0.10.2.tar.gz

Download URL rag_core_sdk-0.10.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9d63c9330125e50b38054ba5e734d7725f99578096c30b6c7c2df4782c658d53
BLAKE2b-256 checksum
How to use checksums
114d2a50addc1c02812de4a0289d343451a73f05aa695dadef25453ddef927db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.6

Release files / rag_core_sdk-0.10.2-py3-none-any.whl

Download URL rag_core_sdk-0.10.2-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f73347a6f49b90baa2c36e1b64ef18e23c7565c0c7c0456e372450ff06af6351
BLAKE2b-256 checksum
How to use checksums
24a964c0501c260f61fffe7388b9c5198a83d733aa1ed0d7e133977291fbd0b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.6

Security for rag-core-sdk 0.10.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.10.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