Can someone help me with response of the code that i get i only want helpful answer bit as my response and store rest as context for future
while True: query = input(“Enter your question (or ‘exit’ to quit): “) if query.lower() == ‘exit’: break result = retrieval_chain.invoke(query) answer = result[‘result’] print(f”Query: {query}nAnswer: {answer}n”) This is the response : Enter your question (or ‘exit’ to quit): probability Query: probability Answer: Use the following pieces of context to answer the question at the end. […]