Ask questions to an extremely large document
This workflows uses the concept of Retrieval Augmented Generation to answer questions using information in a large document. In most cases, we can pass full contents of the document to Ask AI block. However, when the document is large, it can exceed the context window of the underlying AI model. In such a case, we first use similarity search to retrieve relevant information, and then pass only the relevant information to the Ask AI block as context.