I have a .csv file with hundreds of data, I know that the best option is to make chunks and send to chatgpt, but I need all the context of it to ask about information that is matched.
How can I do it?, by each chunk I need to make an API call?.
I though that, but I need to retrieve information about a page and fill it in a .csv file and it can change very often, if I upload a file and replace it in my app each time, problems with sincronization will happen.
if I use embeddings in execution time the resources will be costs and low.
In the mean-time a code based solution that handles every aspect of question answering along with retrieval can be implemented and the data can be fetched from csv simply using code that’s generated by the model.
If you own the data source or if there’s an event handler dealing with data changes, you can directly update the csv file in real-time.