llama-index-readers-oracleai


Namellama-index-readers-oracleai JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
Summaryllama-index readers oracleai integration
upload_time2025-09-08 20:48:20
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```python
# 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.")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-readers-oracleai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/7f/7c/aadc0e4dbfd162a4cadbbe5308b492f5e42ede29f1d411fcb909dd3d492b/llama_index_readers_oracleai-0.3.1.tar.gz",
    "platform": null,
    "description": "# LlamaIndex Readers Integration: Oracleai\n\nThere are two classes here:\n\n- OracleReader: This API is to load document(s) from a file or a directory or a Oracle Database table.\n- OracleTextSplitter: This API is to split a document into chunks with a lots of customizations.\n\n`pip install llama-index-readers-oracleai`\n\n# A sample example\n\n```python\n# get the Oracle connection\nconn = oracledb.connect(\n    user=\"\",\n    password=\"\",\n    dsn=\"\",\n)\nprint(\"Oracle connection is established...\")\n\n# params\nloader_params = {\"owner\": \"ut\", \"tablename\": \"demo_tab\", \"colname\": \"data\"}\nsplitter_params = {\"by\": \"words\", \"max\": \"100\"}\n\n# instances\nloader = OracleReader(conn=conn, params=loader_params)\nsplitter = OracleTextSplitter(conn=conn, params=splitter_params)\n\nprint(\"Processing the documents...\")\ndocs = loader.load()\nfor id, doc in enumerate(docs, start=1):\n    print(f\"Document#{id}, Metadata: {doc.metadata}\")\n    chunks = splitter.split_text(doc.text)\n    print(f\"Document#{id}, Num of Chunk: {len(chunks)}\\n\")\n\nconn.close()\nprint(\"Connection is closed.\")\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index readers oracleai integration",
    "version": "0.3.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9ce571c379c271e0219e3d7c9bd64123ab04037fd1807a386734cdcf95dcec1c",
                "md5": "63da3a3d665ee41b45702b945762bd23",
                "sha256": "2fa9ecc2bf400b5428524488ba05068d20aee196b2e8d85fc362a056ed175dbc"
            },
            "downloads": -1,
            "filename": "llama_index_readers_oracleai-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63da3a3d665ee41b45702b945762bd23",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 6192,
            "upload_time": "2025-09-08T20:48:19",
            "upload_time_iso_8601": "2025-09-08T20:48:19.695780Z",
            "url": "https://files.pythonhosted.org/packages/9c/e5/71c379c271e0219e3d7c9bd64123ab04037fd1807a386734cdcf95dcec1c/llama_index_readers_oracleai-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7f7caadc0e4dbfd162a4cadbbe5308b492f5e42ede29f1d411fcb909dd3d492b",
                "md5": "b48431b51f8e5446ae279564d8442f24",
                "sha256": "47a08acddef9098f7a3efae70ae7ad10ff2b7a98c387f8cefb29ec8656aa577a"
            },
            "downloads": -1,
            "filename": "llama_index_readers_oracleai-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b48431b51f8e5446ae279564d8442f24",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 6615,
            "upload_time": "2025-09-08T20:48:20",
            "upload_time_iso_8601": "2025-09-08T20:48:20.449377Z",
            "url": "https://files.pythonhosted.org/packages/7f/7c/aadc0e4dbfd162a4cadbbe5308b492f5e42ede29f1d411fcb909dd3d492b/llama_index_readers_oracleai-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 20:48:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-oracleai"
}
        
Elapsed time: 4.79716s