> ## 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.

# Add Knowledge • AI Agent SDK

> add_knowledge: Add knowledge source to session.

# add\_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.

Add knowledge source to session.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_knowledge(source: str) -> None
```

## Parameters

<ParamField query="source" type="str" required={true}>
  File path, URL, or text content
</ParamField>

## Uses

* `add`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/session.py#L407">
  `praisonaiagents/session.py` at line 407
</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>
