Back to Mem0

Embed Online Resources

embedchain/notebooks/embedchain-chromadb-server.ipynb

2.0.1756 B
Original Source

Embedchain chromadb server example

This notebook shows an example of how you can use embedchain with chromdb (server).

First, run chroma inside docker using the following command:

bash
git clone https://github.com/chroma-core/chroma
cd chroma && docker-compose up -d --build
python
import os
from embedchain import App
from embedchain.config import AppConfig


chromadb_host = "localhost"
chromadb_port = 8000

config = AppConfig(host=chromadb_host, port=chromadb_port)
elon_bot = App(config)
python
# Embed Online Resources
elon_bot.add("web_page", "https://en.wikipedia.org/wiki/Elon_Musk")
elon_bot.add("web_page", "https://www.tesla.com/elon-musk")
python
elon_bot.query("How many companies does Elon Musk run?")