well if you intend to build a custom searchable index then chatgpt api will be very useful
- user adds text or uploads pdf
- ocr reads pdf/uploads and extracts text
- chatgpt then summarizes text, extracts keywords and name and creates an index item
- user searches index items and relevant index items are returned, user opens each item to see the detail
algolia is a great search tool and will give you lightning fast results that can also be fuzzy/loosely relevant to the content
by splitting the data in 2 - index and detail - you essentially create a very lightweight searchable index that then links to the relevant detail items