Loading
Text
from fonky.gemini.tools import load_text
documents = load_text(
path='data/sample.txt',
encoding='utf-8' )
print( documents )
PDF
from fonky.gemini.tools import load_pdf
documents = load_pdf(
path='data/report.pdf',
mode='single',
extract='plain',
include=False,
format='markdown-img' )
print( documents )
Word
from fonky.gemini.tools import load_word
documents = load_word(
path='data/report.docx' )
print( documents )
CSV
from fonky.gemini.tools import load_csv
documents = load_csv(
path='data/sample.csv' )
print( documents )
Excel
from fonky.gemini.tools import load_excel
documents = load_excel(
path='data/sample.xlsx' )
print( documents )
JSON
from fonky.gemini.tools import load_json
documents = load_json(
path='data/sample.json' )
print( documents )