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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_helper-0.0.6.tar.gz
  • Upload date:
  • Size: 7.4 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.6.tar.gz
Algorithm Hash digest
SHA256 1b6c18dd539db7ebaa745ea3836a57f029c92c4303d1a98e37cf7dabf357e729
MD5 0e8947aafa02f387f9b83bec6329e4a2
BLAKE2b-256 9903e8f2cfc1188acc0654b8417afdcf79d1908ff7c326fc239ea31346b77e5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rag_helper-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9452aef0043dfc5f54d0c45d0262946c53a7166ef7bb9fa9cf56de92f6e371
MD5 f00b93b68c72a0b35e8d7c65f356dd5e
BLAKE2b-256 6d2efb213949a4d445ad8f55ad67b11bf78cf53950060d2fa359e3178bef3df5

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