mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
22.33k stars 2.06k forks source link

[Typo] Official Website Examples #360

Closed ZoneTwelve closed 1 year ago

ZoneTwelve commented 1 year ago

🐛 Describe the bug

info First of all, this issue might not be here, but I can't find a better place to report this issue.

The official website example has a typo error in Line:7 response = elon_bot.query("How many companies does Elon Musk run?") That should be response = elon_musk_bot.query( question )

import os

from embedchain Import App

os.environ["OPENAI_API_KEY"] = "xxx"
elon_musk_bot = App()

# Embed Online Resources
elon_musk_bot.add("web_page", "https://en.wikipedia.org/wiki/Elon_Musk")
elon_musk_bot.add("web_page", "https://www.tesla.com/elon-musk")

response = elon_bot.query("How many companies does Elon Musk run?")
print(response)
# Answer: 'Elon Musk runs four companies: Tesla, SpaceX, Neuralink, and The Boring Company.'
Screenshot 2023-07-24 at 3 45 52 PM
ZoneTwelve commented 1 year ago

The content I was mention is here quickstart