No project description provided
Project description
DataToWord
Built With
專案目的
這是一個將資料轉換成文字的專案,可以協助你在進行 RAG 的過程中,將資料類型的檔案轉換成文字,方便後續進行段落查詢。
目前支援的檔案有:
- CSV
Quick Start
- 建立 LangChain Document
from datatoword import DataToWord
with open('data.csv', 'rb') as file:
file_binary_content = file.read()
data_to_word = DataToWord()
data_to_word.create_documents(
file_name='data.csv',
file_description='這是一個測試的檔案',
file_binary_content=file_binary_content
)
- 取得轉換後的內文
from datatoword import DataToWord
with open('data.csv', 'rb') as file:
file_binary_content = file.read()
data_to_word = DataToWord()
data_to_word.create_content(
file_name='data.csv',
file_description='這是一個測試的檔案',
file_binary_content=file_binary_content
)
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
datatoword-0.3.0.tar.gz
(8.7 kB
view details)
Built Distribution
File details
Details for the file datatoword-0.3.0.tar.gz
.
File metadata
- Download URL: datatoword-0.3.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38cf305877b64f25a21fdf9954376dacf6a2f49e4abaed6696c338671a6d4ba |
|
MD5 | b4fbdd739ebe51040775147e2624bdbb |
|
BLAKE2b-256 | aeabbb42801ae62592c67cf48fceb2c7abe294dcf7e85c82f2a1c2aac047d864 |
File details
Details for the file datatoword-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: datatoword-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d88c88a885344e9371f6527cea920dd992a382424c938d6638c737625336ad |
|
MD5 | 509f9bcad5108333cbddbbfc85c5a495 |
|
BLAKE2b-256 | d9472ea12ca7e2b4854704794993e4b0afb8ddd4f5b08b4aba1f6f0c5009736b |