Skip to main content

Python package for support RAG

Installation

pip install rag-helper

Usage

  1. Generate synthetic data Note: only support for Gemini model
from rag_helper.synthetic import SyntheticData

chunks = ["Mang thai và sinh con là thiên chức của người phụ nữ, ai cũng mong muốn con mình sinh ra khỏe mạnh, lành lặn không mắc dị tật. Để hoàn thành được nguyện vọng đó, bên cạnh việc ăn uống, nghỉ ngơi hợp lý thì thăm khám thai định kỳ và thực hiện các chẩn đoán trước sinh là rất cần thiết.. Thông qua các xét nghiệm, siêu âm,.. các bác sĩ cho biết thai nhi trong bụng có phát triển khỏe mạnh không, có mắc dị tật bẩm sinh nào không... Hầu hết chị em phụ nữ mang thai đều được bác sĩ khuyến cáo nên thực hiện sàng lọc, chẩn đoán trước sinh tại các cơ sở uy tín. Vì vậy, để trẻ sinh ra hoàn toàn khỏe mạnh các mẹ bầu cần tuân theo đúng những chỉ dẫn của bác sĩ chuyên khoa, thực hiện sàng lọc trước sinh vào những cột mốc quan trọng.."]

GOOGLE_API_KEY = "YOUR_GOOGLE_API_KEY"
GenData = SyntheticData(GOOGLE_API_KEY)
question_answer = await GenData.generate_synthetic_data(chunks, 1)

Metadata

Release files for rag-helper 0.0.8

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-helper 0.0.8
File Size Uploaded Provenance Actions
rag_helper-0.0.8.tar.gz 7.5 kB Without provenance Details for rag_helper-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rag-helper 0.0.8
File Interpreter ABI Platform Actions
rag_helper-0.0.8-py3-none-any.whl Python 3 none any Details for rag_helper-0.0.8-py3-none-any.whl

Total release size: 16.3 kB

Release files / rag_helper-0.0.8.tar.gz

Download URL rag_helper-0.0.8.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dffbd06dca80529a6c8481e2bbb6a67141d5789045103558ba36089c6feeda5f
BLAKE2b-256 checksum
How to use checksums
238ce43dda615b756cd72de02ae9cad2261773710e864eee043a76b4d12bab13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/5.15.146.1-microsoft-standard-WSL2

Release files / rag_helper-0.0.8-py3-none-any.whl

Download URL rag_helper-0.0.8-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0048db2ea48c372ea1f7a46ac5f2e5fde87a4798fcba2523b42ef390a3ed8dc8
BLAKE2b-256 checksum
How to use checksums
304a4b7f832e8a61296ef40df8d25c3a7cce98e8ead340b0912c17eb4680ba26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/5.15.146.1-microsoft-standard-WSL2

Security for rag-helper 0.0.8

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.

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