Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Hi guys quick question
Hi guys quick question
Inactive
0
Follow
j
joao_pt
2 years ago
Β·
Hi guys quick question...
Is Llama Index able to transform between
Unstructured data
(ex: raw text) --- into --->
Structured Data
(ex: JSON) ?
L
j
2 comments
Share
Open in Discord
L
Logan M
2 years ago
Sure is. There is various levels to this
Use a raw program to extract structured data (it extracts into pydnatic objects, but thats easy enough to convert into json or other structures)
https://gpt-index.readthedocs.io/en/latest/how_to/structured_outputs/pydantic_program.html
Modify the prompt templates and ask the LLM to write the extracted JSON. This will probably work best with the
response_mode="accumulate"
mode
Use a SQL index to extract data into tables from documents
https://gpt-index.readthedocs.io/en/latest/guides/tutorials/sql_guide.html#inferring-structured-datapoints
j
joao_pt
2 years ago
thanks a lot @Logan M for the direction! π
Add a reply
Sign up and join the conversation on Discord
Join on Discord