How to get answer from api which trained ai with own txt or pdf file?

How to get answer from api which trained ai with own txt or pdf file?
But txt file so larga like 50k+ words how can i train ai

The technique you are looking for is called RAG (Retrieval Augmented Generation) If you do a quick search on the forum you will find many topics and discussions on the topic, you can also make use of the assistants feature offered by OpenAI https://platform.openai.com/docs/assistants/how-it-works

1 Like