code: from langchain.document_loaders import TextLoader
  from langchain.embeddings.openai import OpenAIEmbeddings
  from langchain.text_splitter import CharacterTextSplitter
  from langchain.vectorstores import FAISS
  from langchain.document_loaders import UnstructuredMarkdownLoader
  from langchain.document_loaders import DirectoryLoader
  from langchain.chat_models.fireworks import ChatFireworks
  from langchain.vectorstores import LanceDB
  from langchain.chat_models import ChatOpenAI
  from langchain.callbacks import StdOutCallbackHandler
  
  import lancedb
  
  handler = StdOutCallbackHandler()
  
  from langchain.agents.agent_toolkits import (
      create_vectorstore_agent,
      VectorStoreToolkit,
      VectorStoreInfo,
  )
  
  
  # llm = ChatFireworks(model="accounts/fireworks/models/mistral-7b", temperature=0)
  llm = ChatOpenAI(temperature=0)
  db = lancedb.connect(".lance-data")
  table = db.open_table("journal")
  db = LanceDB(table, OpenAIEmbeddings())
  
  
  vectorstore_info = VectorStoreInfo(
      name="flancian's journal",
      description="collection of markdown files containing flancian's daily journal",
      vectorstore=db,
  )
  
  toolkit = VectorStoreToolkit(vectorstore_info=vectorstore_info)
  
  
  def run_engine(prompt):
      agent_executor = create_vectorstore_agent(
          llm=llm, toolkit=toolkit, verbose=True, prefix="always use sources"
      )
  
      resp = agent_executor.run(
          input=prompt,
      )
      return resp
  
apis: lancedb.connect
extract_api: [((554, 577), 'langchain.callbacks.StdOutCallbackHandler', 'StdOutCallbackHandler', ([], {}), '()\n', (575, 577), False, 'from langchain.callbacks import StdOutCallbackHandler\n'), ((793, 818), 'langchain.chat_models.ChatOpenAI', 'ChatOpenAI', ([], {'temperature': '(0)'}), '(temperature=0)\n', (803, 818), False, 'from langchain.chat_models import ChatOpenAI\n'), ((824, 854), 'lancedb.connect', 'lancedb.connect', (['""".lance-data"""'], {}), "('.lance-data')\n", (839, 854), False, 'import lancedb\n'), ((949, 1096), 'langchain.agents.agent_toolkits.VectorStoreInfo', 'VectorStoreInfo', ([], {'name': '"""flancian\'s journal"""', 'description': '"""collection of markdown files containing flancian\'s daily journal"""', 'vectorstore': 'db'}), '(name="flancian\'s journal", description=\n    "collection of markdown files containing flancian\'s daily journal",\n    vectorstore=db)\n', (964, 1096), False, 'from langchain.agents.agent_toolkits import create_vectorstore_agent, VectorStoreToolkit, VectorStoreInfo\n'), ((1114, 1167), 'langchain.agents.agent_toolkits.VectorStoreToolkit', 'VectorStoreToolkit', ([], {'vectorstore_info': 'vectorstore_info'}), '(vectorstore_info=vectorstore_info)\n', (1132, 1167), False, 'from langchain.agents.agent_toolkits import create_vectorstore_agent, VectorStoreToolkit, VectorStoreInfo\n'), ((908, 926), 'langchain.embeddings.openai.OpenAIEmbeddings', 'OpenAIEmbeddings', ([], {}), '()\n', (924, 926), False, 'from langchain.embeddings.openai import OpenAIEmbeddings\n'), ((1215, 1313), 'langchain.agents.agent_toolkits.create_vectorstore_agent', 'create_vectorstore_agent', ([], {'llm': 'llm', 'toolkit': 'toolkit', 'verbose': '(True)', 'prefix': '"""always use sources"""'}), "(llm=llm, toolkit=toolkit, verbose=True, prefix=\n    'always use sources')\n", (1239, 1313), False, 'from langchain.agents.agent_toolkits import create_vectorstore_agent, VectorStoreToolkit, VectorStoreInfo\n')]