Skip to main content

Helper modules for AI Engineering RAG Bootcamp reference implementations

Project description

aieng-rag-utils

aieng-rag-utils is a Python library providing utility functions and tools to streamline Retrieval-Augmented Generation (RAG) workflows. It is designed to help AI engineers build, evaluate, and deploy RAG-based applications efficiently.

Features

  • Document loaders, chunkers and pretty-print
  • Web Search
  • Vector store integrations
  • Query and retrieval helpers
  • Evaluation and benchmarking tools

Installation

pip3 install aieng-rag-utils

Sample Usage

from aieng.rag.utils import get_device_name
from aieng.rag.utils.search import DocumentReader
from aieng.rag.utils.pubmed import RAGLLM

device = get_device_name()

doc_reader = DocumentReader(directory_path="./source_documents")
docs, chunks = doc_reader.load()

llm = RAGLLM(
    llm_type="openai",
    llm_name="gpt-4o",
    api_base=OPENAI_BASE_URL,
    api_key=OPENAI_API_KEY,
).load_model(**rag_cfg) # RAG Configuration

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

aieng_rag_utils-1.0.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

aieng_rag_utils-1.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file aieng_rag_utils-1.0.1.tar.gz.

File metadata

  • Download URL: aieng_rag_utils-1.0.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for aieng_rag_utils-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dff405fd61ce79e9890be267888c0dd7028633f19e10a1aa58f3570565f512c0
MD5 0b58cbf76cb0ca0f46eedb6bc763761a
BLAKE2b-256 09ecbc0b5272296ffbf9463e0beaea5cc83f9365523d722ec4ffa9b2c9b309d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for aieng_rag_utils-1.0.1.tar.gz:

Publisher: publish.yml on VectorInstitute/retrieval-augmented-generation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aieng_rag_utils-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aieng_rag_utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8689dd22a301de3f70cade76618dc9863485769eec5f00eef3b8a64eb3d9904e
MD5 da6aa44a5d30248f8a43489a81a18200
BLAKE2b-256 682f006b6ef5ab4fbfb12690d996880f49b4707b43eea889a4b7b03085d042dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for aieng_rag_utils-1.0.1-py3-none-any.whl:

Publisher: publish.yml on VectorInstitute/retrieval-augmented-generation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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