Files
t6_mem0/examples/private-ai/privateai.py
Deven Patel 1976d38b25 [Bugfix] fix chat pdf streamlit example (#1108)
Co-authored-by: Deven Patel <deven298@yahoo.com>
2024-01-03 13:46:44 +05:30

16 lines
405 B
Python

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