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.

Installation

pip install llama-index-node-parser-dashscope

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-dashscope-custom 0.1.2

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-dashscope-custom 0.1.2
File Size Uploaded Provenance Actions
llama_index_node_parser_dashscope_custom-0.1.2.tar.gz 3.7 kB Without provenance Details for llama_index_node_parser_dashscope_custom-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / llama_index_node_parser_dashscope_custom-0.1.2.tar.gz

Download URL llama_index_node_parser_dashscope_custom-0.1.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6d4e11ba638303336cc59f54823f7c7f2ebc0aef3db1acf1ed8fa55dbe66455d
BLAKE2b-256 checksum
How to use checksums
3006ab1156e842884651a17e8094a2c7bb152e975e948111787ba4e0ac094e8f
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_dashscope_custom-0.1.2-py3-none-any.whl

Download URL llama_index_node_parser_dashscope_custom-0.1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d853187894285cfb3a96283399aeb7df53048b58da45538f47c9cc3b1bb9ad80
BLAKE2b-256 checksum
How to use checksums
d0a40eb52536e83ba9f6b005724a977ff590354db120f5378856aa24a87e61ad
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-dashscope-custom 0.1.2

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.2 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