Skip to main content

LlamaIndex Node_Parser-Relational Integration: Dashscope

Transform your documents into nodes with ease using the Dashscope integration for LlamaIndex. This tool allows for precise control over chunk size, overlap size, and more, tailored for the Dashscope reader output format.

Quick Start

Get up and running with just a few lines of code:

import json
import os
from llama_index.node_parser.relational.dashscope import (
    DashScopeJsonNodeParser,
)
from llama_index.core.ingestion import IngestionPipeline
from llama_index.core.schema import Document

# Set your Dashscope API key in the environment
os.environ["DASHSCOPE_API_KEY"] = "your_api_key_here"

documents = [
    # Prepare your documents obtained from the Dashscope reader
]

# Initialize the DashScope JsonNodeParser
node_parser = DashScopeJsonNodeParser(
    chunk_size=100, overlap_size=0, separator=" |,|,|。|?|!|\n|\?|\!"
)

# Set up the ingestion pipeline with the node parser
pipeline = IngestionPipeline(transformations=[node_parser])

# Process the documents and print the resulting nodes
nodes = pipeline.run(documents=documents, show_progress=True)
for node in nodes:
    print(node)

Configuration

  • API Key: You need a Dashscope API key to begin. Set it in your environment as shown in the Quick Start section.
  • Document Preparation: Your documents must be in the Dashscope reader output format.

Metadata

Release files for llama-index-node-parser-relational-dashscope-custom 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-node-parser-relational-dashscope-custom 0.1.1
File Size Uploaded Provenance Actions
llama_index_node_parser_relational_dashscope_custom-0.1.1.tar.gz 3.7 kB Without provenance Details for llama_index_node_parser_relational_dashscope_custom-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-node-parser-relational-dashscope-custom 0.1.1
File Interpreter ABI Platform Actions
llama_index_node_parser_relational_dashscope_custom-0.1.1-py3-none-any.whl Python 3 none any Details for llama_index_node_parser_relational_dashscope_custom-0.1.1-py3-none-any.whl

Total release size: 7.9 kB

Release files / llama_index_node_parser_relational_dashscope_custom-0.1.1.tar.gz

Download URL llama_index_node_parser_relational_dashscope_custom-0.1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3f53fc3c687842bce86cc02f35694b4ab4749f3f984808aa6ba6605012110688
BLAKE2b-256 checksum
How to use checksums
0a3a6664cece7e94b1aa60a3463a4a7c7214fe3e3b1d6157afbf70d365a7e41e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.8.19 Linux/4.19.91-009.ali4000.alios7.x86_64

Release files / llama_index_node_parser_relational_dashscope_custom-0.1.1-py3-none-any.whl

Download URL llama_index_node_parser_relational_dashscope_custom-0.1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dde3efc3b4bb567d635f67de65463aa2f59f275e80a3a3e400c21e3e214e695
BLAKE2b-256 checksum
How to use checksums
b54bb2ed1e0e29474d17bc7c066d0d98cebf8e0a6bf2bf7a7241d958558676af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.8.19 Linux/4.19.91-009.ali4000.alios7.x86_64

Security for llama-index-node-parser-relational-dashscope-custom 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page