https://github.com/SylphAI-Inc/AdalFlow Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Topics + AI + DevOps + Security + Software Development Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} SylphAI-Inc / AdalFlow Public * Notifications You must be signed in to change notification settings * Fork 67 * Star 816 AdalFlow: Auto-prompting Any LLM Task Pipeline. adalflow.sylph.ai/ License MIT license 816 stars 67 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 14 * Pull requests 2 * Discussions * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights SylphAI-Inc/AdalFlow This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Last commit Last Name Name message commit date Latest commit History 1,105 Commits .github .github adalflow adalflow benchmarks benchmarks docs docs tutorials tutorials use_cases use_cases .env_example .env_example .gitattributes .gitattributes .gitignore .gitignore .pre-commit-config.yaml .pre-commit-config.yaml CNAME CNAME LICENSE.md LICENSE.md README.md README.md poetry.lock poetry.lock pyproject.toml pyproject.toml View all files Repository files navigation * README * MIT license AdalFlow logo Try Quickstart in Colab All Documentation | Models | Retrievers | Agents | Trainer & Optimizers PyPI Version GitHub stars Open Issues License discord-invite [?] The Library to Build and Auto-optimize LLM Applications [?] Why AdalFlow? Embracing a design philosophy similar to PyTorch, AdalFlow is powerful, light, modular, and robust. Light, Modular, and Model-agnositc Task Pipeline LLMs are like water; AdalFlow help developers quickly shape them into any applications, from GenAI applications such as chatbots, translation, summarization, code generation, RAG, and autonomous agents to classical NLP tasks like text classification and named entity recognition. Only two fundamental but powerful base classes: Component for the pipeline and DataClass for data interaction with LLMs. The result is a library with bare minimum abstraction, providing developers with maximum customizability. You have full control over the prompt template, the model you use, and the output parsing for your task pipeline. AdalFlow Task Pipeline Further reading: How We Started, Introduction, Design Philosophy and Class hierarchy. Unified Framework for Auto-Optimization AdalFlow provides token-efficient and high-performing prompt optimization within a unified framework. To optimize your pipeline, simply define a Parameter and pass it to our Generator. Whether you need to optimize task instructions or few-shot demonstrations, our unified framework offers an easy way to diagnose, visualize, debug, and train your pipeline. This Trace Graph demonstrates how our auto-differentiation works. Trainable Task Pipeline Just define it as a Parameter and pass it to our Generator. AdalFlow Trainable Task Pipeline AdalComponent & Trainer AdalComponent acts as the interpreter between task pipeline and the trainer, defining training and validation steps, optimizers, evaluators, loss functions, backward engine for textual gradients or tracing the demonstrations, the teacher generator. AdalFlow AdalComponent & Trainer Quick Install Install AdalFlow with pip: pip install adalflow Please refer to the full installation guide for more details. Documentation AdalFlow full documentation available at adalflow.sylph.ai: * How We Started * Introduction * Full installation guide * Design philosophy * Class hierarchy * Tutorials * Supported Models * Supported Retrievers * API reference AdalFlow: A Tribute to Ada Lovelace AdalFlow is named in honor of Ada Lovelace, the pioneering female mathematician who first recognized that machines could do more than just calculations. As a female-led team, we aim to inspire more women to enter the AI field. Contributors contributors Citation @software{Yin2024AdalFlow, author = {Li Yin}, title = {{AdalFlow: The Library for Large Language Model (LLM) Applications}}, month = {7}, year = {2024}, doi = {10.5281/zenodo.12639531}, url = {https://github.com/SylphAI-Inc/LightRAG} } About AdalFlow: Auto-prompting Any LLM Task Pipeline. adalflow.sylph.ai/ Topics python nlp agent machine-learning information-retrieval framework ai chatbot optimizer question-answering summarization trainer bm25 retriever faiss reranker rag llm generative-ai Resources Readme License MIT license Activity Custom properties Stars 816 stars Watchers 11 watching Forks 67 forks Report repository Releases 3 Alpha release Latest Jul 3, 2024 + 2 releases Packages 0 No packages published Contributors 11 * @liyin2015 * @Alleria1809 * @github-actions[bot] * @Sylph-AI * @mengliu1998 * @PhiBrandon * @nishantb06 * @zjffdu * @eltociear * @francisrafal * @chauhdhryWaleed Languages * Python 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.