> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# knowledge • AI Agent SDK

> knowledge: Lazy-loaded knowledge instance

# knowledge

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Session**](../classes/Session) class in the [**session**](../modules/session) module.

Lazy-loaded knowledge instance

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def knowledge() -> Knowledge
```

### Returns

<ResponseField name="Returns" type="Knowledge">
  The result of the operation.
</ResponseField>

## Uses

* `ValueError`
* `Knowledge`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/session.py#L124">
  `praisonaiagents/session.py` at line 124
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Knowledge Concept" icon="book" href="/docs/concepts/knowledge" />

  <Card title="Knowledge Overview" icon="database" href="/docs/knowledge/overview" />

  <Card title="Knowledge Configuration" icon="gear" href="/docs/configuration/knowledge-config" />

  <Card title="Chat with PDF" icon="file-pdf" href="/docs/knowledge/chat-with-pdf" />
</CardGroup>
