privateai.py 405 B

123456789101112131415
  1. from embedchain import App
  2. app = App.from_config("config.yaml")
  3. app.add("/path/to/your/folder", data_type="directory")
  4. while True:
  5. user_input = input("Enter your question (type 'exit' to quit): ")
  6. # Break the loop if the user types 'exit'
  7. if user_input.lower() == "exit":
  8. break
  9. # Process the input and provide a response
  10. response = app.chat(user_input)
  11. print(response)