from haystack import Document from haystack.components.retrievers.in_memory import InMemoryBM25Retriever from haystack.document_stores.in_memory import InMemoryDocumentStore documents = [ Document( content="Users reset a forgotten password from Account settings with the password reset email.", meta={"title": "Password reset"}, ), Document( content="Admins configure SAML single sign-on from Security settings with the identity provider metadata URL.", meta={"title": "SAML SSO setup"}, ), Document( content="Billing owners change invoice recipients from Billing settings before the next invoice is issued.", meta={"title": "Invoice recipients"}, ), ]