Skip to main content

get_context

Method
This is a method of the Session class in the session module.
Build context from session memory and knowledge.

Signature

def get_context(query: str, max_items: int) -> str

Parameters

query
str
required
Query to build context for
max_items
int
default:"3"
Maximum items per section

Returns

Returns
str
Formatted context string