An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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.