Chat Engines

1. How to make bot retain context while answering, Can I do that with LlamaIndex?

Yes you can, Llamaindex provides chat engines that you can use to retain context and answer as per the context. You can find more here Chat Engines.

2. How to use Data Agent with Chat engine?

To use data Agents with Chat engine you have to set the chat mode while initializing the chat engine. Find more here Data Agents with Chat Engine