When use the index.as_query_engine.query("questions"), How do I trace the node that made llm to make the response? I would like it not only answer the question by also give its source.
Will give you the source text that have been used to generate the response using LLM. You can pass legth parameter in get_formatted_sources else it takes default 100 characters length.