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

# To Knowledge Config • AI Agent SDK

> to_knowledge_config: Convert to Knowledge-compatible config.

# to\_knowledge\_config

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

> This is a method of the [**RetrievalConfig**](../classes/RetrievalConfig) class in the [**retrieval\_config**](../modules/retrieval_config) module.

Convert to Knowledge-compatible config.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def to_knowledge_config() -> Dict[str, Any]
```

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  The result of the operation.
</ResponseField>

## Source

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

  <Card title="Configuration Overview" icon="gear" href="/docs/configuration/index" />
</CardGroup>
