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 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_indices_managed_dashscope-0.6.0.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_indices_managed_dashscope-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / llama_index_indices_managed_dashscope-0.6.0.tar.gz
| Download URL | llama_index_indices_managed_dashscope-0.6.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4008bb3698a669cca4102c544c6e3f33944e610cbf70ec8a3d08827cfd614e74
|
|
BLAKE2b-256 checksum How to use checksums |
33bca5a7530f530496686a8e55e9a526b06b3c3389781b328915e6bd0ffce49a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_indices_managed_dashscope-0.6.0-py3-none-any.whl
| Download URL | llama_index_indices_managed_dashscope-0.6.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e9787fdca5164558aae812c32c773c315a25e84d2d34539e5067bcf38a6a86b
|
|
BLAKE2b-256 checksum How to use checksums |
6f7ae7475cd538fde89e2f7bbfafdacedd4220dc91949d44d1a0d8d9481678f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|