llama-index-readers-singlestore


Namellama-index-readers-singlestore JSON
Version 0.4.0 PyPI version JSON
download
home_pageNone
Summaryllama-index readers singlestore integration
upload_time2025-07-31 01:22:51
maintainersinglestore
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords memsql singlestore
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SingleStore Loader

```bash
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:

```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-readers-singlestore",
    "maintainer": "singlestore",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "memsql, singlestore",
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/52/15/815a8059e3be0363b6f802e07d43cbc635c5efd4a57d0db07f742381de8d/llama_index_readers_singlestore-0.4.0.tar.gz",
    "platform": null,
    "description": "# SingleStore Loader\n\n```bash\npip install llama-index-readers-singlestore\n```\n\nThe 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.\n\n## Usage\n\nHere's an example usage of the SingleStoreReader:\n\n```python\nfrom llama_index.readers.singlestore import SingleStoreReader\n\n# Initialize the reader with your SingleStore database credentials and other relevant details\nreader = SingleStoreReader(\n    scheme=\"mysql\",\n    host=\"localhost\",\n    port=\"3306\",\n    user=\"username\",\n    password=\"password\",\n    dbname=\"database_name\",\n    table_name=\"table_name\",\n    content_field=\"text\",\n    vector_field=\"embedding\",\n)\n\n# The search_embedding is an embedding representation of your query_vector.\n# Example search_embedding:\n#   search_embedding=[0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3]\nsearch_embedding = [n1, n2, n3, ...]\n\n# load_data fetches documents from your SingleStore database that are similar to the search_embedding.\n# The top_k argument specifies the number of similar documents to fetch.\ndocuments = reader.load_data(search_embedding=search_embedding, top_k=5)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index readers singlestore integration",
    "version": "0.4.0",
    "project_urls": null,
    "split_keywords": [
        "memsql",
        " singlestore"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e4da8a8b4d3593571dbf70ba4870192d2b2eae6760a09500c5e827e365f929ff",
                "md5": "1c60b25af938c3edce1356ac4cb77229",
                "sha256": "660e745c1e139b49887384225a14dd5621e9d1793a8ab4183dd3ce15a84d4492"
            },
            "downloads": -1,
            "filename": "llama_index_readers_singlestore-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1c60b25af938c3edce1356ac4cb77229",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3765,
            "upload_time": "2025-07-31T01:22:50",
            "upload_time_iso_8601": "2025-07-31T01:22:50.973721Z",
            "url": "https://files.pythonhosted.org/packages/e4/da/8a8b4d3593571dbf70ba4870192d2b2eae6760a09500c5e827e365f929ff/llama_index_readers_singlestore-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5215815a8059e3be0363b6f802e07d43cbc635c5efd4a57d0db07f742381de8d",
                "md5": "28885ab09cf663b54bebb1f5f03b2b4d",
                "sha256": "cf92fa2cc5f803c6aece49cd07e56729590296c99a14052ddb996935f921e5a0"
            },
            "downloads": -1,
            "filename": "llama_index_readers_singlestore-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "28885ab09cf663b54bebb1f5f03b2b4d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 4109,
            "upload_time": "2025-07-31T01:22:51",
            "upload_time_iso_8601": "2025-07-31T01:22:51.709269Z",
            "url": "https://files.pythonhosted.org/packages/52/15/815a8059e3be0363b6f802e07d43cbc635c5efd4a57d0db07f742381de8d/llama_index_readers_singlestore-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-31 01:22:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-singlestore"
}
        
Elapsed time: 0.65148s