llama-index-readers-dashscope


Namellama-index-readers-dashscope JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
Summaryllama-index readers dashscope integration
upload_time2024-09-03 17:38:46
maintainerNone
docs_urlNone
authorYour Name
requires_python<4.0,>=3.8.1
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LlamaIndex Readers Integration: Dashscope

## Installation

```shelll
pip install llama-index-readers-dashscope
```

## Usage

```python
from llama_index.readers.dashscope.base import DashScopeParse
from llama_index.readers.dashscope.utils import ResultType

file_list = [
    # your files (accept doc, docx, pdf)
]

parse = DashScopeParse(result_type=ResultType.DASHCOPE_DOCMIND)
documents = parse.load_data(file_path=file_list)
```

## Reader Setting:

A full list of retriever settings/kwargs is below:

- api_key: Optional[str] -- Your dashscope API key, which can be passed in through environment variables or parameters.
  The parameter settings will override the results from the environment variables
- workspace_id: Optional[str] -- Your dashscope workspace_id, which can be passed in through environment variables or
  parameters. The parameter settings will override the results from the environment variables
- base_url: Optional[str] -- The base url for the Dashscope API. The default value is "https://dashscope.aliyuncs.com".
  The parameter settings will override the results from the environment variables.
- result_type: Optional[ResultType] -- The result type for the parser. The default value is ResultType.DASHCOPE_DOCMIND.
- num_workers: Optional[int] -- The number of workers to use sending API requests for parsing. The default value is 4,
  greater than 0, less than 10.
- check_interval: Optional[int] -- The interval in seconds to check if the parsing is done. The default value is 5.
- max_timeout: Optional[int] -- The maximum timeout in seconds to wait for the parsing to finish. The default value is 3600.
- verbose: Optional[bool] -- Whether to print the progress of the parsing. The default value is True.
- show_progress: Optional[bool] -- Show progress when parsing multiple files. The default value is True.
- ignore_errors: Optional[bool] -- Whether or not to ignore and skip errors raised during parsing. The default value is
  True.

## Reader Input:

- file_path: Union[str, List[str]] -- The file path or list of file paths to parse.

## Reader Output:

- List[llama_index.core.schema.Document] -- The list of documents parsed from the file.
  - text: str -- The text of the document from DASHCOPE_DOCMIND.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-readers-dashscope",
    "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/65/7f/e1c164b6183c9d13ac24d580eefe5a6545588d50cfe0cdddbb364132f688/llama_index_readers_dashscope-0.2.1.tar.gz",
    "platform": null,
    "description": "# LlamaIndex Readers Integration: Dashscope\n\n## Installation\n\n```shelll\npip install llama-index-readers-dashscope\n```\n\n## Usage\n\n```python\nfrom llama_index.readers.dashscope.base import DashScopeParse\nfrom llama_index.readers.dashscope.utils import ResultType\n\nfile_list = [\n    # your files (accept doc, docx, pdf)\n]\n\nparse = DashScopeParse(result_type=ResultType.DASHCOPE_DOCMIND)\ndocuments = parse.load_data(file_path=file_list)\n```\n\n## Reader Setting:\n\nA full list of retriever settings/kwargs is below:\n\n- api_key: Optional[str] -- Your dashscope API key, which can be passed in through environment variables or parameters.\n  The parameter settings will override the results from the environment variables\n- workspace_id: Optional[str] -- Your dashscope workspace_id, which can be passed in through environment variables or\n  parameters. The parameter settings will override the results from the environment variables\n- base_url: Optional[str] -- The base url for the Dashscope API. The default value is \"https://dashscope.aliyuncs.com\".\n  The parameter settings will override the results from the environment variables.\n- result_type: Optional[ResultType] -- The result type for the parser. The default value is ResultType.DASHCOPE_DOCMIND.\n- num_workers: Optional[int] -- The number of workers to use sending API requests for parsing. The default value is 4,\n  greater than 0, less than 10.\n- check_interval: Optional[int] -- The interval in seconds to check if the parsing is done. The default value is 5.\n- max_timeout: Optional[int] -- The maximum timeout in seconds to wait for the parsing to finish. The default value is 3600.\n- verbose: Optional[bool] -- Whether to print the progress of the parsing. The default value is True.\n- show_progress: Optional[bool] -- Show progress when parsing multiple files. The default value is True.\n- ignore_errors: Optional[bool] -- Whether or not to ignore and skip errors raised during parsing. The default value is\n  True.\n\n## Reader Input:\n\n- file_path: Union[str, List[str]] -- The file path or list of file paths to parse.\n\n## Reader Output:\n\n- List[llama_index.core.schema.Document] -- The list of documents parsed from the file.\n  - text: str -- The text of the document from DASHCOPE_DOCMIND.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index readers dashscope integration",
    "version": "0.2.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b63ef940aecf2f6f76705c71135203c322f32d98ddd643f9893c6b8cfb448d77",
                "md5": "c426635ce6d40e58cc8a9b190734c0ad",
                "sha256": "02ec2a7ce719e9c9d5b69fe429851230c71befac7131c540edd6ae16f10a2d27"
            },
            "downloads": -1,
            "filename": "llama_index_readers_dashscope-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c426635ce6d40e58cc8a9b190734c0ad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 10820,
            "upload_time": "2024-09-03T17:38:44",
            "upload_time_iso_8601": "2024-09-03T17:38:44.747410Z",
            "url": "https://files.pythonhosted.org/packages/b6/3e/f940aecf2f6f76705c71135203c322f32d98ddd643f9893c6b8cfb448d77/llama_index_readers_dashscope-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "657fe1c164b6183c9d13ac24d580eefe5a6545588d50cfe0cdddbb364132f688",
                "md5": "4d3a7a4fc6019c5cdba0a5b849b9780f",
                "sha256": "4ea69e2f5ec9d4bf816512f096f1c613e4d56d437f39e32008495e40465e6ec3"
            },
            "downloads": -1,
            "filename": "llama_index_readers_dashscope-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4d3a7a4fc6019c5cdba0a5b849b9780f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 9609,
            "upload_time": "2024-09-03T17:38:46",
            "upload_time_iso_8601": "2024-09-03T17:38:46.068665Z",
            "url": "https://files.pythonhosted.org/packages/65/7f/e1c164b6183c9d13ac24d580eefe5a6545588d50cfe0cdddbb364132f688/llama_index_readers_dashscope-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-03 17:38:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-dashscope"
}
        
Elapsed time: 0.76755s