Function reference
LocalLLM utilities
Utilities
Download common local LLM Models
| localllm_download_model | Download a local gguf LLM model |
| localllm_list_models | List all available models which you can easily download |
LocalLLM alongside DSPy
Use a LocalLLM model with DSPy
| dspy.LocalLLM | Create a Local LLM object which you can use alongside dspy |
| dspy.LocalChatAdapter | A DSPy adapter that attempts progressively more lenient parsing strategies when strict JSON parsing fails. |
| dspy.dspy_signature_defaults | Generate default empty values for all output fields in a DSPy signature. |
Lookup utilities
Lookup utilities to locate text spans in a larger text lookup up with an LLM
| txt_locate_all | Find all occurrences of a text element (in case it appears multiple times). |
| txt_locate | Find start and end positions of text elements in a larger text. |
| merge_spans | Combine TextSpan elements which are either overlapping or adjacent where only whitespace separates them. |
Traindata
Converters to data to use for training with dspy
| converters.tif | Text Interchange Formats |
| converters.convert_dspy_example | Convert to dspy examples |