Install latest from the GitHub repository:
$ pip install contextpack
from contextpack import *
TLDR: if you want to get llm-friendly context on the FastHTML library, do this:
fh_llm = ctx_fasthtml.fasthtml_llms_ctx.get()
fh_llm[:100]
'Things to remember when writing FastHTML apps: \\- Although parts of its API are inspired by FastAPI,'
In short, this is how you use it:
- From contextpack.core import *
- Use
ctx_<TAB>
to see all available topics and pick one - Use
.<TAB>
to see all subtopics, which are the contexts you might choose - Add
.get()
to pull the context itself
For example:
ctx_fastlite_sqlutils
doc: LLM contexts on fastlite-sqlutils
sub-topics: ['fastlite_core', 'fastlite_index', 'sqlite_utils_docs']
fc_llm = ctx_fastlite_sqlutils.fastlite_core.get()
fc_llm[:100]
'# Source ## Metadata ``` python from IPython.display import Markdown from fastcore.test import test'
You can also learn a little about topics and subtopics from their repr:
ctx_fastlite_sqlutils
doc: LLM contexts on fastlite-sqlutils
sub-topics: ['fastlite_core', 'fastlite_index', 'sqlite_utils_docs']
You can also learn a little about topics and subtopics from their repr:
ctx_fastlite_sqlutils.fastlite_core
URL: https://answerdotai.github.io/fastlite/core.html.md