Rename embedchain to mem0 and open sourcing code for long term memory (#1474)
Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com>
This commit is contained in:
15
embedchain/examples/private-ai/privateai.py
Normal file
15
embedchain/examples/private-ai/privateai.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user