Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AnswerDotAI/contextpack

Open more actions menu

Repository files navigation

contextpack

Usage

Installation

Install latest from the GitHub repository:

$ pip install contextpack

How to use

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:

  1. From contextpack.core import *
  2. Use ctx_<TAB> to see all available topics and pick one
  3. Use .<TAB> to see all subtopics, which are the contexts you might choose
  4. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.