together-cookbook  by togethercomputer

Cookbook for open-source models via Together AI

Created 1 year ago
1,171 stars

Top 32.4% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
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 month ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
14 more.

txtai by neuml

0%
13k
All-in-one AI framework for semantic search, LLM orchestration, and language model workflows
Created 6 years ago
Updated 1 day ago
Feedback? Help us improve.