You can provide those to LangChain in two ways:Include in your environment these two variables: LLM_RAILS_API_KEY, LLM_RAILS_DATASTORE_ID.For example, you can set these variables using os.environ and getpass as follows:import osimport getpassos.environ["LLM_RAILS_API_KEY"] = getpass.getpass("LLMRails API Key:")os.environ["LLM_RAILS_DATASTORE_ID"] = getpass.getpass("LLMRails Datastore Id:")Provide them as arguments when creating the LLMRails vectorstore object:vectorstore = LLMRails(    api_key=llm_rails_api_key,    datastore_id=datastore_id)Adding text‚ÄãFor adding text to your datastore first you have to go to Datastores page and create one. Click Create Datastore button and choose a name and embedding model for your datastore. Then get your datastore id from newly created  datatore settings.from langchain.vectorstores import LLMRailsimport osos.environ['LLM_RAILS_DATASTORE_ID'] = 'Your datastore id 'os.environ['LLM_RAILS_API_KEY'] = 'Your API Key'llm_rails = LLMRails.from_texts(['Your text here'])Similarity search‚ÄãThe simplest scenario for using LLMRails is to perform a similarity search. query = "What do you plan to do about national security?"found_docs = llm_rails.similarity_search(    query, k=5)print(found_docs[0].page_content)    Others may not be democratic but nevertheless depend upon a rules-based international system.        Yet what we share in common, and the prospect of a freer and more open world, makes such a broad coalition necessary and worthwhile.        We will listen to and consider ideas that our partners suggest about how to do this.        Building this inclusive coalition requires reinforcing the multilateral system to uphold the founding principles of the United Nations, including respect for international law.        141 countries expressed support at the United Nations General Assembly for a resolution condemning Russia‚Äôs unprovoked aggression against Ukraine.        We continue to demonstrate this approach by engaging all regions
LLMRails is a API platform for building GenAI applications. It provides an easy-to-use API for document indexing and querying that is managed by LLMRails and is optimized for performance and accuracy.
LLMRails is a API platform for building GenAI applications. It provides an easy-to-use API for document indexing and querying that is managed by LLMRails and is optimized for performance and accuracy. ->: You can provide those to LangChain in two ways:Include in your environment these two variables: LLM_RAILS_API_KEY, LLM_RAILS_DATASTORE_ID.For example, you can set these variables using os.environ and getpass as follows:import osimport getpassos.environ["LLM_RAILS_API_KEY"] = getpass.getpass("LLMRails API Key:")os.environ["LLM_RAILS_DATASTORE_ID"] = getpass.getpass("LLMRails Datastore Id:")Provide them as arguments when creating the LLMRails vectorstore object:vectorstore = LLMRails(    api_key=llm_rails_api_key,    datastore_id=datastore_id)Adding text‚ÄãFor adding text to your datastore first you have to go to Datastores page and create one. Click Create Datastore button and choose a name and embedding model for your datastore. Then get your datastore id from newly created  datatore settings.from langchain.vectorstores import LLMRailsimport osos.environ['LLM_RAILS_DATASTORE_ID'] = 'Your datastore id 'os.environ['LLM_RAILS_API_KEY'] = 'Your API Key'llm_rails = LLMRails.from_texts(['Your text here'])Similarity search‚ÄãThe simplest scenario for using LLMRails is to perform a similarity search. query = "What do you plan to do about national security?"found_docs = llm_rails.similarity_search(    query, k=5)print(found_docs[0].page_content)    Others may not be democratic but nevertheless depend upon a rules-based international system.        Yet what we share in common, and the prospect of a freer and more open world, makes such a broad coalition necessary and worthwhile.        We will listen to and consider ideas that our partners suggest about how to do this.        Building this inclusive coalition requires reinforcing the multilateral system to uphold the founding principles of the United Nations, including respect for international law.        141 countries expressed support at the United Nations General Assembly for a resolution condemning Russia‚Äôs unprovoked aggression against Ukraine.        We continue to demonstrate this approach by engaging all regions