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

# Get Project Knowledge Dir • AI Agent SDK

> get_project_knowledge_dir: Get project-level knowledge directory.

# get\_project\_knowledge\_dir

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**paths**](../modules/paths) module.

Get project-level knowledge directory.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_project_knowledge_dir(project_path: Optional[Union[str, Path]]) -> Path
```

## Parameters

<ParamField query="project_path" type="Optional" required={false}>
  Project root (defaults to cwd)
</ParamField>

### Returns

<ResponseField name="Returns" type="Path">
  Path to .praisonai/knowledge/ in project
</ResponseField>

## Uses

* `get_project_data_dir`

## Source

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

***

## Related Documentation

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

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

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

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