Skip to content

Commit 7ff1011

Browse files
committed
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.
1 parent 05c124e commit 7ff1011

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- docs: fix LlamaIndex and llama.h documentation links by @mrhy7176
1011
- fix(ci): use supported Python versions on Ubuntu by @abetlen in #2407
1112
- feat: update llama.cpp to ggml-org/llama.cpp@7d7f02875
1213

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This package provides:
1919
- High-level Python API for text completion
2020
- OpenAI-like API
2121
- [LangChain compatibility](https://python.langchain.com/docs/integrations/llms/llamacpp)
22-
- [LlamaIndex compatibility](https://docs.llamaindex.ai/en/stable/examples/llm/llama_2_llama_cpp.html)
22+
- [LlamaIndex compatibility](https://docs.llamaindex.ai/en/stable/examples/llm/llama_cpp/)
2323
- OpenAI compatible web server
2424
- [Local Copilot replacement](https://llama-cpp-python.readthedocs.io/en/latest/server/#code-completion)
2525
- [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
745745
[API Reference](https://llama-cpp-python.readthedocs.io/en/latest/api-reference/#low-level-api)
746746

747747
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`.
748-
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).
748+
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).
749749

750750
Below is a short example demonstrating how to use the low-level API to tokenize a prompt:
751751

0 commit comments

Comments
 (0)