Working with Mistral AI in Pixeltable
Pixeltable's Mistral AI integration enables you to access Mistral's LLM and other models via the Mistral AI API.
This tutorial demonstrates how to use Pixeltable's built-in llama.cpp integration to run local LLMs efficiently.
Providers · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
pip install pixeltable llama-cpp-python huggingface-hub
llama_cpp.create_chat_completion()pxt.create_table()add_computed_column()insert()# Add a computed column that uses llama.cpp for chat completion# against the input.messages = [{'role': 'system', 'content': 'You are a helpful assistant.'},{'role': 'user', 'content': t.input},]t.add_computed_column(result=llama_cpp.create_chat_completion(messages,repo_id='Qwen/Qwen2.5-0.5B-Instruct-GGUF',repo_filename='*q5_k_m.gguf',))# Extract the output content from the JSON structure returned# by llama_cpp.t.add_computed_column(output=t.result.choices[0].message.content)
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Pixeltable's Mistral AI integration enables you to access Mistral's LLM and other models via the Mistral AI API.
Pixeltable's Nebius Token Factory integration enables you to access Nebius language and embedding models via an OpenAI-compatible API.
Ollama is a popular platform for local serving of LLMs. In this tutorial, we'll show how to integrate Ollama models into a Pixeltable workflow.
Pixeltable's OpenAI integration enables you to access OpenAI models via the OpenAI API.