Clelia (Astra) Bertelli 56960ef6e6 Merge pull request #1 from run-llama/clelia/fix-readme
Fixes and Workflows
2025-06-24 21:03:59 +02:00
2025-06-24 21:01:01 +02:00
2025-06-24 16:41:25 +02:00
2025-06-24 16:41:25 +02:00
2025-06-24 16:41:25 +02:00
2025-06-24 16:41:25 +02:00
2025-06-22 22:09:03 +02:00
2025-06-23 15:57:44 +02:00
2025-06-22 22:09:03 +02:00
2025-06-22 22:09:03 +02:00
2025-06-24 16:41:25 +02:00
2025-06-24 21:01:01 +02:00
2025-06-24 16:41:25 +02:00
2025-06-24 21:01:01 +02:00
2025-06-24 16:41:25 +02:00

Agents Observability Demo

With LlamaIndex and OpenTelemetry!

This demo showcases a solution for agent observability and tracing by building on the LlamaIndex x OpenTelemetry integration.

It traces the activity of an agent capable of extracting information from a University course syllabus (with LlamaExtract) and answer questions about it (with a LlamaCloud Index in the backend).

The agents tool are served via MCP!

Get it up and running!

Get the GitHub repository:

git clone https://github.com/run-llama/agents-observability-demo

Install dependencies:

cd agents-observability-demo/
uv sync

And then modify the .env.example file with your API keys and move it to .env.

mv .env.example .env

Now, you will have to execute the following scripts:

uv run tools/create_llama_extract_agent.py
uv run tools/create_llama_cloud_index.py

You're ready to set up the app!

Launch a local Postgres database + a local Jaeger instance to record OpenTelemetry traces:

docker compose up -d

Run the MCP server:

uv run src/agents_observability_demo/server.py

In a separate window, run the websocket:

uv run src/agents_observability_demo/websocket.py

Last, run the Gradio frontend, and start exploring at http://localhost:7860:

uv run src/agents_observability_demo/main.py

Contributing

Contribute to this project following the guidelines.

License

This project is provided under an MIT License.

S
Description
Observe your agents with OpenTelemetry
Readme MIT 279 KiB
Languages
Python 100%