Name | llama-index-readers-myscale JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | llama-index readers myscale integration |
upload_time | 2024-08-22 03:14:06 |
maintainer | None |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.8.1 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# LlamaIndex Readers Integration: Myscale
## Overview
MyScale Reader allows loading data from a MyScale backend. It constructs a query to retrieve documents based on a given query vector and additional search parameters.
### Installation
You can install Myscale Reader via pip:
```bash
pip install llama-index-readers-myscale
```
### Usage
```python
from llama_index.readers.myscale import MyScaleReader
# Initialize MyScaleReader
reader = MyScaleReader(
myscale_host="<MyScale Host>", # MyScale host address
username="<Username>", # Username to login
password="<Password>", # Password to login
database="<Database Name>", # Database name (default: 'default')
table="<Table Name>", # Table name (default: 'llama_index')
index_type="<Index Type>", # Index type (default: "IVFLAT")
metric="<Metric>", # Metric to compute distance (default: 'cosine')
batch_size=32, # Batch size for inserting documents (default: 32)
index_params=None, # Index parameters for MyScale (default: None)
search_params=None, # Search parameters for MyScale query (default: None)
)
# Load data from MyScale
documents = reader.load_data(
query_vector=[0.1, 0.2, 0.3], # Query vector
where_str="<Where Condition>", # Where condition string (default: None)
limit=10, # Number of results to return (default: 10)
)
```
This loader is designed to be used as a way to load data into
[LlamaIndex](https://github.com/run-llama/llama_index/tree/main/llama_index) and/or subsequently
used as a Tool in a [LangChain](https://github.com/hwchase17/langchain) Agent.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-readers-myscale",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/57/25/54da994b1b3264bad564b5e09ad6f82e74bf78afafc6ce706fc1294d72aa/llama_index_readers_myscale-0.2.0.tar.gz",
"platform": null,
"description": "# LlamaIndex Readers Integration: Myscale\n\n## Overview\n\nMyScale Reader allows loading data from a MyScale backend. It constructs a query to retrieve documents based on a given query vector and additional search parameters.\n\n### Installation\n\nYou can install Myscale Reader via pip:\n\n```bash\npip install llama-index-readers-myscale\n```\n\n### Usage\n\n```python\nfrom llama_index.readers.myscale import MyScaleReader\n\n# Initialize MyScaleReader\nreader = MyScaleReader(\n myscale_host=\"<MyScale Host>\", # MyScale host address\n username=\"<Username>\", # Username to login\n password=\"<Password>\", # Password to login\n database=\"<Database Name>\", # Database name (default: 'default')\n table=\"<Table Name>\", # Table name (default: 'llama_index')\n index_type=\"<Index Type>\", # Index type (default: \"IVFLAT\")\n metric=\"<Metric>\", # Metric to compute distance (default: 'cosine')\n batch_size=32, # Batch size for inserting documents (default: 32)\n index_params=None, # Index parameters for MyScale (default: None)\n search_params=None, # Search parameters for MyScale query (default: None)\n)\n\n# Load data from MyScale\ndocuments = reader.load_data(\n query_vector=[0.1, 0.2, 0.3], # Query vector\n where_str=\"<Where Condition>\", # Where condition string (default: None)\n limit=10, # Number of results to return (default: 10)\n)\n```\n\nThis loader is designed to be used as a way to load data into\n[LlamaIndex](https://github.com/run-llama/llama_index/tree/main/llama_index) and/or subsequently\nused as a Tool in a [LangChain](https://github.com/hwchase17/langchain) Agent.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index readers myscale integration",
"version": "0.2.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f15546dd715e71907a874dae2a80927c305cba8d2b094832f37c42f5f5657671",
"md5": "1baf0a13ad504e92c007be323991afc2",
"sha256": "6ed41f9514375c2d6d7f4f1061feb7d487db7dc51145195b90ad75df4bcdea12"
},
"downloads": -1,
"filename": "llama_index_readers_myscale-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1baf0a13ad504e92c007be323991afc2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 3917,
"upload_time": "2024-08-22T03:14:05",
"upload_time_iso_8601": "2024-08-22T03:14:05.306867Z",
"url": "https://files.pythonhosted.org/packages/f1/55/46dd715e71907a874dae2a80927c305cba8d2b094832f37c42f5f5657671/llama_index_readers_myscale-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "572554da994b1b3264bad564b5e09ad6f82e74bf78afafc6ce706fc1294d72aa",
"md5": "b4736793b095961dfe21d87af3492f12",
"sha256": "0f490d6a79d4eedc12a4eaf2178b05a04c749d6168ba36a379c3dc007eca6558"
},
"downloads": -1,
"filename": "llama_index_readers_myscale-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "b4736793b095961dfe21d87af3492f12",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 3559,
"upload_time": "2024-08-22T03:14:06",
"upload_time_iso_8601": "2024-08-22T03:14:06.209055Z",
"url": "https://files.pythonhosted.org/packages/57/25/54da994b1b3264bad564b5e09ad6f82e74bf78afafc6ce706fc1294d72aa/llama_index_readers_myscale-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 03:14:06",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-readers-myscale"
}