})chat_model.predict("My favorite color is blue.")import time; time.sleep(5)  # wait for system to save fact via auto saveprint(chat_model.predict("What is my favorite color?"))Enable Retrieval Augmented Generation‚ÄãFirst, create a document context in the Remembrall dashboard. Paste in the document texts or upload documents as PDFs to be processed. Save the Document Context ID and insert it as shown below.from langchain.chat_models import ChatOpenAIchat_model = ChatOpenAI(openai_api_base="https://remembrall.dev/api/openai/v1",                        model_kwargs={                            "headers":{                                "x-gp-api-key": "remembrall-api-key-here",                                "x-gp-context": "document-context-id-goes-here",                            }                        })print(chat_model.predict("This is a question that can be answered with my document."))PreviousRedisNextRocksetWhat is Remembrall?SetupEnable Long Term MemoryEnable Retrieval Augmented GenerationCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This page covers how to use the Remembrall ecosystem within LangChain.
This page covers how to use the Remembrall ecosystem within LangChain. ->: })chat_model.predict("My favorite color is blue.")import time; time.sleep(5)  # wait for system to save fact via auto saveprint(chat_model.predict("What is my favorite color?"))Enable Retrieval Augmented Generation‚ÄãFirst, create a document context in the Remembrall dashboard. Paste in the document texts or upload documents as PDFs to be processed. Save the Document Context ID and insert it as shown below.from langchain.chat_models import ChatOpenAIchat_model = ChatOpenAI(openai_api_base="https://remembrall.dev/api/openai/v1",                        model_kwargs={                            "headers":{                                "x-gp-api-key": "remembrall-api-key-here",                                "x-gp-context": "document-context-id-goes-here",                            }                        })print(chat_model.predict("This is a question that can be answered with my document."))PreviousRedisNextRocksetWhat is Remembrall?SetupEnable Long Term MemoryEnable Retrieval Augmented GenerationCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.