Skip to main content

LlamaIndex Readers Integration: Oracleai

There are two classes here:

  • OracleReader: This API is to load document(s) from a file or a directory or a Oracle Database table.
  • OracleTextSplitter: This API is to split a document into chunks with a lots of customizations.

pip install llama-index-readers-oracleai

A sample example

# get the Oracle connection
conn = oracledb.connect(
    user="",
    password="",
    dsn="",
)
print("Oracle connection is established...")

# params
loader_params = {"owner": "ut", "tablename": "demo_tab", "colname": "data"}
splitter_params = {"by": "words", "max": "100"}

# instances
loader = OracleReader(conn=conn, params=loader_params)
splitter = OracleTextSplitter(conn=conn, params=splitter_params)

print("Processing the documents...")
docs = loader.load()
for id, doc in enumerate(docs, start=1):
    print(f"Document#{id}, Metadata: {doc.metadata}")
    chunks = splitter.split_text(doc.text)
    print(f"Document#{id}, Num of Chunk: {len(chunks)}\n")

conn.close()
print("Connection is closed.")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_oracleai-0.5.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_oracleai-0.5.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_oracleai-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_readers_oracleai-0.5.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for llama_index_readers_oracleai-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b3468528841fe6412266362f73310fed5dcdf96a7b7697c19a4156bb135b72b9
MD5 30402ff4c30e2eb3689e6515ce5f5b71
BLAKE2b-256 789a863f67ee7a96d13097d565797ae952cdb9ea56756549b3921b8f3b7c72a5

See more details on using hashes here.

File details

Details for the file llama_index_readers_oracleai-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_readers_oracleai-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for llama_index_readers_oracleai-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7baa1c77605c0e40503de958b9abfa00019a1e6bad41af71796ae1b83922d820
MD5 1a997bb9d4072df1fdabbb86e8c878f4
BLAKE2b-256 2cf7100ee269c3720d2f495e6751013380cbe16f754550a675ed87d81aaf1445

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

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