SingleStoreLoader allows you to load documents directly from a SingleStore database table. It is part of the langchain-singlestore integration package.
Overview
Integration Details
| Class | Package | JS Support | 
|---|---|---|
| SingleStoreLoader | langchain_singlestore | ❌ | 
Features
- Load documents lazily to handle large datasets efficiently.
- Supports native asynchronous operations.
- Easily configurable to work with different database schemas.
Setup
To use theSingleStoreLoader, you need to install the langchain-singlestore package. Follow the installation instructions below.
Installation
Install langchain_singlestore.Initialization
To initializeSingleStoreLoader, you need to provide connection parameters for the SingleStore database and specify the table and fields to load documents from.
Required Parameters
- host (str): Hostname, IP address, or URL for the database.
- table_name (str): Name of the table to query. Defaults toembeddings.
- content_field (str): Field containing document content. Defaults tocontent.
- metadata_field (str): Field containing document metadata. Defaults tometadata.
Optional Parameters
- id_field (str): Field containing document IDs. Defaults toid.
Connection Pool Parameters
- pool_size (int): Number of active connections in the pool. Defaults to5.
- max_overflow (int): Maximum connections beyondpool_size. Defaults to10.
- timeout (float): Connection timeout in seconds. Defaults to30.
Additional Options
- pure_python (bool): Enables pure Python mode.
- local_infile (bool): Allows local file uploads.
- charset (str): Character set for string values.
- ssl_key, ssl_cert, ssl_ca (str): Paths to SSL files.
- ssl_disabled (bool): Disables SSL.
- ssl_verify_cert (bool): Verifies server’s certificate.
- ssl_verify_identity (bool): Verifies server’s identity.
- autocommit (bool): Enables autocommits.
- results_type (str): Structure of query results (e.g.,tuples,dicts).
Load
Lazy Load
API reference
For detailed documentation of all SingleStore Document Loader features and configurations head to the github page: https://github.com/singlestore-labs/langchain-singlestore/Connect these docs programmatically to Claude, VSCode, and more via MCP for    real-time answers.