Skip to content

A collection of notebooks/recipes showcasing usecases of open-source models with Together AI.

License

Notifications You must be signed in to change notification settings

togethercomputer/together-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlatformDocsBlogDiscord

Together Cookbook

The Together Cookbook is a collection of code and guides designed to help developers build with open source models using Together AI. The best way to use the recipes is to copy code snippets and integrate them into your own projects!

Contributing

We welcome contributions to this repository! If you have a cookbook you'd like to add, please reach out to use the Discord or open a pull request!

Prerequisites

To make the most of the examples in this cookbook, you'll need a Together AI API key (sign up for free here).

While the code examples are primarily written in Python/JS, the concepts can be adapted to any programming language that supports interaction with the Together API.

Cookbooks

Cookbook Description Open
Agents
Serial Chain Agent Chain multiple LLM calls sequentially to process complex tasks. Colab
Conditional Router Agent Workflow Create an agent that routes tasks to specialized models. Colab
Parallel Agent Workflow Run multiple LLMs in parallel and aggregate their solutions. Colab
Orchestrator Subtask Agent Workflow Break down tasks into parallel subtasks to be executed by LLMs. Colab
Looping Agent Workflow Build an agent that iteratively improves responses Colab
Fine-tuning
LoRA Inference and Fine-tuning Perform LoRA fine-tuning and inference on Together AI. Colab
Long Context Finetuning For Repetition Fine-tuning LLMs to repeat back words in long sequences. Colab
Summarization Long Context Finetuning Long context fine-tuning to improve summarization capabilities. Colab
Conversation Finetuning Fine-tuning LLMs on multi-step conversations. Colab
Retrieval-augmented generation
MultiModal_RAG_with_Nvidia_Deck Multimodal RAG using Nvidia investor slides Colab
Open_Contextual_RAG An implementation of Contextual Retrieval using open models. Colab
Text_RAG Implement text-based Retrieval-Augmented Generation Colab
Search
Multimodal Search and Conditional Image Generation Text-to-image and image-to-image search and condtional image generation. Colab
Embedding_Visualization Visualize vector embeddings Colab
Search_with_Reranking Improve search results with rerankers Colab
Semantic_Search Implement vector search with embedding models Colab
Miscellaneous
Structured_Text_Extraction_from_Images Extract structured text from images Colab
Summarization Evaluation Summarizing and evaluating outputs with LLMs. Colab
PDF_to_Podcast Generate a podcast from PDF content NotebookLM style! Colab
Knowledge_Graphs_with_Structured_Outputs Get LLMs to generate knowledge graphs Colab

Explore Further

Looking for more resources to enhance your experience with open source models? Check out these helpful links:

Additional Resources

About

A collection of notebooks/recipes showcasing usecases of open-source models with Together AI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •