Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extelligence-ai/bagel

Repository files navigation

Unlike cat videos, most data are trapped in the physical world. Bagel unlocks them and lets you chat with your physical data—just like you do with ChatGPT. For example:

Is my IMU sensor overheating?

Can’t wait to try it out? 👉 Check out the Quickstart.

🥯 Key Features

  • Ask in plain language: No deep domain expertise needed.
  • Transparent calculations: Deterministic SQL queries. No black-box LLM math.
  • Broad LLM support: Claude Code, Gemini, Cursor, Codex, and more.
  • Dockerized environments: No local dependencies required.
  • Extensible capabilities: Bagel can learn new tricks.
  • Wide format coverage: Missing your data format? Open a ticket.

✅ Supported Data Formats

Industry Formats
Robotics ROS1, ROS2
Drones PX4, ArduPilot, Betaflight
IoT Coming soon...

💬 What Can I Prompt?

You can ask Bagel almost anything. For example:

What’s the correlation between current and voltage in the /spot/status/battery_states topic?

I think the robot hit a pothole. Can you check for sudden deceleration on the z-axis to confirm?

Can you help me tune the PID of my drone?

Time to put Bagel to the test: can it catch a drone doing barrel rolls? Spoiler: 🎉 It totally can.

💡 How Bagel Works

When you ask a question, Bagel analyzes your data source’s metadata and topics to build a high-level understanding.

Based on your prompt, if further inspection is needed, Bagel identifies the most relevant topics and interprets their meaning and structure. Bagel then writes the relevant topic messages to an Apache Arrow file and uses DuckDB to generate and execute queries against it.

This process is repeated as needed, running new queries until Bagel finds the best answer to your question.

LLMs excel at language but struggle with math. Bagel overcomes this by generating deterministic DuckDB SQL queries. These queries are displayed for you to audit, and you can guide Bagel to correct any errors.

⚡️ Quickstart

📋 Prerequisites

Install Docker Desktop, then clone this repo:

git clone https://github.com/Extelligence-ai/bagel.git; cd bagel

🐳 Run with Docker

Open compose.yaml and pick a service based on your need (e.g., ros2-kilted).

docker compose run --service-ports ros2-kilted

Tip

To give Bagel access to your local files, edit compose.yaml before starting Docker: uncomment and update the volumes section under your chosen service.

Your terminal should show output similar to:

INFO: Started server process [86]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

🔗 Connect to an LLM

Once the Bagel MCP server is running, connect it to your preferred LLM. Bagel should work with any MCP-enabled LLM, though some setup may be required. We’ve tested several LLMs—expand the runbooks below for setup instructions.

📚 Setup runbooks for tested LLMs

Can't find your favorite LLM? Open a ticket, and we’ll create a runbook for it.

🚀 Launch and Prompt

Now you're ready to launch your LLM and begin prompting. For example:

Summarize the metadata of the ROS2 bag "./data/sample/ros2/mcap".

🐶 Teach Bagel a New Trick

Bagel learns new capabilities through POML files—a structured set of instructions that describe a "trick," such as computing latency statistics.

✍️ Create a .poml file

For example, let’s define ./src/agent/examples/woof.poml.

<poml>
 <task>
 Count the topics in the data source.
 If the count is odd, say "woof", else say "meow".
 </task>
 <output-format>
 Return the sound, the topic count, and a few cute emojis. Nothing else.
 </output-format>
</poml>

🗣️ Use the capability

Prompt Bagel:

Run the POML capability "./src/agent/examples/woof.poml" on the ROS2 bag "./data/sample/ros2/mcap".

Result:

meow 🐱 4 topics 🐱💤🎯

🫶 Contributing

We’d love your help! The easiest way to support the project is by giving it a ⭐ on GitHub.

Other great ways to contribute:

  • Request new features
  • Report bugs
  • Improve documentation
  • Add new capabilities

Before contributing, please review the guidelines.

Join the conversation in our Discord server — we hang out there regularly.

📄 License

Bagel is open source under the Apache License 2.0.

About

Chat with your robotics, drone, and IoT data — ChatGPT for the physical world.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 5

Languages

AltStyle によって変換されたページ (->オリジナル) /