Skip to main content

LlamaIndex Indices Integration: Managed-Dashscope

Installation

pip install llama-index-indices-managed-dashscope

Usage

import os
from llama_index.core.schema import QueryBundle
from llama_index.readers.dashscope.base import DashScopeParse
from llama_index.readers.dashscope.utils import ResultType

os.environ["DASHSCOPE_API_KEY"] = "your_api_key_here"
os.environ["DASHSCOPE_WORKSPACE_ID"] = "your_workspace_here"

# init retriever from scratch
from llama_index.indices.managed.dashscope.retriever import (
    DashScopeCloudRetriever,
)


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

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

# create a new index
index = DashScopeCloudIndex.from_documents(
    documents,
    "my_first_index",
    verbose=True,
)

# # connect to an existing index
# index = DashScopeCloudIndex("my_first_index")

retriever = index.as_retriever()
nodes = retriever.retrieve("test query")
print(nodes)

Metadata

Release files for llama-index-indices-managed-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-indices-managed-dashscope-custom 0.1.1
File Size Uploaded Provenance Actions
llama_index_indices_managed_dashscope_custom-0.1.1.tar.gz 8.0 kB Without provenance Details for llama_index_indices_managed_dashscope_custom-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-indices-managed-dashscope-custom 0.1.1
File Interpreter ABI Platform Actions
llama_index_indices_managed_dashscope_custom-0.1.1-py3-none-any.whl Python 3 none any Details for llama_index_indices_managed_dashscope_custom-0.1.1-py3-none-any.whl

Total release size: 18.1 kB

Release files / llama_index_indices_managed_dashscope_custom-0.1.1.tar.gz

Download URL llama_index_indices_managed_dashscope_custom-0.1.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
659e1144871226f7e13017200845e35b179a6c2179e5b99f87798646402f4333
BLAKE2b-256 checksum
How to use checksums
b21501505b88239d219f9c8532e51fc1f3fc87acc3b4c209f22db8cbf1c817be
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_indices_managed_dashscope_custom-0.1.1-py3-none-any.whl

Download URL llama_index_indices_managed_dashscope_custom-0.1.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e7fa656a7a4c24d407a8ef6dd941ca595f99be06dee917b111cbd8fa0d02de5
BLAKE2b-256 checksum
How to use checksums
ab00bea254d0ea462f0ec515719f0d484d7286af210d75b5ace21565180d20c7
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-indices-managed-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