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.8.tar.gz (7.5 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.8-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_helper-0.0.8.tar.gz
  • Upload date:
  • Size: 7.5 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.8.tar.gz
Algorithm Hash digest
SHA256 dffbd06dca80529a6c8481e2bbb6a67141d5789045103558ba36089c6feeda5f
MD5 1aeab1c2b9a92c620dba1412961f9193
BLAKE2b-256 238ce43dda615b756cd72de02ae9cad2261773710e864eee043a76b4d12bab13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rag_helper-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0048db2ea48c372ea1f7a46ac5f2e5fde87a4798fcba2523b42ef390a3ed8dc8
MD5 f587685cf9b0a8a56fee7cd2e91767bf
BLAKE2b-256 304a4b7f832e8a61296ef40df8d25c3a7cce98e8ead340b0912c17eb4680ba26

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