Skip to main content

TRAG

trag is glue intended for use with (in particular) fvdb for retreival and hyjinx.llm for generation. But, it's abstract enough for other uses.

  • Get sources from a url, youtube, arxiv, wikipedia and produce markdown strings.
  • A very simple templating system, for when jinja is overkill.

trag does not specify or require any particular LLM or vector database solutions.

Templating

Example usage, uses standard summary.toml template:

(require trag.template [deftemplate])

(deftemplate summary)

(summary "bullet" :text "Here is some text. The main points involve a cat, a dog and an ambulance. The shop closed for lack of stock.")

;; and so on

Web sources

Example usage:

(import trag [retrieve])

(retrieve.arxiv "Retrieval-augmented generation" :n 3)
(retrieve.youtube "dQw4w9WgXcQ")
(retrieve.wikipedia "Retrieval-augmented generation")
(retrieve.url "https://www.gutenberg.org/cache/epub/11/pg11.txt")

Command-line usage

Proceeds similarly,

$ trag --help

Ask DeepWiki

Metadata

Release files for trag 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trag 0.0.15
File Size Uploaded
trag-0.0.15.tar.gz 45.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trag 0.0.15
File Interpreter ABI Platform
trag-0.0.15-py3-none-any.whl Python 3 none any Details

Total release size: 80.4 kB

Release files / trag-0.0.15.tar.gz

Download URL trag-0.0.15.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
206368bf04b7a6698cc15a52f9205a247f400f112db41d8b4ab87fc034e32ec2
BLAKE2b-256 checksum
How to use checksums
573829e96e0b0b9389ea6ea462ef6c70e8f85f7b747af2ce97510162f5d78967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / trag-0.0.15-py3-none-any.whl

Download URL trag-0.0.15-py3-none-any.whl
Size 34.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e49ecb10264314d23d221e06a28fa4b10e03ac60528fab346c3d8ddc7168c7b5
BLAKE2b-256 checksum
How to use checksums
1d0628c1a51bdd43a2c3fb20514f3cf35e68b7b2928c1ab4cae01f0fee4c7bf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.15 This release

2 release files

0.0.13

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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