Yes. Basically llamaindex uses similarity algo
Flow in simple terms is like that
- you provide the docs
- docs are chunked into parts
- vectors are created for these chunks
- when you ask a query , most relatable chunk gets picked up
- chunk + your query is passed to LLM to generate answrr