Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

2.4 KB
Raw Blame

Burr RAG with LanceDB and dlt document ingestion

This example shows how to build a chatbot with RAG over Substack blogs (or any RSS feed) stored into LanceDB.

burr ui

Burr UI brings a new level of observability to your RAG application via OpenTelemetry

Burr + LanceDB constitute a powerful, but lightweight combo to build retrieval-augmented generative (RAG) agents. Burr allows to define complex agents in an easy-to-understand and debug manner. It also provides all the right features to help you productionize agents including: monitoring, storing interactions, streaming, and a fully-featured open-source UI.

LanceDB makes it easy to swap embedding providers, and hides this concern from the Burr application layer. For this example, we'll be using OpenAI for embedding and response generation.

By leveraging the Burr integration with OpenTelemetry, we get full visibility into the OpenAI API requests/responses and the LanceDB operations for free.

To ingest data, we use dlt and its LanceDB integration, which makes it very simple to query, embed, and store blogs from the web into LanceDB tables.

Content

  • notebook.ipynb contains a tutorial
  • application.py has the burr code for the chatbot
  • ingestion.py has the dlt code for document ingestion
  • utils.py contains functions utility functions to setup OpenTelemetry instrumentation and environment variables