Skip to content

auschoi96/dspy_multi_agent_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Enable Multi-Agents + Classic ML using Databricks and DSPy!

This repository contains code accompanying the blog [Enable Multi-Agents + Classic ML using Databricks and DSPy!] https://medium.com/@austinchoi/enable-multi-agents-classic-ml-using-databricks-and-dspy-918f78c16e3a

This is primarily an educational demonstration of how you can design Agents to work together to answer a wide variety of questions or figure out and complete tasks in the face of adversity.

Through this demo, you should learn the following:

  1. You should be using LLMs + Traditional ML (The Vision Agent will demonstrate this)
  2. Tool calling is almost mandatory to ensure up to date and accurate information (The Pokemon Agent will demonstrate this)
  3. We can make RAG better with Agents (The Databricks Agent will demonstrate)

A chatbot is not the only use case for this code. In fact, it is likely other Use Case like ETL pipelines would benefit more from this solution. However, to demonstrate the interaction between agents, it is show through a Gradio Interface

Below is a diagram of how the Agents work together to answer a user's question: dspy_agent_diagram.png

Code

Multi-Agent Recreation Much of the set up occurs in the config file to set up your Databricks Environment

config This folder contains the notebooks and assets that will help recreate the demo one for one

License

Library License
dspy MIT
langchain MIT
lxml BSD-3
transformers Apache 2.0
unstructured Apache 2.0
llama-index MIT
tesseract Apache 2.0
poppler-utils MIT
textstat MIT
tiktoken MIT
evaluate Apache 2.0
torch BSS-3
pytesseract Apache 2.0
pillow MIT-CMU
pypdf BSD-3
llama-index MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages