Skip to main content

No project description provided

Project description

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)

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

rag_helper-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rag_helper-0.0.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file rag_helper-0.0.4.tar.gz.

File metadata

  • Download URL: rag_helper-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for rag_helper-0.0.4.tar.gz
Algorithm Hash digest
SHA256 771ed4c7f0f00bd3a95f0f8eec3d358eb700340e21dae40f4c4d3583badedda4
MD5 d8c374fb1be640e0314e357ef9af2cdf
BLAKE2b-256 16f504860d883491bc63759bb09fec07668626c1bee9ea16f0f035c76926c8ad

See more details on using hashes here.

File details

Details for the file rag_helper-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: rag_helper-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for rag_helper-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6f7e5220e985b096615dee78ad9a0a0232ae3d637ae35915f69853d7a8d8cee5
MD5 b209fe3bd3ebef420f6f7edc6b13830b
BLAKE2b-256 e6a85f21dff7db769002e998336f82ba57f7f4b3ec48bbf03df9c3dc6c27368d

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