Embedchain is a Data Platform for LLMs - load, index, retrieve, and sync any unstructured data. Using embedchain, you can easily create LLM powered apps over any data.
Install embedchain python package:
pip install embedchain
Creating an app involves 3 steps:
⚙️ Import app instance
from embedchain import Pipeline as App app = App()
🗃️ Add data sources
app.add("https://en.wikipedia.org/wiki/Elon_Musk") app.add("https://www.forbes.com/profile/elon-musk") # app.add("path/to/file/elon_musk.pdf")
💬 Ask questions, chat, or search through your data with ease
app.query("What is the net worth of Elon Musk today?") # Answer: The net worth of Elon Musk today is $258.7 billion.
🚀 Seamlessly launch your App on the Embedchain Platform!
app.deploy() # 🔑 Enter your Embedchain API key. You can find the API key at https://app.embedchain.ai/settings/keys/ # ec-xxxxxx # 🛠️ Creating pipeline on the platform... # 🎉🎉🎉 Pipeline created successfully! View your pipeline: https://app.embedchain.ai/pipelines/xxxxx # 🛠️ Adding data to your pipeline... # ✅ Data of type: web_page, value: https://www.forbes.com/profile/elon-musk added successfully.
Putting it together, you can run your first app using the following Google Colab. Make sure to set the
OPENAI_API_KEY 🔑 environment variable in the code.
Was this page helpful?