Skip to main content

context

When executing prompts on AI Models, their knowledge is limited to the knowledge they were trained on, usually a wide general source like Wikipedia.

Context is Floom's way of providing the AI Model with specific knowledge. Context can be any data you decide the AI Model should know before processing your prompt.

πŸ’‘Context is also known as "RAG" (Retrieval Augmented Generation) or "Knowledge" in different AI integrations platforms.

# πŸ“„ tutorial.pdf as context
context:
- package: floom/prompt/context/pdf
path: /etc/tutorial.pdf

Context is being retrieved by Context Retrievers plugins that act as parsers that extract data from different sources: files, databases, APIs etc.

πŸ’‘In this example, the plugin package is floom/prompt/context/pdf which is Floom's default PDF Context Retriever.