Logging Data Via Python
Learn how to manually log your data via our Python Logger
You can use our Python Logger to log your data to Galileo with the ObserveWorkflows module.
Here’s an example of how to integrate the logger into your llm app:
First you can create your ObserveWorkflows object with your existing project.
Then you can use the workflows object to log your workflows.
You can also do this with your RAG workflows:
Logging Agent Workflows
We also support logging Agent workflows. Here’s an example of how you can log an Agent workflow:
Logging Retriever and LLM Metadata
If you want to log more complex inputs and outputs to your nodes, we provide support for that as well. For retriever outputs we support the Document object.
For LLM inputs and outputs we support the Message object.
Often times an llm interaction consists of multiple messages. You can log these as well.
Logging Nested Workflows
If you have more complex workflows that involve nesting workflows within workflows, we support that too. Here’s an example of how you can log nested workflow using conclude to step out of the nested workflow, back into the base workflow: