> ## 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: Class reference for Knowledge

# Knowledge

> Defined in the [**knowledge**](../modules/knowledge) module.

<Badge color="blue">AI Agent</Badge>

## Constructor

<ParamField query="config" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="verbose" type="Any" required={false}>
  No description available.
</ParamField>

## Methods

<CardGroup cols={2}>
  <Card title="config()" icon="function" href="../functions/Knowledge-config">
    Instance method.
  </Card>

  <Card title="memory()" icon="function" href="../functions/Knowledge-memory">
    Instance method.
  </Card>

  <Card title="markdown()" icon="function" href="../functions/Knowledge-markdown">
    Instance method.
  </Card>

  <Card title="chunker()" icon="function" href="../functions/Knowledge-chunker">
    Instance method.
  </Card>

  <Card title="store()" icon="function" href="../functions/Knowledge-store">
    Store a memory.
  </Card>

  <Card title="get_all()" icon="function" href="../functions/Knowledge-get_all">
    Retrieve all memories.
  </Card>

  <Card title="get()" icon="function" href="../functions/Knowledge-get">
    Retrieve a specific memory by ID.
  </Card>

  <Card title="search()" icon="function" href="../functions/Knowledge-search">
    Search for memories related to a query.
  </Card>

  <Card title="update()" icon="function" href="../functions/Knowledge-update">
    Update a memory.
  </Card>

  <Card title="history()" icon="function" href="../functions/Knowledge-history">
    Get the history of changes for a memory.
  </Card>

  <Card title="delete()" icon="function" href="../functions/Knowledge-delete">
    Delete a memory.
  </Card>

  <Card title="delete_all()" icon="function" href="../functions/Knowledge-delete_all">
    Delete all memories.
  </Card>

  <Card title="reset()" icon="function" href="../functions/Knowledge-reset">
    Reset all memories.
  </Card>

  <Card title="normalize_content()" icon="function" href="../functions/Knowledge-normalize_content">
    Normalize content for consistent storage.
  </Card>

  <Card title="add()" icon="function" href="../functions/Knowledge-add">
    Read file content and store it in memory.
  </Card>

  <Card title="index()" icon="function" href="../functions/Knowledge-index">
    Index a directory or file for knowledge retrieval.
  </Card>

  <Card title="get_corpus_stats()" icon="function" href="../functions/Knowledge-get_corpus_stats">
    Get statistics about the indexed corpus.
  </Card>
</CardGroup>

## Source

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