No project description provided
Project description
Python package for support RAG
Installation
pip install rag-helper
Usage
- 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6c18dd539db7ebaa745ea3836a57f029c92c4303d1a98e37cf7dabf357e729
|
|
| MD5 |
0e8947aafa02f387f9b83bec6329e4a2
|
|
| BLAKE2b-256 |
9903e8f2cfc1188acc0654b8417afdcf79d1908ff7c326fc239ea31346b77e5a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9452aef0043dfc5f54d0c45d0262946c53a7166ef7bb9fa9cf56de92f6e371
|
|
| MD5 |
f00b93b68c72a0b35e8d7c65f356dd5e
|
|
| BLAKE2b-256 |
6d2efb213949a4d445ad8f55ad67b11bf78cf53950060d2fa359e3178bef3df5
|