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.0.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.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aieng_rag_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bfa5180043023b35533578fa8615bc90f737e39857dc8917acd8dd4254ca13de
MD5 48c86a3f0a0fbd9aeb31f5c451d5bdd9
BLAKE2b-256 31bf73cf031c2074c002cdaef58277abeb92ad6c09fd70026cb2b4d000e21a99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aieng_rag_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77910c22b978d52a94e00564aa413e2790725bc28a1b120c9c963f84d47313d6
MD5 6e3abe92a8bb99e5f2865e0be4dbec14
BLAKE2b-256 3a46baab8809957b0aa5e9dde3abf31dc2570198c2f81f30efa1a9154b0b4d7b

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