From 7ff1011ba1a73f35b0103377f5d473eeadaf0c56 Mon Sep 17 00:00:00 2001 From: mrhy7176 <129925370+mrhy7176@users.noreply.github.com> Date: Tue, 10 Nov 2026 14:29:01 +0800 Subject: [PATCH 1/2] docs: fix LlamaIndex and llama.h documentation links Point the LlamaIndex example at the current llama_cpp page, and point llama.h at include/llama.h in ggml-org/llama.cpp. --- CHANGELOG.md | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ef9dbc67..55cf8ca11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- docs: fix LlamaIndex and llama.h documentation links by @mrhy7176 - fix(ci): use supported Python versions on Ubuntu by @abetlen in #2407 - feat: update llama.cpp to ggml-org/llama.cpp@7d7f02875 diff --git a/README.md b/README.md index c02df9eed..1ffd39c91 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This package provides: - High-level Python API for text completion - OpenAI-like API - [LangChain compatibility](https://python.langchain.com/docs/integrations/llms/llamacpp) - - [LlamaIndex compatibility](https://docs.llamaindex.ai/en/stable/examples/llm/llama_2_llama_cpp.html) + - [LlamaIndex compatibility](https://docs.llamaindex.ai/en/stable/examples/llm/llama_cpp/) - OpenAI compatible web server - [Local Copilot replacement](https://llama-cpp-python.readthedocs.io/en/latest/server/#code-completion) - [Function Calling support](https://llama-cpp-python.readthedocs.io/en/latest/server/#function-calling) @@ -745,7 +745,7 @@ docker run --rm -it -p 8000:8000 -v /path/to/models:/models -e MODEL=/models/lla [API Reference](https://llama-cpp-python.readthedocs.io/en/latest/api-reference/#low-level-api) The low-level API is a direct [`ctypes`](https://docs.python.org/3/library/ctypes.html) binding to the C API provided by `llama.cpp`. -The entire low-level API can be found in [llama_cpp/llama_cpp.py](https://github.com/abetlen/llama-cpp-python/blob/master/llama_cpp/llama_cpp.py) and directly mirrors the C API in [llama.h](https://github.com/ggerganov/llama.cpp/blob/master/llama.h). +The entire low-level API can be found in [llama_cpp/llama_cpp.py](https://github.com/abetlen/llama-cpp-python/blob/master/llama_cpp/llama_cpp.py) and directly mirrors the C API in [llama.h](https://github.com/ggml-org/llama.cpp/blob/master/include/llama.h). Below is a short example demonstrating how to use the low-level API to tokenize a prompt: From bf05f35656d71ffebb1c14f39a28dcd589dd6d0f Mon Sep 17 00:00:00 2001 From: mrhy7176 <129925370+mrhy7176@users.noreply.github.com> Date: Tue, 10 Nov 2026 14:29:48 +0800 Subject: [PATCH 2/2] docs: add PR number to the changelog entry --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55cf8ca11..a00cfc289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- docs: fix LlamaIndex and llama.h documentation links by @mrhy7176 +- docs: fix LlamaIndex and llama.h documentation links by @mrhy7176 in #2408 - fix(ci): use supported Python versions on Ubuntu by @abetlen in #2407 - feat: update llama.cpp to ggml-org/llama.cpp@7d7f02875