Skip to main content

llama-index readers oracleai integration

Project description

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.")

Project details


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.4.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.4.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_readers_oracleai-0.4.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.4.0.tar.gz
Algorithm Hash digest
SHA256 30d61e4675d3e33c072dbdfcc00347c2c055d819b85cb93752c2235bd5fd04eb
MD5 df776e6fabf5da114fd27607bb7b491f
BLAKE2b-256 984a14214c7c74bdb4a8a085e8c75e2e4940f6a7cbed129478df3ce03d47b1ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_readers_oracleai-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b25dd0b67289a63bfba52e1fce31f8e4bc2d7ccfe8977cf1b00c44e3963b205
MD5 19a9f55ea627b951232746a69550bd20
BLAKE2b-256 75b6b407ddff96e47fa949d8645cdafa818fe39fa424f81cb4cb2e73cad217bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page