Skip to content

Commit

Permalink
Add tutorials and guides for LangChain (mlflow#10770)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Wilson <[email protected]>
  • Loading branch information
BenWilson2 authored Jan 6, 2024
1 parent 2782a01 commit 2766a80
Show file tree
Hide file tree
Showing 14 changed files with 2,269 additions and 147 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 53 additions & 27 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,54 +84,91 @@ Explore the guides and tutorials below to start your journey!
LLM Guides and Tutorials
^^^^^^^^^^^^^^^^^^^^^^^^

MLflow Native flavors for GenAI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. raw:: html

<section>
<article class="simple-grid">
<div class="simple-card">
<a href="llms/prompt-engineering/index.html" >
<a href="llms/transformers/index.html" >
<div class="header">
Guide to the MLflow Prompt Engineering UI
🤗 Transformers in MLflow
</div>
<p>
Explore the features and functions of MLflow's Prompt Engineering UI for development, testing, evaluation, and
deployment of validated prompts for your LLM use cases.
Learn how to leverage the HuggingFace Transformers package with MLflow. Explore multiple tutorials and examples that leverage
the power of state-of-the-art LLMs.
</p>
</a>
</div>
<div class="simple-card">
<a href="llms/deployments/index.html" >
<a href="llms/openai/index.html" >
<div class="header">
Guide for the MLflow Deployments for LLMs
OpenAI in MLflow
</div>
<p>
Learn how to configure, setup, deploy, and use the MLflow Deployments for testing and production use cases of both
SaaS and custom open-source LLMs.
Learn how to leverage the state-of-the-art LLMs offered by OpenAI directly as MLflow flavors to build and track useful language-based
applications.
</p>
</a>
</div>
<div class="simple-card">
<a href="llms/transformers/index.html" >
<a href="llms/langchain/index.html" >
<div class="header">
Guide to using 🤗 Transformers in MLflow
LangChain in MLflow
</div>
<p>
Learn how to leverage the HuggingFace Transformers package with MLflow. Explore multiple tutorials and examples that leverage
the power of state-of-the-art LLMs.
Learn how to build both simple and complex LLM-powered applications with LangChain, using MLflow to simplify deployment, dependency
management, and service integration.
</p>
</a>
</div>
<div class="simple-card">
<a href="llms/openai/index.html" >
<a href="llms/sentence-transformers/index.html" >
<div class="header">
Guide to using OpenAI in MLflow
Sentence Transformers in MLflow
</div>
<p>
Learn how to leverage the state-of-the-art LLMs offered by OpenAI directly as MLflow flavors to build and track useful language-based
applications.
Learn how to leverage the advanced capabilities with semantic sentence embeddings within the Sentence Transformers package, using MLflow to simplify
inference, create custom deployable applications, and more.
</p>
</a>
</div>
</article>
</section>


General GenAI Guides
~~~~~~~~~~~~~~~~~~~~

.. raw:: html

<section>
<article class="simple-grid">
<div class="simple-card">
<a href="llms/prompt-engineering/index.html" >
<div class="header">
Guide to the MLflow Prompt Engineering UI
</div>
<p>
Explore the features and functions of MLflow's Prompt Engineering UI for development, testing, evaluation, and
deployment of validated prompts for your LLM use cases.
</p>
</a>
</div>
<div class="simple-card">
<a href="llms/deployments/index.html" >
<div class="header">
Guide for the MLflow Deployments for LLMs
</div>
<p>
Learn how to configure, setup, deploy, and use the MLflow Deployments for testing and production use cases of both
SaaS and custom open-source LLMs.
</p>
</a>
</div>

<div class="simple-card">
<a href="llms/llm-evaluate/index.html" >
<div class="header">
Expand Down Expand Up @@ -174,17 +211,6 @@ LLM Guides and Tutorials
</p>
</a>
</div>
<div class="simple-card">
<a href="llms/sentence-transformers/index.html" >
<div class="header">
Guide to using Sentence Transformers in MLflow
</div>
<p>
Learn how to leverage the advanced capabilities with semantic sentence embeddings within the Sentence Transformers package, using MLflow to simplify
inference, create custom deployable applications, and more.
</p>
</a>
</div>
</article>
</section>

Expand Down
30 changes: 13 additions & 17 deletions docs/source/llms/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Select the integration below to read the documentation on how to leverage MLflow
</div>
</a>

<a href="../models.html#langchain-langchain-experimental">
<a href="langchain/index.html">
<div class="logo-card">
<img src="../_static/images/logos/langchain-logo.png" alt="LangChain Logo"/>
</div>
Expand Down Expand Up @@ -299,6 +299,17 @@ Native Integration Guides and Tutorials
</p>
</a>
</div>
<div class="simple-card">
<a href="langchain/index.html">
<div class="header">
LangChain
</div>
<p>
Learn about MLflow's native integration with LangChain and see example notebooks that leverage
MLflow and LangChain to build LLM-backed applications.
</p>
</a>
</div>
<div class="simple-card">
<a href="sentence-transformers/index.html">
<div class="header">
Expand All @@ -320,22 +331,7 @@ Native Integration Guides and Tutorials
transformers/index
openai/index
sentence-transformers/index

Native Integration Examples
^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you'd like to directly explore code examples for how to get started with using our official library integrations, you can navigate
directly to our up-to-date examples on GitHub below:

* **langchain**

* `Logging and using a Chain <https://github.com/mlflow/mlflow/blob/master/examples/langchain/simple_chain.py>`_
* `Logging and using an Agent <https://github.com/mlflow/mlflow/blob/master/examples/langchain/simple_agent.py>`_
* `Logging and using a Retriever Chain <https://github.com/mlflow/mlflow/blob/master/examples/langchain/retriever_chain.py>`_ :sup:`1`
* `Logging and using a Retrieval QA Chain <https://github.com/mlflow/mlflow/blob/master/examples/langchain/retrieval_qa_chain.py>`_ :sup:`1`

:sup:`1` Demonstrates the use of Retrieval Augmented Generation (RAG) using a Vector Store

langchain/index

`LLM Tracking in MLflow <llm-tracking/index.html>`_
---------------------------------------------------
Expand Down
Loading

0 comments on commit 2766a80

Please sign in to comment.