Modules/RAG
ChatEngine
The chat engine is a quick and simple way to chat with the data in your index.
In short, you can use the chat engine by calling index.asChatEngine()
. It will return a ContextChatEngine
to start chatting.
You can also pass in options to the chat engine.
The chat
function also supports streaming, just add stream: true
as an option: