https://github.com/AnswerDotAI/llm-ctx
Create an LLM XML context document from an llms.txt file
https://github.com/AnswerDotAI/llm-ctx
Last synced: 14 days ago
JSON representation
Create an LLM XML context document from an llms.txt file
- Host: GitHub
- URL: https://github.com/AnswerDotAI/llm-ctx
- Owner: AnswerDotAI
- License: apache-2.0
- Created: 2024-08-26T04:05:51.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T04:37:28.000Z (9 months ago)
- Last Synced: 2025-05-08T13:48:40.085Z (16 days ago)
- Language: Jupyter Notebook
- Homepage: https://AnswerDotAI.github.io/llm_ctx
- Size: 368 KB
- Stars: 18
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - AnswerDotAI/llm-ctx - Create an LLM XML context document from an llms.txt file (Jupyter Notebook)
README
# llm_ctx
Given an `llms.txt` file, this provides a CLI and Python API to parse
the file and create an XML context file from it. The input file should
follow this format:# FastHTML
> FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's `FT` "FastTags" into a library for creating server-rendered hypermedia applications.
## Docs
- [Surreal](https://raw.githubusercontent.com/AnswerDotAI/surreal/main/README.md): Tiny jQuery alternative with Locality of Behavior
- [FastHTML quick start](https://docs.fastht.ml/tutorials/quickstart_for_web_devs.html.md): An overview of FastHTML features## Examples
- [Todo list application](https://raw.githubusercontent.com/AnswerDotAI/fasthtml/main/examples/adv_app.py)
## Optional
- [Starlette docs](https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md): A subset of the Starlette documentation useful for FastHTML development
## Install
``` sh
pip install llm-ctx
```## How to use
To get help for the CLI:
``` sh
llms_txt2ctx -h
```To convert an `llms.txt` file to XML context and save to `llms.md`:
``` sh
llms_txt2ctx llms.txt > llms.md
```Pass `--optional False` to skip the ‘optional’ section of the input
file.