Help needed: how to make AI search and cite knowledge efficiently?

thanks! would you mind walking me through my doubts before I dive into a tool?

What are the macroscopic steps invoved if I decided to go with llamaIndex? as I said , my use case is not a chatbot. is a mini-perplexity, no followup question.

I want to call “it” via an entry point, passing it 1000 articles+ user prefs, and get as output 20 ids of most relevant articles.