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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trag-0.0.15.tar.gz | 45.7 kB | Without provenance | Details for trag-0.0.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trag-0.0.15-py3-none-any.whl | Python 3 | none | any | Details for trag-0.0.15-py3-none-any.whl |
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
|
Security for trag 0.0.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.