together-cookbook  by togethercomputer

Cookbook for open-source models via Together AI

created 9 months ago
991 stars

Top 38.2% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a collection of Python and JavaScript code examples and guides for developers to leverage open-source AI models through the Together AI platform. It aims to simplify the integration of advanced AI capabilities like complex agent workflows, fine-tuning, and retrieval-augmented generation (RAG) into custom applications.

How It Works

The cookbook offers practical, copy-pasteable code snippets demonstrating various AI patterns. It utilizes the Together AI API to access and orchestrate a range of open-source models, enabling users to build sophisticated applications without managing infrastructure. The examples cover sequential, conditional, parallel, and iterative agent designs, alongside fine-tuning techniques like LoRA and DPO, and RAG implementations for enhanced context and search.

Quick Start & Requirements

  • Install/Run: Copy code snippets into your projects.
  • Prerequisites: A Together AI API key is required. Examples are primarily in Python/JS.
  • Resources: Sign up for a free Together AI API key.
  • Docs: Together AI developer documentation

Highlighted Details

  • Demonstrates advanced agent workflows including serial chains, conditional routing, parallel execution, and orchestration.
  • Provides comprehensive guides for fine-tuning open-source models, including LoRA, DPO, and continual fine-tuning for specific tasks like long context and conversation handling.
  • Features various Retrieval-Augmented Generation (RAG) implementations, including multimodal RAG with image data and RAG with reranking for improved search accuracy.
  • Showcases miscellaneous use cases such as a code interpreter, embedding visualization, and PDF-to-podcast generation.

Maintenance & Community

  • Contributions are welcomed via pull requests or Discord.
  • Community support is available on Together AI Discord.

Licensing & Compatibility

  • The repository itself is likely under a permissive license (e.g., MIT, Apache 2.0) given its nature as a collection of examples, but specific model licenses used within the examples may vary.
  • Compatible with any programming language supporting the Together API.

Limitations & Caveats

The effectiveness of the examples is dependent on having a Together AI API key and understanding the underlying AI concepts. Specific model performance and availability may vary.

Health Check
Last commit

1 week ago

Responsiveness

1+ week

Pull Requests (30d)
1
Issues (30d)
2
Star History
105 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Joe Walnes Joe Walnes(Head of Experimental Projects at Stripe), and
5 more.

LibreChat by danny-avila

0.8%
29k
Enhanced ChatGPT clone for self-hosting
created 2 years ago
updated 1 day ago
Feedback? Help us improve.