| 1 | # Language model |
| 2 | |
| 3 | ```{versionadded} 14.1.0 |
| 4 | |
| 5 | ``` |
| 6 | |
| 7 | ```{note} |
| 8 | This is an experimental feature. Currently, this feature is still not stable. |
| 9 | ``` |
| 10 | |
| 11 | ## Summary |
| 12 | |
| 13 | Language model is useful for full text search too. Groonga can |
| 14 | integrate with language model. |
| 15 | |
| 16 | Groonga uses language models in local. We'll provide a tool to manage |
| 17 | language models in local in the feature but it doesn't exist yet for |
| 18 | now. You need to download one or more language models manually for |
| 19 | now. |
| 20 | |
| 21 | This feature uses [llama.cpp](https://github.com/ggerganov/llama.cpp) |
| 22 | internally. You can use only GGUF formatted language models. See also |
| 23 | the "supported models" section in the llama.cpp README. |
| 24 | |
| 25 | ## How to manage language models |
| 26 | |
| 27 | You need to put GGUF formatted language models to |
| 28 | `${PREFIX}/share/groonga/language_models/`. |
| 29 | |
| 30 | For example: |
| 31 | `/usr/local/share/groonga/language_models/mistral-7b-v0.1.Q4_K_M.gguf` |
| 32 | |
| 33 | You can download GGUF formatted language models from [Hugging |
| 34 | Face](https://huggingface.co/). Some official language models provide |
| 35 | GGUF formatted language models too. But most of them don't provide |
| 36 | GGUF formatted language models. |
| 37 | |
| 38 | You can convert existing language models on Hugging Face to GGUF |
| 39 | format by |
| 40 | [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo). |
| 41 | |
| 42 | ## Functions |
| 43 | |
| 44 | - {doc}`functions/language_model_vectorize` |