Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
OurBuilding Ambient Agents with LangGraph course is now available on LangChain Academy!
Open on GitHub

MariaDB

This page covers how to use theMariaDB ecosystem within LangChain.It is broken into two parts: installation and setup, and then references to specific PGVector wrappers.

Installation

  • Install c/c connector

on Debian, Ubuntu

sudo apt install libmariadb3 libmariadb-dev

on CentOS, RHEL, Rocky Linux

sudo yum install MariaDB-shared MariaDB-devel
  • Install the Python connector package withpip install mariadb

Setup

  1. The first step is to have a MariaDB 11.7.1 or later installed.

    The docker image is the easiest way to get started.

Wrappers

VectorStore

There exists a wrapper around MariaDB vector databases, allowing you to use it as a vectorstore,whether for semantic search or example selection.

To import this vectorstore:

from langchain_mariadbimport MariaDBStore

Usage

For a more detailed walkthrough of the MariaDB wrapper, seethis notebook


[8]ページ先頭

©2009-2025 Movatter.jp