openai-cookbook
openai-cookbook copied to clipboard
Add a cookbook on RAG observability instrumentation with MLflow
Summary
This PR adds a cookbook on instrumenting observability in a RAG chain using MLflow Tracing, an observability tool that automatically instruments traces.
Motivation
Why are these changes necessary? How do they improve the cookbook?
We think this will be useful for users building more complex apps with OpenAI. Gen AI apps are getting increasingly complex, with lots of layers of abstraction, and it can be difficult for people to figure out what's going wrong in the end-to-end execution. Observability tools help people move forward with confidence, as they can inspect each intermediate step and make sure the inputs / outputs are as they expect.
For new content
When contributing new content, read through our contribution guidelines, and mark the following action items as completed:
- [x] I have added a new entry in registry.yaml (and, optionally, in authors.yaml) so that my content renders on the cookbook website.
- [x] I have conducted a self-review of my content based on the contribution guidelines:
- [x] Relevance: This content is related to building with OpenAI technologies and is useful to others.
- [x] Uniqueness: I have searched for related examples in the OpenAI Cookbook, and verified that my content offers new insights or unique information compared to existing documentation.
- [x] Spelling and Grammar: I have checked for spelling or grammatical mistakes.
- [x] Clarity: I have done a final read-through and verified that my submission is well-organized and easy to understand.
- [x] Correctness: The information I include is correct and all of my code executes successfully.
- [x] Completeness: I have explained everything fully, including all necessary references and citations.
We will rate each of these areas on a scale from 1 to 4, and will only accept contributions that score 3 or higher on all areas. Refer to our contribution guidelines for more details.
Hi @phundal-openai, I saw you reviewed some other cookbooks in the repo, do you have the time to take a look at this one as well?
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR was closed because it has been stalled for 10 days with no activity.