Search & RAG/GitHub/Framework
llama-cpp-agent
by Maximilian-Winter·Last observed 2026-10-27
★ 660 stars⑂ 73 forks
llama-cpp-agent is a framework for building chat, structured-output, function-calling, RAG, and agent-chain workflows around language models. It uses guided sampling for structured outputs and function calls, supports sequential and mapping chains, and connects to several inference servers and tool formats.
Useful for
- Build a mapping chain that summarizes several articles into one summary.
Key features
- Guided sampling with grammars and JSON schema generation supports structured output and function calling, including for models not fine-tuned for those tasks.
- RAG supports ColBERT reranking, and agent chains include conversational, sequential, and mapping forms.
Requirements & limitations
- The framework installs with pip; the RAG example requires the optional rag dependencies, installed as llama-cpp-agent[rag].
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.