Find answers from the community

Updated last year

Metadata

Do you add metadata to help llm model in RAG?
W
M
4 comments
Yes, metadata can contain example: links or any other useful information related to documents. That can help RAG apps to synthesize response better.
Am I on the right path? For instance:

Assets: Cars
| date | din | document | account | acc_name | description | debit | credit |
...

Assets: Houses
| date | din | document | account | acc_name | description | debit | credit |
...

document = loader.load_data(file=Path('./markdown_table.md'))
document[0].metadata['assets'] = 'cars'
document[1].metadata['assets'] = 'houses'
Yes it's correct , if the first document is related to car and second one is related to houses.
Thank you very much.πŸ‘
Add a reply
Sign up and join the conversation on Discord