llama-index readers singlestore integration
Project description
SingleStore Loader
pip install llama-index-readers-singlestore
The SingleStore Loader retrieves a set of documents from a specified table in a SingleStore database. The user initializes the loader with database information and then provides a search embedding for retrieving similar documents.
Usage
Here's an example usage of the SingleStoreReader:
from llama_index.readers.singlestore import SingleStoreReader
# Initialize the reader with your SingleStore database credentials and other relevant details
reader = SingleStoreReader(
scheme="mysql",
host="localhost",
port="3306",
user="username",
password="password",
dbname="database_name",
table_name="table_name",
content_field="text",
vector_field="embedding",
)
# The search_embedding is an embedding representation of your query_vector.
# Example search_embedding:
# search_embedding=[0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3]
search_embedding = [n1, n2, n3, ...]
# load_data fetches documents from your SingleStore database that are similar to the search_embedding.
# The top_k argument specifies the number of similar documents to fetch.
documents = reader.load_data(search_embedding=search_embedding, top_k=5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_singlestore-0.5.0.tar.gz.
File metadata
- Download URL: llama_index_readers_singlestore-0.5.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f47e00ab0f52470ecd1d196c257ee6222d317ae9094fc649b442e7e99c7bd64e
|
|
| MD5 |
7a1b64a3294b2690c94dcb0cd2ead6c1
|
|
| BLAKE2b-256 |
97b06b2d136561a9d9c735a987f47c36381c9aabdbce0ac7c6fb11f7006bd8bc
|
File details
Details for the file llama_index_readers_singlestore-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_singlestore-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39f6f0c92a721ebe9eea338bb23ecf655c76984ccebd4cc7c6fbd270ca9d899e
|
|
| MD5 |
97e0c7231908165250b225485304fd01
|
|
| BLAKE2b-256 |
5dcba5e032cf234dd1a92794f729e393032290ec4621cc56e80788a9c50114ed
|